diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt index 5479ed816c..85fecc0698 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/SOPSettingView.kt @@ -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运营相关配置 diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_sop_setting.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_sop_setting.xml index 7cf8c1dab1..f5ed4c7fb0 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_sop_setting.xml +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_sop_setting.xml @@ -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" />