Android开发经验谈安卓开发安卓开发

安卓Button英文字符全部显示为大写问题

2019-07-22  本文已影响3人  蓝不蓝编程

问题简介

在Button里显示英文字符时,全部是大写显示的.


解决方案

在Button的属性中增加

android:textAllCaps="false"

完整样例:

<Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textAllCaps="false"
        android:text="Test"/>
上一篇 下一篇

猜你喜欢

热点阅读