I'm trying to create a drawable from an ImageView I know that we can do that with getressources :
Drawable drawable = getResources().getDrawable(imageview.getId());
But my imageview is created programmatically, I can not get the ID even with the getID() method.
if you can access to the ImageView
you cam simply call getDrawable()
to get its drawable
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With