While setting tint for an ImageView in xml, I am getting a warning that shows:-
Must use app:tint instead of android:tint
Why should I use app:tint?
Displays image resources, for example Bitmap or Drawable resources. ImageView is also commonly used to apply tints to an image and handle image scaling.
Displays a button with an image (instead of text) that can be pressed or clicked by the user. By default, an ImageButton looks like a regular Button , with the standard button background that changes color during different button states.
Because there were some issues where android:tint
wasn't working for version < 21. app:tint
works under version 21. Here is a similar problem. Drawable tinting for api <21
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With