request Window Feature - Android User Interface

Android examples for User Interface:Window

Description

request Window Feature

Demo Code


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

public class Main {
    public static void requestWindowFeature(Activity ac) {
        ac.requestWindowFeature(Window.FEATURE_NO_TITLE);
        ac.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
    }/*ww  w .ja  va2  s. c om*/
}

Related Tutorials