android - Change ActionBar tab text size -


i create tab in action bar doing

actionbar.tab incidentstab = bar.newtab().settext(             getstring(r.string.inctab));     actionbar.tab apparatustab = bar.newtab().settext(             getstring(r.string.apptab));     actionbar.tab admintab = bar.newtab().settext(             getstring(r.string.admintab));     actionbar.tab claemgtab = bar.newtab().settext(             getstring(r.string.caltab));      currentinctab.settablistener(new tablistener());     incidentstab.settablistener(new tablistener());     apparatustab.settablistener(new tablistener());     admintab.settablistener(new tablistener());     claemgtab.settablistener(new tablistener());     bar.addtab(currentinctab, true);     bar.addtab(incidentstab, false);     bar.addtab(apparatustab, false);     bar.addtab(admintab, false);     bar.addtab(claemgtab, false); 

now there way change size of next after doing this?

set android:theme in manifest.

<activity android:name=".app.actionbartabs"     android:label="@string/action_bar_tabs"            android:theme="@style/testholotheme"             android:enabled="@bool/atleasthoneycomb">         <intent-filter>             <action android:name="android.intent.action.main" />             <category android:name="android.intent.category.sample_code" />         </intent-filter> </activity> 

and add styles.xml

<style name="testholotheme" parent="@android:style/theme.holo.light.darkactionbar">     <item name="android:actionbartabtextstyle">@style/widget.mytabtext</item> </style>  <style name="widget.mytabtext" parent="android:widget.holo.light.actionbar.tabtext.inverse">     <item name="android:textsize">24px</item> </style> 

and add attrs.xml

<declare-styleable name="testcustom">     <attr name="actionbartabtextstyle" format="reference" /> </declare-styleable>  

hope can you.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -