-2

When i launch my application , it shows up a title bar at the top containing application name, How to set Full Screen view of your main activity , when application is launched.

Xiou Raxau
  • 83
  • 1
  • 9

3 Answers3

2

In you application's manifest file , set the following propery in <application> TAG.

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

Aown Raza
  • 2,023
  • 13
  • 29
2

You can do this programmatically as below

    requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
                                WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.yourlayout);

on the create activity and before setting our layout

Spry Techies
  • 896
  • 6
  • 21
Abhishek Chaubey
  • 2,960
  • 1
  • 17
  • 24
0

you can use <item name="android:windowActionBar">false</item> to remove Actionbar and <item name="android:windowNoTitle">true</item> to remove title in style.

Shvet
  • 1,159
  • 1
  • 18
  • 30