Button.setBackground(Drawable background) throws NoSuchMethodError

前端 未结 5 1703
故里飘歌
故里飘歌 2021-02-04 08:57

I\'m implementing a simple method to add a Button to a LinearLayout programatically.

When I invoke the setBackground(Drawable background) metho

5条回答
  •  别那么骄傲
    2021-02-04 09:30

                

    apply below code in Styles.xml file :

     
    

提交回复
热议问题