toggle menu
Android-IMKit-SDK
5.12.0
io.rong.imkit
switch theme
search in API
Android-IMKit-SDK
/
io.rong.imkit.utils
/
StatusBarUtil
Status
Bar
Util
public
class
StatusBarUtil
Created by Android Studio. User: lvhongzhen Date: 2019-08-15 Time: 01:47
Members
Constructors
Status
Bar
Util
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
get
Status
Bar
Height
Link copied to clipboard
public
static
int
getStatusBarHeight
(
Context context
)
set
Common
UI
Link copied to clipboard
public
static
boolean
setCommonUI
(
Activity activity
,
boolean dark
)
set
Flyme
UI
Link copied to clipboard
public
static
boolean
setFlymeUI
(
Activity activity
,
boolean dark
)
set
Miui
UI
Link copied to clipboard
public
static
boolean
setMiuiUI
(
Activity activity
,
boolean dark
)
set
Root
View
Fits
System
Windows
Link copied to clipboard
public
static
void
setRootViewFitsSystemWindows
(
Activity activity
,
boolean fitSystemWindows
)
代码实现android:fitsSystemWindows
set
Status
Bar
Color
Link copied to clipboard
public
static
void
setStatusBarColor
(
Activity activity
,
int colorId
)
修改状态栏颜色,支持4.
set
Status
Bar
Dark
Theme
Link copied to clipboard
public
static
boolean
setStatusBarDarkTheme
(
Activity activity
,
boolean dark
)
设置状态栏深色浅色切换
set
Status
Bar
Font
Icon
Dark
Link copied to clipboard
public
static
boolean
setStatusBarFontIconDark
(
Activity activity
,
int type
,
boolean dark
)
设置 状态栏深色浅色切换
set
Translucent
Status
Link copied to clipboard
public
static
void
setTranslucentStatus
(
Activity activity
)
设置状态栏透明