diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotAndCheckView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotAndCheckView.kt index a2713a6c12..315daab168 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotAndCheckView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotAndCheckView.kt @@ -165,6 +165,7 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor( return@setOnTouchListener true } etInputSpeed.isFocusableInTouchMode = true + etInputSpeed.setSelection(speedLimit.toString().length) if (keyBoardUtil == null) { keyBoardUtil = KeyBoardUtil(sKeyBoardView, etInputSpeed) } @@ -192,6 +193,7 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor( } else{ ToastUtils.showShort("车速不能再减了") } + etInputSpeed.setSelection(speedLimit.toString().length) } ivSpeedAdd.setOnClickListener { @@ -204,6 +206,7 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor( } else{ ToastUtils.showShort("车速不能再加了") } + etInputSpeed.setSelection(speedLimit.toString().length) } //速度确认