I have this button in my layout:
<Button
android:id="@+id/followers_right"
android:drawableLeft="@drawable/ic_team"
android:text="@string/visibility_right_followers" />
By default, all my icons are grey. But in some cases, I want to apply a specific color. And for the drawable button, how can I do that programmatically ?
myButton.setColorFilter(getResources().getColor(R.color.tint_selected));
This line doesn't work (build error).
Thanks for your help!