Issue
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?
Solution
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
Answered By - Tanzeela Nisar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.