Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of com.google.android.material.button.MaterialButton attrs #133

Open
Kolyall opened this issue May 8, 2020 · 1 comment
Open

Comments

@Kolyall
Copy link

Kolyall commented May 8, 2020

currently to add support of com.google.android.material.button.MaterialButton attrs we need to create custom handle of the attrs:

<declare-styleable name="MyMaterialButton">
        <!--region MaterialButton-->
        <attr name="icon" />
        <attr name="iconTint" />
        <attr name="strokeColor" />
        <attr name="strokeWidth" />
        <attr name="backgroundTint" />
        <!--endregion-->
            </declare-styleable>

And create all funcs in the class:

@Attr(R.styleable.MyMaterialButton_icon)
   override fun setIcon(image: Drawable?) {
       super.setIcon(image)
   }

Can you add the library support?

@cren90
Copy link

cren90 commented Nov 23, 2020

Any updates on this? It's a current use case in my app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants