按钮上英文全是大写字母

按钮控件默认情况下,text属性中的英文全是大写字母,可能英文国家比较习惯这样。

<Button
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:text="testButton"
  android:textAllCaps="false"/>

只要加上android:textAllCaps="false"就可以正常显示大小写字母了。

作者:Gacfox
版权声明:本网站为非盈利性质,文章如非特殊说明均为原创,版权遵循知识共享协议CC BY-NC-ND 4.0进行授权,转载必须署名,禁止用于商业目的或演绎修改后转载。