开发者

How to Reset the ColorFilter of a RemoteView in an AppWidget

开发者 https://www.devze.com 2023-04-01 19:22 出处:网络
I am setting a ColorFilter on one of my ImageViews with the following code: - views.setInt(myView, \"setColorFilter\", myColour);

I am setting a ColorFilter on one of my ImageViews with the following code: -

views.setInt(myView, "setColorFilter", myColour);

Is there any way to remove开发者_Go百科 this filter to return the colours to normal? I have tried using: -

views.setInt(iconResource, "setColorFilter", -1);

Any ideas what I could do to reset this? Thanks!


Setting the ColorFilter to 0 will clear the filter.

 views.setInt(iconResource, "setColorFilter", 0); 
0

精彩评论

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

关注公众号