开发者

How to Reset the ColorFilter of a RemoteView in an AppWidget

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜