As far as I know, it is possible to hide the notification/title bar, once the
activity is visible (has content) , But… maybe I’m wrong?
Is there any way to hide it after the activity is visible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can define the activity to use a theme that eliminates the notification/title bar. For instance, you can add this as an attribute to your
<activity ... >tag in AndroidManifest.xml:The presence of a title cannot be changed once you have called
setContentView(). The only way to hide the title bar after your activity has started is to restart the activity with a modified intent. Do something like this:Then in
onCreate()test whether the “NoTitle” extra is present in the intent and make the appropriate call torequestWindowFeature()before callingsetContentView().