【问题标题】:String center and bottom in button按钮中的字符串中心和底部
【发布时间】:2012-03-16 19:08:07
【问题描述】:

如何将Button 的文本定位到水平居中并位于底部?

谢谢。

【问题讨论】:

    标签: android button center gravity


    【解决方案1】:

    使用重力属性:

    android:gravity="center_horizontal|bottom"
    

    【讨论】:

      猜你喜欢
      • 2014-04-05
      • 1970-01-01
      • 2021-06-17
      • 1970-01-01
      • 2017-12-24
      • 2018-06-25
      • 2019-11-26
      • 2016-02-24
      • 1970-01-01
      相关资源
      最近更新 更多