how to get the source of ImageView in order to change it?
问题 I know that changing the ImageView resource is not big deal just using myImageView.setImageResource(mynewImageDrawable) but what I want to do is to check the current ImageSource before changing it. basically, I want to implement my own group radio buttons using imageViews. so every time any imageView is clicked, the oncliked event method will change the Image Resources of my group. and sorry for my poor English. regards, redsea 回答1: There is no getDrawableId function so you'll need to do