Actionbar tab text (android:textAllCaps=false) is not working -


i using action bar style generator style action bar.

basic parent theme: @android:style/theme.holo.light

i want change action bar tabs text lower case (by default upper case).

i tried following.

xml code:

<style name="mymenutextappearance" parent="@android:style/textappearance.holo.widget.actionbar.menu">     <item name="android:textallcaps">false</item></style> 

java code:

    actionbar = getactionbar();     madapter = new tabspageradapter(getsupportfragmentmanager());     viewpager.setadapter(madapter);     actionbar.sethomebuttonenabled(false);     actionbar.setnavigationmode(actionbar.navigation_mode_tabs);           // adding tabs     (string tab_name : tabs)      {         actionbar.addtab(actionbar.newtab().settext(tab_name).settablistener(this));      }       viewpager.setonpagechangelistener(new viewpager.onpagechangelistener()      {          @override         public void onpageselected(int position)          {             actionbar.setselectednavigationitem(position);         }          @override         public void onpagescrolled(int arg0, float arg1, int arg2)          {         }          @override         public void onpagescrollstatechanged(int arg0)          {         }     }); 

but it's not working.

kindly me overcome issue. in advance.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -