android-floating-action-button icon indicating copy to clipboard operation
android-floating-action-button copied to clipboard

Any mode change color icon?

Open juanlabrador opened this issue 8 years ago • 2 comments

How work with ImageView -> android:tint="@color" ?? Thanks.

juanlabrador avatar Jun 23 '16 13:06 juanlabrador

I want to do the same thing. The problem is the parent of 'FloatingActionButton' is 'ImageButton', not 'AppCompatImageButton'

royerdavid avatar Jun 13 '17 13:06 royerdavid

TL;DR: Read the source :P

Although I know this is old I figure it's good to have a record of how to solve this. You can use FloatingActionButton#setIconDrawable programmatically. Simply tint the icon before setting it and viola! You haz tint. Hope this helps other peeps.

notandyvee avatar Dec 15 '17 19:12 notandyvee