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 ?
android:theme="@android:style/Theme.Light.NoTitleBar"
in manifest file
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
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"
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);
in Activity before setContentView
requestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY);