make Full Screen - Android android.app

Android examples for android.app:Screen

Description

make Full Screen

Demo Code

import android.app.Activity;
import android.view.Window;
import android.view.WindowManager;

public class Main {

  public static void makeFullScreen(Activity a) {
    a.requestWindowFeature(Window.FEATURE_NO_TITLE);
    a.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

  }// w w  w. jav  a  2 s. c o  m

}

Related Tutorials