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
  • 14,228
  • 27
  • 117
  • 250

2 Answers2

5

Checkout imageView.setColorFilter()

you786
  • 3,659
  • 5
  • 48
  • 74
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,511
  • 4
  • 25
  • 38