i used to do this way, may this help you

        TextView  txtTab = new TextView(this);
        txtTab.setText(getString(R.string.people));
        txtTab.setPadding(8, 4, 8, 4);
        txtTab.setTextColor(Color.BLACK);
        txtTab.setTextSize(16);
        txtTab.setBackgroundResource(R.drawable.tab_selector);

        tab.setIndicator(txtTab).setContent(new
Intent(this,TestClass.class));

On Sep 26, 10:22 pm, FrEaKmAn <[email protected]> wrote:
> Hello
>
> How could I change a text color in my tabs? I tried with custom theme
>
>         <style name="MyTheme" parent="@android:style/Theme.Light.NoTitleBar">
>                 <item name="android:windowBackground">@color/beige</item>
>                 <item name="android:tabWidgetStyle">@style/VacationTab</item>
>         </style>
>
>         <style name="VacationTab" parent="@android:style/Widget.TabWidget">
>                 <item name="android:textAppearance">@style/
> VacationTabTextApperance</item>
>         </style>
>
>         <style name="VacationTabTextApperance" parent="@android:style/
> TextAppearance.Widget.TabWidget">
>                <item name="android:textSize">15dip</item>
>                <item name="android:textStyle">bold</item>
>                <item name="android:textColor">#FF0000</item>
>         </style>
>
> But nothing changes.. what should I do? Text size and style are
> applied, but color not.. why?

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

Reply via email to