[6.3.0][Opt]运营面板业务类UI优化

This commit is contained in:
chenfufeng
2024-03-15 18:14:31 +08:00
parent 8f27ec39b6
commit 793c36ac82
2 changed files with 18 additions and 4 deletions

View File

@@ -743,6 +743,13 @@ internal class SOPSettingView @JvmOverloads constructor(
it.visibility = GONE
} else {
it.visibility = VISIBLE
val params = it.layoutParams as ConstraintLayout.LayoutParams
if (scLineRoutingVerify.visibility == VISIBLE) {
params.topToBottom = R.id.scLineRoutingVerify
} else {
params.topToBottom = R.id.scIPCReport
}
it.layoutParams = params
it.setOnCheckedChangeListener { _, isChecked ->
CallerMapUIServiceManager.getMapUIController()?.setWeatherEnable(isChecked)
}
@@ -818,10 +825,18 @@ internal class SOPSettingView @JvmOverloads constructor(
else
View.GONE
tvPullTimeTitle.visibility =
if(AppIdentityModeUtils.isTaxiDriver(FunctionBuildConfig.appIdentityMode))
if(AppIdentityModeUtils.isTaxiDriver(FunctionBuildConfig.appIdentityMode)) {
val params = tvPullTimeTitle.layoutParams as ConstraintLayout.LayoutParams
if (scWeatherSwitch.visibility == VISIBLE) {
params.topToBottom = R.id.scWeatherSwitch
} else {
params.topToBottom = R.id.scLineRoutingVerify
}
tvPullTimeTitle.layoutParams = params
View.VISIBLE
else
} else {
View.GONE
}
/**
* 魔方sop运营相关配置

View File

@@ -780,8 +780,7 @@
android:text="@string/pull_time_title"
android:textColor="@color/black"
android:textSize="32dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/scLineRoutingVerify" />
app:layout_constraintStart_toStartOf="parent" />
<RadioGroup
android:id="@+id/rgPullTime"