How to get the Drawable name from imageview in android and get it's String name for comparing
问题 I have two drawable apple and a how to get the drawable name in my code and compare that they starts with same alphabet Community edited question Questioner is actually seeking for 2 problems- at first he wants to get the drawable id from the imageview id. (thw drawable which is showing in the imageview) then he wants to get the drawable name from that obtained drawable id in step-1. 回答1: Updated answer For step-1 There is no direct way. You need to save the drawable id in the imageview's Tag