[dev_robobus-d_230413_3.1.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)
|
||||
}
|
||||
@@ -191,6 +192,7 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor(
|
||||
} else{
|
||||
ToastUtils.showShort("车速不能再减了")
|
||||
}
|
||||
etInputSpeed.setSelection(speedLimit.toString().length)
|
||||
}
|
||||
|
||||
ivSpeedAdd.setOnClickListener {
|
||||
@@ -203,6 +205,7 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor(
|
||||
} else{
|
||||
ToastUtils.showShort("车速不能再加了")
|
||||
}
|
||||
etInputSpeed.setSelection(speedLimit.toString().length)
|
||||
}
|
||||
|
||||
//速度确认
|
||||
|
||||
Reference in New Issue
Block a user