2

Is there a way to programmatically highlight an imageview in android?

I am showing playing cards and I would like to highlight or shade specific cards (imageviews). How can I achieve this?

Thank you

Snake
  • 13,734
  • 22
  • 106
  • 242

2 Answers2

5

Checkout imageView.setColorFilter()

you786
  • 3,452
  • 4
  • 44
  • 72
0

if you have a custom highlighting outline.

You can put your ImageView inside a LinearLayout. set highlighted image as background of Layout. After doing some margins adjustment, you will have a fine grained custom highlighting.

Aqif Hamid
  • 3,481
  • 3
  • 24
  • 37