0

I am able to set tint of a drawable on runtime by programmatically as Drawable#setTintList. My question is how to get it in order to reuse later on during runtime, or is that even valid/possible?

1 Answer 1

1

you can use ImageView#getImageTintList() function to get the current ColorStateList used to tint the image drawable, or null if no tint is applied.

you can see more on android_documentation_for_image

Sign up to request clarification or add additional context in comments.

1 Comment

Cool, but for future reference: the method is added in API level 21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.