-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
  • 648
  • 2
  • 13
  • 27

5 Answers5

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

in manifest file

Digvesh Patel
  • 6,518
  • 1
  • 19
  • 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,090
  • 4
  • 26
  • 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
  • 1,765
  • 15
  • 18
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,797
  • 2
  • 30
  • 56
1

in Activity before setContentView

requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);
vipul mittal
  • 17,053
  • 3
  • 39
  • 44