set Activity Full Screen - Android User Interface

Android examples for User Interface:Screen Full

Description

set Activity Full Screen

Demo Code


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

import android.view.WindowManager;

public class Main {
    public static void setFullScreen(Activity activity) {
        activity.getWindow().setFlags(//from   ww  w . j  av  a2s.  com
                WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
    }
}

Related Tutorials