I know that changing the ImageView resource is not big deal just using myImageView.setImageResource(mynewImageDrawable)
but what I want to do is to chec
Actualy after my try ,I find there is a way to get source of imageView without need of tag property.
Integer src = attrs.getAttributeResourceValue(
"http://schemas.android.com/apk/res/android", "src", -1);
The first parameter is namespace of android
and src
is the property name.
This method return the image resource id if it found or it will return -1;