Set width of Button in Android

后端 未结 5 1083
没有蜡笔的小新
没有蜡笔的小新 2021-02-12 22:04

How can I set a fixed width for an Android button? Everytime I try to set a fixed width it fills the current parent (the RelativeView). Here is my XML:



        
5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-12 22:53

    Use minWidth and minHeight to set the width and height of a button.

    
    

提交回复
热议问题