Skip to content Skip to sidebar Skip to footer

Tab Widget Have Always In Capital Alphabets In 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

Solution 1:

Theres no need to create custom theme

In source code..

TextViewtv=  (TextView) mTabHost.getTabWidget().getChildAt(index).findViewById(android.R.id.title); 
   tv.setAllCaps(false);  

Solution 2:

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

Post a Comment for "Tab Widget Have Always In Capital Alphabets In Android 4.0"