android - Change the actionBar.newTab().setText() method lettters from uper case to lower? -


the settext("recents") method default displays text in caps recents in need display them recents.

i tried changing in styles of no use can 1 me out!

here code:

 actionbar.tab  recentstab;  recentstab = actionbar.newtab().settext("recents"); 

styles:

<style name="apptheme" parent="theme.appcompat.light.darkactionbar">     <item name="android:textallcaps">false</item> </style> 

create own theme , set android : textallcaps false, change theme in manifest file (android:theme="@style/mytheme")....you can refer code

    <style name="mytheme" parent="@android:style/theme.holo.light">     <item name="android:actionbarstyle">@style/mytheme.actionbarstyle</item>     <item name="android:actionmenutextappearance">@style/mytheme.menutextstyle</item>     <item name="android:actionbartabtextstyle">@style/actionbartabtext</item>     </style>      <style name="mytheme.actionbar.titletextstyle" parent="@android:style/textappearance.holo.widget.actionbar.title">     <item name="android:textstyle">bold</item>     </style>  <style name="mytheme.menutextstyle" parent="android:style/textappearance.holo.widget.actionbar.menu">     <item name="android:textsize">18sp</item>     </style>      <style name="mytheme.actionbarstyle" parent="@android:style/widget.holo.light.actionbar">     <item name="android:titletextstyle">@style/mytheme.actionbar.titletextstyle</item>     <item name="android:icon">@android:color/transparent</item>     </style>      <style name="actionbartabtext" parent="@android:style/widget.holo.light.actionbar.tabtext">     <item name="android:textallcaps">false</item>     </style> 

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -