-1

How to remove android app header , I want to remove this part , or how to work with this part , Can I add some button or some image for this part ?

is there any way to do this ?

enter image description here

Shanaz K
  • 678
  • 2
  • 13
  • 28

5 Answers5

1
  android:theme="@android:style/Theme.Light.NoTitleBar" 

in manifest file

Digvesh Patel
  • 6,503
  • 1
  • 20
  • 34
1

Use <item name="android:windowNoTitle">true</item> in your theme if you want to remove the title bar from all Activity

or

requestWindowFeature(Window.FEATURE_NO_TITLE); if you want to remove the title bar from just one Activity

Apoorv
  • 13,470
  • 4
  • 27
  • 33
1

That is an action bar. To hide the action bar, set the theme attribute in your AndroidManifest.xml file for that particular activity - on which you want to disable the action bar. And yes, you can have buttons in the action bar.

 android:theme="@android:style/Theme.DeviceDefault.NoActionBar.Fullscreen"
Srikanth
  • 2,014
  • 19
  • 22
1

You can do this by manifest

<activity
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">

or if you want to get it done by Activity, use this code in side the onCreate Method,

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    requestWindowFeature(Window.FEATURE_NO_TITLE);
Kirk
  • 4,957
  • 2
  • 32
  • 59
1

in Activity before setContentView

requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
vipul mittal
  • 17,343
  • 3
  • 41
  • 44