-
Notifications
You must be signed in to change notification settings - Fork 0
StatusBarUtils
Shanti Ranjan Das edited this page Jan 25, 2020
·
2 revisions
**Below functions requires Activity scope for calling.
-
setStatusBarColor(@ColorInt color: Int, transparent: Boolean = false)
Set the color of the status bar. Provide resource color android transparency(default is false). -
setupStatusBarIconColor()
Method to set Status bar bar icon color according to context of your activity form attributes. -
setupStatusBarIconColor(isLightToolbar: Boolean)
Method to setup Status Bar Icon Color. If you want light color then pass true or false. -
setTranslucentStatusBar(translucent: Boolean)
Method to set Translucent Status Bar. -
getStatusBarHeight(): Int
Get Height of Status bar
Activity is not required for calling below functions.
-
isStatusLightColor(@ColorInt color: Int): Boolean
Method to check if status bar is light color or dark.