如下定义一个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" />