Changing app widget background color programmatically

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

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

5条回答
  •  被撕碎了的回忆
    2021-01-04 12:34

    Find the following code..

    code:

      Button button;
    
        //to change background color..
    
        button.setBackgroundColor(Color.Yellow);
    

提交回复
热议问题