Note that there are some explanatory texts on larger screens.

plurals
  1. POcustomize underline in action bar sherlock android
    primarykey
    data
    text
    <p>I am using android action bar sherlock in my app. i want my action bar to look ike this.</p> <p><img src="https://i.stack.imgur.com/rwm7o.png" alt="enter image description here"> </p> <p>But when i change th background color of action bar tab the under line goes away.</p> <p>here is my code.</p> <pre><code>&lt;style name="MyTheme" parent="Theme.Sherlock.Light"&gt; &lt;!-- define text style for tabs --&gt; &lt;item name="actionBarTabTextStyle"&gt;@style/MyTabTextStyle&lt;/item&gt; &lt;item name="android:actionBarTabTextStyle"&gt;@style/MyTabTextStyle&lt;/item&gt; &lt;item name = "actionBarStyle"&gt;@style/MyBarStyle&lt;/item&gt; &lt;item name = "android:actionBarStyle"&gt;@style/MyBarStyle&lt;/item&gt; &lt;item name = "actionBarTabStyle"&gt;@style/MyTabStyle&lt;/item&gt; &lt;item name = "android:actionBarTabStyle"&gt;@style/MyTabStyle&lt;/item&gt; &lt;item name = "actionBarTabBarStyle"&gt;@style/MyTabBarStyle&lt;/item&gt; &lt;item name = "android:actionBarTabBarStyle"&gt;@style/MyTabBarStyle&lt;/item&gt; &lt;/style&gt; &lt;style name="MyTabTextStyle" parent="Widget.Sherlock.ActionBar.TabText" &gt; &lt;item name="android:textColor"&gt;@color/tab_text_indicator&lt;/item&gt; &lt;item name= "android:textSize"&gt;15dp&lt;/item&gt; &lt;item name= "android:textStyle"&gt;normal&lt;/item&gt; &lt;/style&gt; &lt;style name="MyBarStyle" parent="Widget.Sherlock.ActionBar" &gt; &lt;item name="android:textSize"&gt;18dp&lt;/item&gt; &lt;item name="android:textStyle"&gt;normal&lt;/item&gt; &lt;item name="android:background"&gt;#669933&lt;/item&gt; &lt;item name="background"&gt;#669933&lt;/item&gt; &lt;/style&gt; &lt;style name="MyTabStyle" parent="Widget.Sherlock.Light.ActionBar.TabView" &gt; &lt;item name="android:background"&gt;#ffffff&lt;/item&gt; &lt;item name="background"&gt;#ffffff&lt;/item&gt; &lt;/style&gt; &lt;style name="MyTabBarStyle" parent="Widget.Sherlock.ActionBar.TabBar" &gt; &lt;item name="android:showDividers"&gt;none&lt;/item&gt; &lt;/style&gt; </code></pre> <p>and the output is</p> <p><img src="https://i.stack.imgur.com/j8Kl7.png" alt="enter image description here"></p> <p>so,just don't know how to set the underline in my action tab.please help.. thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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