Wednesday, September 21, 2011

[android-developers] Re: TabWidget font size

You can either use the TabSpec.setIndicator(View view) method to put your own views in the TabWidget.

Or you can override the theme to set the font-size:

<style name="YourTheme" parent="@android:style/Theme">
  <item name="android:tabWidgetStyle">@style/Widget.TabWidget</item>
</style>

<style name="Widget.TabWidget" parent="@android:style/Widget.TabWidget">
  <item name="android:textSize">20sp</item>
</style>

And then assign 'YourTheme' as your Activity's theme.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate