Android When the Android app launches the default action bar for a few seconds, then replaces that action bar with my custom action bar. How to get rid of this default action bar when starting my application.
The following code is used to hide the default action bar. It ultimately replaces my 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>
source share