-
Notifications
You must be signed in to change notification settings - Fork 14
VBActivity
William edited this page Sep 11, 2024
·
4 revisions
class ***: VBActivity<***Binding, VBBlankViewModel>() {
/**
* 设置状态栏颜色
* @param color 颜色
* @param isDarkFont 状态栏字体深色或亮色 true 深色
* @param navigationBarColor 底部导航栏颜色(如果是空,则直接拿isDarkFont来做是显示白色还是黑色)
*/
protected open fun statusBarColor(
color: String = VBConfig.options.statusBarColor,
isDarkFont: Boolean = vbIsWhiteColor(Color.parseColor(color)),
navigationBarColor: String = VBConfig.options.navigationBarColor
) {
}
/**
* 显示Toolbar
* @param title 文字 [title]不为空才会显示TitleBar
* @param titleColor 文字颜色
* @param isShowBottomLine 是否显示Toolbar下面的分割线
* @param resLeft 返回键图片
* @param listenerLeft 返回键点击事件
*/
protected open fun toolBarTitle(
title: String = "",
titleColor: Int = VBConfig.options.toolbarTitleColor,
isShowBottomLine: Boolean = VBConfig.options.toolbarLine,
resLeft: Int = VBConfig.options.toolbarBackRes,
listenerLeft: View.OnClickListener? = null,
): Boolean {
}
/**
* 是否沉浸式状态栏
*/
protected open fun useTranslucent(): Boolean = false
/**
* ViewModel是否绑定Application生命周期
*/
protected open fun useViewModelApplication(): Boolean = false
}