Tab widget have always in capital alphabets in android 4.0

后端 未结 2 1161
执念已碎
执念已碎 2020-12-16 18:27

\"enterIn Android 4.0 i put tab bar with two widget. in code i write in small alphabates(n

相关标签:
2条回答
  • 2020-12-16 18:56

    Theres no need to create custom theme

    In source code..

       TextView tv =  (TextView) mTabHost.getTabWidget().getChildAt(index).findViewById(android.R.id.title); 
       tv.setAllCaps(false);  
    
    0 讨论(0)
  • 2020-12-16 19:03

    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/themes.html and http://android-developers.blogspot.com/2011/04/customizing-action-bar.html

    0 讨论(0)
提交回复
热议问题