Answer the question
In order to leave comments, you need to log in
How to set highlight color for imageview?
How to set highlight color for imageview? For example, for each imageview there is a corresponding picture. How to make selection of entire imageview with yellow tint (like when clicking button button)?
Answer the question
In order to leave comments, you need to log in
For example, set a selector, or override the onTouch method for the view, detect a click on it and call something like this
iv.getDrawable().setColorFilter(цвет,PorterDuff.Mode.SRC_ATOP);
iv.invalidate();
image.getDrawable().clearColorFilter();
image.invalidate();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question