has Status Bar - Android User Interface

Android examples for User Interface:StatusBar

Description

has Status Bar

Demo Code


//package com.java2s;

import android.app.Activity;

import android.view.WindowManager;

public class Main {
    public static boolean hasStatusBar(Activity activity) {
        WindowManager.LayoutParams attrs = activity.getWindow()
                .getAttributes();//  w  ww.j  a  va 2s .  co  m
        if ((attrs.flags & WindowManager.LayoutParams.FLAG_FULLSCREEN) == WindowManager.LayoutParams.FLAG_FULLSCREEN) {
            return false;
        } else {
            return true;
        }
    }
}

Related Tutorials