开发者

Retrieving drawable from overlayitem

开发者 https://www.devze.com 2023-02-26 06:59 出处:网络
Is there any clever way of retrieving the Drawable from an OverlayItem? I want to store the Drawable of an OverlayItem before setting a new Drawable on it, to be able to revert afterwards, but I can\

Is there any clever way of retrieving the Drawable from an OverlayItem?

I want to store the Drawable of an OverlayItem before setting a new Drawable on it, to be able to revert afterwards, but I can't find any way of actually retrieving the current Drawable开发者_JS百科.


You are the one defining the Drawable in the first place. Make note of what it is at the time you set it up or change it. Most likely, you will need to create your own subclass of OverlayItem for this.

0

精彩评论

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