Note that there are some explanatory texts on larger screens.

plurals
  1. POActionBar tab styles in horizontal view
    primarykey
    data
    text
    <p>When using a phone or a tablet in portrait mode, tabs are shown under the ActionBar that constains the logo and menu items. On tablets in horizontal mode they are shown inline with the logo and menu items. In this configuration the underscore under the seleced tab is lost.</p> <p>What style controls this? In portrait mode I want to use a different selected style than in landscape mode when tabs are shown inline with the logo and menu.</p> <p>My theme has it's parent set to <code>Theme.AppCompat.Light</code>. Under it I have</p> <pre><code>&lt;item name="android:actionBarTabStyle"&gt;@style/ActionBarTabStyle.Silence&lt;/item&gt; &lt;item name="android:actionBarStyle"&gt;@style/ActionBar.Solid.Silence&lt;/item&gt; </code></pre> <p><code>android:actionBarTabStyle</code> has <code>android:background</code> value set to a drawable that is</p> <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;!-- Non focused states --&gt; &lt;item android:state_focused="false" android:state_selected="false" android:state_pressed="false" android:drawable="@android:color/transparent" /&gt; &lt;item android:state_focused="false" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/tab_selected_silence" /&gt; &lt;!-- Focused states --&gt; &lt;item android:state_focused="true" android:state_selected="false" android:state_pressed="false" android:drawable="@drawable/tab_unselected_focused_silence" /&gt; &lt;item android:state_focused="true" android:state_selected="true" android:state_pressed="false" android:drawable="@drawable/tab_selected_focused_silence" /&gt; &lt;!-- Pressed --&gt; &lt;!-- Non focused states --&gt; &lt;item android:state_focused="false" android:state_selected="false" android:state_pressed="true" android:drawable="@drawable/tab_unselected_pressed_silence" /&gt; &lt;item android:state_focused="false" android:state_selected="true" android:state_pressed="true" android:drawable="@drawable/tab_selected_pressed_silence" /&gt; &lt;!-- Focused states --&gt; &lt;item android:state_focused="true" android:state_selected="false" android:state_pressed="true" android:drawable="@drawable/tab_unselected_pressed_silence" /&gt; &lt;item android:state_focused="true" android:state_selected="true" android:state_pressed="true" android:drawable="@drawable/tab_selected_pressed_silence" /&gt; &lt;/selector&gt; </code></pre> <p>I see these <code>state_selected</code> values. The image that is set as the drawable for these is different color than the ActionBar background, so it's not just that I can't see them on top of the same colored background.</p> <p>Style for <code>actionBarStyle</code> contains </p> <pre><code>&lt;item name="android:background"&gt;@drawable/ab_solid_silence&lt;/item&gt; &lt;item name="android:backgroundStacked"&gt;@drawable/ab_stacked_solid_silence&lt;/item&gt; &lt;item name="android:backgroundSplit"&gt;@drawable/ab_bottom_solid_silence&lt;/item&gt; &lt;item name="android:progressBarStyle"&gt;@style/ProgressBar.Silence&lt;/item&gt; </code></pre> <p>The three first ones are images and the <code>progressBarStyle</code> contains some styles too, but they are irrelevant.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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