Button英文字母大寫問題

如下定義一個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" />
發佈了82 篇原創文章 · 獲贊 69 · 訪問量 14萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章