Button英文字母大写问题

xiaoxiao2021-02-28  94

如下定义一个Button:

<Button android:layout_width="match_parent" android:layout_height="match_parent" android:background="@null" android:text="fragment1" />

展示出来为: FRAGMENT1 神奇的小写变成了大写

此时添加一个textAllCaps属性设置为false,即可正常的显示小写。

<Button android:layout_width="match_parent" android:layout_height="match_parent" android:background="@null" android:text="fragment1" android:textAllCaps="false" />
转载请注明原文地址: https://www.6miu.com/read-53355.html

最新回复(0)