Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you set the <code>android:logo</code> in the theme you shouldn't need to set it in code.</p> <p>I think you may also need <code>showHome</code> in your display options e.g.</p> <pre><code>&lt;item name="android:displayOptions"&gt;showHome|useLogo&lt;/item&gt; </code></pre> <p><strong>EDIT</strong></p> <p>Below is an example theme I use to hide the logo and display the title in the action bar, this sample is using <code>ActionBarSherlock</code> so you will need to adjust the parent style names accordingly if you aren't using it.</p> <pre><code>&lt;style name="AppTheme" parent="style/Theme.Sherlock.Light.DarkActionBar"&gt; &lt;item name="android:windowBackground"&gt;@color/background_primary&lt;/item&gt; &lt;item name="android:icon"&gt;@drawable/appicon&lt;/item&gt; &lt;!-- For the home as up icon on sub pages --&gt; &lt;item name="android:homeAsUpIndicator"&gt;@drawable/back&lt;/item&gt; &lt;item name="homeAsUpIndicator"&gt;@drawable/back&lt;/item&gt; &lt;item name="android:actionBarStyle"&gt;@style/AppTheme.ActionBar&lt;/item&gt; &lt;item name="actionBarStyle"&gt;@style/AppTheme.ActionBar&lt;/item&gt; &lt;/style&gt; &lt;style name="AppTheme.ActionBar" parent="Widget.Sherlock.Light.ActionBar.Solid.Inverse"&gt; &lt;item name="android:displayOptions"&gt;showTitle&lt;/item&gt; &lt;item name="displayOptions"&gt;showTitle&lt;/item&gt; &lt;item name="android:titleTextStyle"&gt;@style/AppTheme.ActionBar.TitleTextStyle&lt;/item&gt; &lt;item name="titleTextStyle"&gt;@style/AppTheme.ActionBar.TitleTextStyle&lt;/item&gt; &lt;item name="android:background"&gt;@color/actionbar_bg_color&lt;/item&gt; &lt;item name="background"&gt;@color/actionbar_bg_color&lt;/item&gt; &lt;item name="android:backgroundStacked"&gt;@color/actionbar_bg_color&lt;/item&gt; &lt;item name="backgroundStacked"&gt;@color/actionbar_bg_color&lt;/item&gt; </code></pre> <p></p>
    singulars
    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.
 

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