StatusBarUtil

public class StatusBarUtil

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

Constructors

Link copied to clipboard
public void StatusBarUtil()

Properties

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

Functions

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