full Screen Without Navigation Bar - Android User Interface

Android examples for User Interface:NavigationBar

Description

full Screen Without Navigation Bar

Demo Code


//package com.java2s;
import android.annotation.TargetApi;

import android.os.Build;
import android.view.View;

public class Main {
    private static View view;

    @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
    public static void fullScreenWithoutNavigationBar() {
        int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN
                | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
        view.setSystemUiVisibility(uiOptions);
    }/*from w  ww  .ja  v a2s .c om*/
}

Related Tutorials