Android Screen Full Screen Set requestFullscreen(final Activity pActivity)

Here you can find the source of requestFullscreen(final Activity pActivity)

Description

request Fullscreen

Declaration

public static void requestFullscreen(final Activity pActivity) 

Method Source Code

//package com.java2s;

import android.app.Activity;

import android.view.Window;
import android.view.WindowManager;

public class Main {
    public static void requestFullscreen(final Activity pActivity) {
        final Window window = pActivity.getWindow();
        window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        window.clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
        window.requestFeature(Window.FEATURE_NO_TITLE);
    }//from   w w w  .  j  a v a 2 s . c om
}

Related

  1. requestFullscreen(final Activity pActivity)
  2. setFullScreen(Activity activity)
  3. setFullScreen(Activity activity)
  4. toggleFullScreen(Activity activity, boolean isFull)