public final class LutoSystemBar
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
LutoSystemBar |
build()
最后调用该方法,以上配置才可生效
|
static LutoSystemBar |
Builder(android.app.Activity activity)
创建实例
|
LutoSystemBar |
changeStatusColorForImageView()
图片侵入状态栏时,可修改状态栏颜色
|
LutoSystemBar |
setNavigationBarAlpha(int navigationBarAlpha)
导航栏透明度设置
|
LutoSystemBar |
setNavigationBarColor(int navigationBarColor)
导航栏颜色设置
|
LutoSystemBar |
setNavigationBarColorRes(int navigationBarColor)
导航栏颜色设置
|
LutoSystemBar |
setStatusBarAlpha(int statusBarAlpha)
状态栏透明度设置
|
LutoSystemBar |
setStatusBarColor(int statusBarColor)
状态栏颜色设置
|
LutoSystemBar |
setStatusBarColorRes(int statusBarColor)
状态栏颜色设置
|
LutoSystemBar |
setStatusBarType(StatusBarType statusBarType)
状态栏类型设置
|
LutoSystemBar |
setSystemBarAlpha(int systemBarAlpha)
系统栏透明度设置
|
LutoSystemBar |
setSystemBarColor(int systemBarColor)
系统栏颜色设置
|
LutoSystemBar |
setSystemBarColorRes(int systemBarColor)
系统栏颜色设置
|
LutoSystemBar |
translucentForImageView(android.view.View moveDownView)
为头部或背景为ImageView的页面设置状态栏或导航栏半透明效果
|
LutoSystemBar |
translucentNavigationBar()
设置导航栏半透明效果
|
public static LutoSystemBar Builder(@NonNull android.app.Activity activity)
activity - public LutoSystemBar setStatusBarType(StatusBarType statusBarType)
statusBarType - public LutoSystemBar setSystemBarColor(int systemBarColor)
systemBarColor - 接收的值有:Color.parseColor("#dc143c")、Color.rgb(220, 20, 60)、0xffdc143cpublic LutoSystemBar setSystemBarColorRes(@ColorRes int systemBarColor)
systemBarColor - 接收的值有:R.color.redpublic LutoSystemBar setStatusBarColor(int statusBarColor)
statusBarColor - public LutoSystemBar setStatusBarColorRes(@ColorRes int statusBarColor)
statusBarColor - public LutoSystemBar setNavigationBarColor(int navigationBarColor)
navigationBarColor - public LutoSystemBar setNavigationBarColorRes(@ColorRes int navigationBarColor)
navigationBarColor - public LutoSystemBar setSystemBarAlpha(int systemBarAlpha)
systemBarAlpha - public LutoSystemBar setStatusBarAlpha(int statusBarAlpha)
statusBarAlpha - public LutoSystemBar setNavigationBarAlpha(int navigationBarAlpha)
navigationBarAlpha - public LutoSystemBar changeStatusColorForImageView()
public LutoSystemBar translucentNavigationBar()
public LutoSystemBar translucentForImageView(android.view.View moveDownView)
moveDownView - 为状态栏腾出空间的下移视图,如果不设置的话,页面的视图会在状态栏区域开始布局public LutoSystemBar build()