Android:Default Action bar is populating while loading App -


android-when android app launching populates default action bar seconds , replaces action bar customize action bar. how rid of default action bar when app launching

used following code hide default action bar.which replaces actual action bar

mainactvity.java

    final actionbar actionbar = getactionbar();     actionbar.setdisplayshowtitleenabled(false);     actionbar.setdisplayuselogoenabled(false);     actionbar.setdisplayshowhomeenabled(false);             actionbar.setcustomview(r.layout.actionbar_custom_view_home); 

android menifest code:

  <application     android:allowbackup="true"     android:icon="@drawable/ic_launcher"     android:label="@string/app_name"     android:theme="@style/apptheme" >     <activity      android:name="com.example.demowithoutactionbar.mainactivity"         android:label="@string/app_name" >         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity> </application> 

try using in theme present in styles.xml

<item name="android:windowdisablepreview">true</item>


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -