Create Full Screen Activity - Android User Interface

Android examples for User Interface:Screen Full

Description

Create Full Screen Activity

Demo Code


//package com.java2s;
import android.app.Activity;
import android.view.Window;
import android.view.WindowManager;

public class Main {

    public static void onCreateFullScreen(Activity activity) {
        activity.requestWindowFeature(Window.FEATURE_NO_TITLE);
        activity.getWindow().setFlags(/*  www  .j a va 2  s. c om*/
                WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
    }
}

Related Tutorials