How can I get the drawable of an Image Button to compare and do something if the drawable is A and something if is B?. Thank you so much.
switch(getDrawableId(buttonRepeat)) {
case R.drawable.a:
mediaPlayer.setLooping(true);
break;
case R.drawable.b:
mediaPlayer.setLooping(false);
break;
default:
break;
}