开发者

Create a drawable from a created imageview

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜