I want to check if one matrix with R.drawable items contains the current ImageView.
A small part of my code is:
Integer[] redColor = { R.drawable.red_circle_, R.drawable.red_cross_};
Random random = new Random();
int randomItem = random.nextInt( redColor.length );
item1ImageView.setImageResource( redColor[ randomItem1 ] );
if ( ( Arrays.asList( redColor ).contains( item1ImageView.getId() )
{
//do something
}