show System UI - Android android.view

Android examples for android.view:View

Description

show System UI

Demo Code

import android.annotation.SuppressLint;
import android.view.View;

public class Main{

    @SuppressLint("InlinedApi")
    public static void showSystemUI(View decorView) {
        decorView/*from  w w w .j  a v  a  2  s  .  c o m*/
                .setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                        | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                        | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
    }

}

Related Tutorials