I have a layout with different views.
One of the views has a background color set to android.R.color.holo_green_light
Inside a click handler, how can I check if the clicked element has a background set to android.R.color.holo_green_light
?
I know for for APIs > 13 I can get view.getBackground().getColor()
, but how to do it for APIs below 13 ?