How to compare two drawables, I am doing like this but not having any success public void MyClick(View view) { Drawable fDraw = view.getBackground(); Drawable sDraw = getResources().getDrawable(R.drawable.twt_hover); if(fDraw.equals(sDraw)) { //Not coming } }
{{#tags}}- {{label}}
{{/tags}}