Hi!

I have a view that is defined like (shortened by removing the layout
attributes)

<TabHost xmlns:android="http://schemas.android.com/apk/res/android";
        android:id="@android:id/tabhost"
        <LinearLayout
                <TabWidget
                        android:id="@android:id/tabs"
                <FrameLayout
                        android:id="@android:id/tabcontent
                        android:id="@+id/tab1">
                <!-- Content of Tab 1 -->
                </FrameLayout>
                <FrameLayout
                        android:id="@android:id/tabcontent
                        android:id="@+id/tab2">
                <!-- Content of Tab 2 -->
                </FrameLayout>
                ...

The tabs are created in the code using

tabHost.addTab(tabHost.newTabSpec("tab1").setIndicator("Tab1")
                        .setContent(R.id.tab1));


How do I set the text color of inactive (not currently chosen) tabs to
a color different from the default white using an XML view definition?
I didn't find any matching property and am not sure whether to set
this property on the TabHost or the TabWidet.

Is there any way?

Thank you in advance!

--~--~---------~--~----~------------~-------~--~----~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to