dim Status And Navigation Bar - Android User Interface

Android examples for User Interface:StatusBar

Description

dim Status And 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.ICE_CREAM_SANDWICH)
    public static void dimStatusAndNavigationBar() {
        int uiOptions = View.SYSTEM_UI_FLAG_LOW_PROFILE;
        view.setSystemUiVisibility(uiOptions);
    }/*from  w  w w .  j  a v a 2  s.co  m*/
}

Related Tutorials