I have set an image to an ImageView control in android:
ImageView
iv.setImageResource(R.drawable.image1);
I want to get this associated Drawab
use Drawable drawable=imageview.getDrawable();
Drawable drawable=imageview.getDrawable();
Define the Drawable first.
Drawable myDrawable = getResources().getDrawable(R.drawable.image1); iv.setImageDrawable(myDrawable);