Android Screen Full Screen Set setFullScreen(Activity activity)

Here you can find the source of setFullScreen(Activity activity)

Description

set Full Screen

Declaration

public static void setFullScreen(Activity activity) 

Method Source Code

//package com.java2s;
import android.app.Activity;

import android.view.WindowManager;

public class Main {
    public static void setFullScreen(Activity activity) {
        activity.getWindow().setFlags(/*w ww  .  j  a  v a  2 s  .c om*/
                WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
    }
}

Related

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