How To Hide or Disable Actionbar In Android On Any Activity ?
How to hide or disable Actionbar in our android App question comes in our mind when we are making some kind of activity where we don’t need actionbar in the activity or we don’t want to show that . Like if we are making a splash screen in our android app then we don’t need actionbar there .
you can also read about different kind of splash screen in android studio in details , which are listed below .
- Simple Splash Screen in android studio
- Splash Screen In Android With Progress Bar
- Animated splash with moving image
there we here we are going to learn about how to hide actionbar in android , so to hide action bar we have following steps .
Steps To Hide ActionBar In Android Studio
Step 1 Go To manifest file in your project directories.
Step 2 find out the activity at which you want to hide the actionbar .
Step 3 Add the following line of code in the xml in that particular activity .
Add this line of code in your activity as shown below .
<activity android:name=".SplashActivity" android:theme="@style/Theme.AppCompat.NoActionBar"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
After adding this line of code in the manifest file your actionbar is hided . if you will get any kind of difficulty with hiding the action bar just comment below and stay connected with softwoodcoder.