[Android] how to make display to fullscreen

There are several way to make display to fullscreen.

method 1)
this method’s point is placing requestWindowFeature between onCreate and setContentView.

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE); // to fullscreen
        setContentView(R.layout.main);
    }

method 2)
add theme property application or activity xml tag in AndroidManifest.xml.


or


see this page
http://developer.android.com/guide/topics/ui/themes.html#ApplyATheme

Tags:

Comments are closed.