Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to set Tab style to light theme w colored text?
    text
    copied!<p>I'm trying to set the tab style to a light theme. Giving me white tabs. I've tried several ways but I can't get the guys to change color! Can I assign the theme in Manifest, TabHost or Tab Widget?</p> <p>style.xml</p> <pre><code>&lt;style name="SBstyle" parent="@android:style/Theme.Light"&gt; &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt; &lt;item name="android:tabWidgetStyle"&gt;@style/LightTabWidget&lt;/item&gt; &lt;/style&gt; &lt;style name="LightTabWidget" parent="@android:style/Widget.TabWidget"&gt; &lt;item name="android:textColor"&gt;#de6001&lt;/item&gt; </code></pre> <p></p> <p>then I have my Manifest.xml</p> <pre><code>&lt;application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/SBstyle"&gt; </code></pre> <p>and finally my tab.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#ffffff" &gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="0dp" &gt; &lt;include layout="@layout/nav_bar" android:layout_height="47dp" android:layout_width="fill_parent" android:layout_alignParentTop="true" /&gt; &lt;TabWidget android:id="@android:id/tabs" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#f8a96e" android:tabStripEnabled="false" /&gt; &lt;FrameLayout android:id="@android:id/tabcontent" android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="5dp" /&gt; &lt;/LinearLayout&gt; &lt;/TabHost&gt; </code></pre> <p>I appreciate any help on this, thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload