Changing app widget background color programmatically

后端 未结 5 1777
感动是毒
感动是毒 2021-01-04 12:17

How do I set the background color of the home screen app widget programmatically?

5条回答
  •  耶瑟儿~
    2021-01-04 12:51

    You can change color of ImageView image in "RemoteViews" by doing this:

    remoteviews.setInt(viewid, "setColorFilter", color);
    

提交回复
热议问题