There's an ImageView in my app with a drawable that can be changed by the user and a black TextView over it. If the user changes this image to one with a black background, he won't be able to see the text.
How can I identify if the image resource is R.drawable.imageA so I can set the text a different color?
I thought about setting a tag for the ImageView, but then I would have to set it for each option, when there's only two options I care about.
I tried:
if (imageview.getDrawable.equals(R.drawable.imageA)) {
textView.setText(Color.WHITE);
}
Also tried with getResource, but neither worked.