If you're using Android Studio IDE for your application then this might help you to hide and unhide the Action Bar of your app.
What is the Action Bar?
Action Bar is the navigation element which mostly contains triggers for navigation. In simple its a consistent navigation element that is standard throughout modern android applications.
"Theme.AppCompat.Light.DarkActionBar"
Now, to hide the Action Bar you have to change it to :
"Theme.AppCompat.Light.NoActionBar"
This will hide the Action Bar of all the activities in your android project. For doing this for and individual activity or screen.
You need to make a new style set and give it the name of your wish. Add NoActionBar attribute to that style.
Add this as the theme option in the manifest file of your android project. Take the above images as a reference.
This way you can hide the Action Bar for a particular activity.
What is the Action Bar?
Action Bar is the navigation element which mostly contains triggers for navigation. In simple its a consistent navigation element that is standard throughout modern android applications.
Steps to hide Action Bar in Android Studio Project
- Open App section in project dropdown.
- Expand res folder
- find Styles.xml file in it
"Theme.AppCompat.Light.DarkActionBar"
Now, to hide the Action Bar you have to change it to :
"Theme.AppCompat.Light.NoActionBar"
This will hide the Action Bar of all the activities in your android project. For doing this for and individual activity or screen.
You need to make a new style set and give it the name of your wish. Add NoActionBar attribute to that style.
Add this as the theme option in the manifest file of your android project. Take the above images as a reference.
This way you can hide the Action Bar for a particular activity.
0 Comments