[dev_robotaxi-d_230412_2.15.0]fix车速设置光标位置问题
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
//速度确认
|
||||
|
||||
Reference in New Issue
Block a user