Note that there are some explanatory texts on larger screens.

plurals
  1. POActionBar with NoTitleBar Theme.Holo.Light
    text
    copied!<p>I have an Android tabbed app. I don't want anything else other than the tabs to be displayed at the top of the screen.</p> <p>This works alright, the only problem is that, when launching the app, for a short moment &lt; 1sec, I can see the title bar with the application launcher icon.</p> <p>Why is this happening, is there a way to prevent this?</p> <p>styles.xml</p> <pre><code>&lt;resources&gt; &lt;!-- Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. --&gt; &lt;style name="AppBaseTheme" parent="android:Theme.Holo.Light"&gt; &lt;!-- Theme customizations available in newer API levels can go in res/values-vXX/styles.xml, while customizations related to backward-compatibility can go here. --&gt; &lt;/style&gt; &lt;!-- Application theme. --&gt; &lt;style name="AppTheme" parent="AppBaseTheme"&gt; &lt;!-- All customizations that are NOT specific to a particular API-level can go here. --&gt; &lt;item name="android:actionBarStyle"&gt;@style/CustomActionBarStyle&lt;/item&gt; &lt;/style&gt; &lt;style name="CustomActionBarStyle" parent="@android:style/Widget.Holo.Light.ActionBar"&gt; &lt;item name="android:titleTextStyle"&gt;@style/NoTitleText&lt;/item&gt; &lt;item name="android:subtitleTextStyle"&gt;@style/NoTitleText&lt;/item&gt; &lt;item name="android:icon"&gt;@android:color/transparent&lt;/item&gt; &lt;/style&gt; &lt;style name="NoTitleText"&gt; &lt;item name="android:textSize"&gt;0sp&lt;/item&gt; &lt;item name="android:textColor"&gt;#00000000&lt;/item&gt; &lt;/style&gt; &lt;/resources&gt; </code></pre> <p>AndroidManifest.xml</p> <pre><code> &lt;activity android:name="com.example.nfcproducttracing.ProductTracer" android:label="@string/app_name" android:theme="@style/AppTheme" android:launchMode="singleTask"&gt; </code></pre> <p>This makes my tab text white and barely visible.</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