Activity as Full Screen - Android User Interface

Android examples for User Interface:Screen Full

Description

Activity as Full Screen

Demo Code


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

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

public class Main {
    public static void asFullScreen(Activity activity) {
        activity.requestWindowFeature(Window.FEATURE_NO_TITLE);
        activity.getWindow().setFlags(/*from  w w w .jav  a 2  s.  co m*/
                WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
    }
}

Related Tutorials