Commit 452fbcad by 徐健

增加h5页面设置底部适配布局颜色的交互方法

parent 3ad1fed6
...@@ -69,7 +69,7 @@ ext { ...@@ -69,7 +69,7 @@ ext {
//-------------- 功能组件 -------------- //-------------- 功能组件 --------------
//第一步 //第一步
"ydl-platform" : "0.0.39.19", "ydl-platform" : "0.0.39.20",
//第二步 若干 //第二步 若干
"ydl-webview" : "0.0.38.26", "ydl-webview" : "0.0.38.26",
......
...@@ -107,10 +107,25 @@ abstract class BaseActivity : AppCompatActivity(), IActivityLifecycleable { ...@@ -107,10 +107,25 @@ abstract class BaseActivity : AppCompatActivity(), IActivityLifecycleable {
*/ */
open fun setBottomColor(color: String) { open fun setBottomColor(color: String) {
try { try {
if (getStatusViewOptions()?.isAddStatusView) {
if (StatusBarUtils.hasBottomNavigatorLine(this)) {
findViewById<View>(R.id.ll_bottom_v).setBackgroundColor(
Color.parseColor(
color
)
)
}
} else {
if (StatusBarUtils.hasBottomNavigatorLine(this)) { if (StatusBarUtils.hasBottomNavigatorLine(this)) {
findViewById<View>(R.id.ll_bottom_fit_v).setBackgroundColor(Color.parseColor(color)) findViewById<View>(R.id.ll_bottom_fit_v).setBackgroundColor(
Color.parseColor(
color
)
)
}
}
} catch (e: Exception) {
} }
}catch (e: Exception) {}
} }
open fun getDefaultBottomColor(): Int { open fun getDefaultBottomColor(): Int {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment