You are on page 1of 1

There are 2 ways how to make an fullscreen activity.

One from code other
from AndroidManifest.xml. I am going to show both of them.

From code:

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
...

At first we hide the title bar, then we make an fullscreen activity.

From AndroidManifest.xml:

<activity android:name=""

...

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

under <activity>.

As you can see both these variants makes an fullscreen activity.

You might also like