I'm trying to create a drawable from an ImageView I know that we can do that with getre开发者_开发知识库ssources :
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
精彩评论