問題描述
在 Android 4.0 中,我放置了帶有兩個小部件的標簽欄.在代碼中我用小字母(新)編寫,但在應用程序中它應該始終顯示(新)如何在 android 4.0 的選項卡上寫小字母
In Android 4.0 i put tab bar with two widget. in code i write in small alphabates(new) but in application it should always display (NEW) How to write small alphabates on tab in android 4.0
推薦答案
Android 4.0 中選項卡視圖的默認主題(Holo 主題)將 android:textAllCaps
設置為 true.您可以創建自己的主題,然后將其應用于清單中的操作欄以覆蓋此行為.有關設置 ActionBar 樣式和創建自己的樣式的更多信息,請參閱:
The default theme for tab views in Android 4.0 (the Holo theme) has android:textAllCaps
set to true. You can create your own theme and then apply it to the action bar in your manifest to override this behavior. For more information on styling the ActionBar and creating your own styles, see:
http://developer.android.com/guide/topics/ui/主題.html和http://android-developers.blogspot.com/2011/04/customizing-action-bar.html
這篇關于標簽小部件在 android 4.0 中始終使用大寫字母的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!