# StatusBarUtil

public class StatusBarUtil

Created by Android Studio. User: lvhongzhen Date: 2019-08-15 Time: 01:47

## Constructors

StatusBarUtil
Link copied to clipboard
public void StatusBarUtil()

## Properties

TYPE_FLYME
Link copied to clipboard
public final static int TYPE_FLYME
TYPE_M
Link copied to clipboard
public final static int TYPE_M
TYPE_MIUI
Link copied to clipboard
public final static int TYPE_MIUI

## Functions

getStatusBarHeight
Link copied to clipboard
public static int getStatusBarHeight(Context context)
setCommonUI
Link copied to clipboard
public static boolean setCommonUI(Activity activity, boolean dark)
setFlymeUI
Link copied to clipboard
public static boolean setFlymeUI(Activity activity, boolean dark)
setMiuiUI
Link copied to clipboard
public static boolean setMiuiUI(Activity activity, boolean dark)
setRootViewFitsSystemWindows
Link copied to clipboard
public static void setRootViewFitsSystemWindows(Activity activity, boolean fitSystemWindows)
代码实现android:fitsSystemWindows
setStatusBarColor
Link copied to clipboard
public static void setStatusBarColor(Activity activity, int colorId)
修改状态栏颜色，支持4.
setStatusBarDarkTheme
Link copied to clipboard
public static boolean setStatusBarDarkTheme(Activity activity, boolean dark)
设置状态栏深色浅色切换
setStatusBarFontIconDark
Link copied to clipboard
public static boolean setStatusBarFontIconDark(Activity activity, int type, boolean dark)
设置 状态栏深色浅色切换
setTranslucentStatus
Link copied to clipboard
public static void setTranslucentStatus(Activity activity)
设置状态栏透明