[dev_robobus-d_230413_3.1.0]fix车速设置光标位置问题

This commit is contained in:
xuxinchao
2023-04-14 11:43:23 +08:00
parent dbb5707239
commit 943abe3171

View File

@@ -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)
}
//速度确认