Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Support for passing default style by theme attribute #131

Open
v-mas opened this issue May 4, 2022 · 0 comments
Open

Support for passing default style by theme attribute #131

v-mas opened this issue May 4, 2022 · 0 comments

Comments

@v-mas
Copy link

v-mas commented May 4, 2022

Please add support for using theme attribute to pass default style.

It could be done in Shimmer builder by accepting third parameter

   AlphaHighlightBuilder().consumeAttributes(context, null, R.attr.shimmerStyle).build()

Or for extending Layout class, like

    class MyLayout constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = R.attr.shimmerStyle) : ShimmerFrameLayout(context, attrs, defStyleAttr)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant