Android - How to programmatically set the button style in a Linearlayout?

前端 未结 6 1786
无人共我
无人共我 2020-12-25 11:22

I am programmatically creating a LinearLayout for an AlertDialog with some buttons.

I WANT to do this:



        
6条回答
  •  粉色の甜心
    2020-12-25 11:25

    This is the only answer that actually delivered what I was looking for: http://belencruz.com/2013/04/set-styles-programmatically-in-android/

    Essentially, create a layout XML file that simply has a

提交回复
热议问题