开发者

Android mutate() changes appearance of LayerDrawable

开发者 https://www.devze.com 2023-04-09 06:51 出处:网络
I have a LayerDrawable defined in xml that I load from disk and reuse in a few parts of my application. To prevent an instance of my LayerDrawable from affecting other instances I call mutate like def

I have a LayerDrawable defined in xml that I load from disk and reuse in a few parts of my application. To prevent an instance of my LayerDrawable from affecting other instances I call mutate like defined here. However calling mu开发者_如何学JAVAtate is also changing the appearance of the drawing. I can duplicate on tablets, phones, and the simulator. Anyone have experience with this?

0

精彩评论

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