在默认情况下,按钮的名称无论有大小写字母,都只显示出大写字母,为了可以显示出小写字母可以在xml文件中设置。
可以在单个按钮中设置 android:textAllCaps="false"
如:
<Button android:textAllCaps="false" android:id="@+id/button1" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="打开SecondActivity" />