Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hide the top menu bar in my android device & Tablet

Tags:

android

i want to hide the top menu bar in my android device & Tablet.Can any one tell me how to do it?Thanks for any help.

like image 734
joe Avatar asked Jul 23 '13 06:07

joe


People also ask

Can Android hide menu bar?

Using the Show and hide button at the left side of the navigation bar, you can set the navigation bar to be hidden or pinned on the screen when you use apps or features.


2 Answers

You can achieve this by setting the android:theme attribute to @android:style/Theme.NoTitleBar on your element in your AndroidManifest.xml like this:

<activity android:name=".Activity"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.NoTitleBar">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>
like image 111
Jay Avatar answered Sep 17 '22 11:09

Jay


In the Activity class you can use this in onCreate method. In api level greater then 11

ActionBar actionBar = getActionBar();
actionBar.hide();

or

getSupportActionBar().hide();
like image 38
Muhammad Aamir Ali Avatar answered Sep 19 '22 11:09

Muhammad Aamir Ali