From 6a0a7faefdf5a8d1f8d0074399b24911716a57e9 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Thu, 17 Mar 2022 17:37:49 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=E8=87=AA=E5=8A=A8=E9=A9=BE=E9=A9=B6?= =?UTF-8?q?=E9=80=9F=E5=BA=A6=E8=BE=93=E5=85=A5=E6=97=B6=E8=BE=B9=E6=A1=86?= =?UTF-8?q?=E9=AB=98=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/function/hmi/ui/tools/AutoPilotAndCheckView.kt | 3 +++ .../src/main/res/drawable/pilot_speed_bg.xml | 1 - .../src/main/res/drawable/pilot_speed_high_light_bg.xml | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 core/function-impl/mogo-core-function-hmi/src/main/res/drawable/pilot_speed_high_light_bg.xml 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 c1a6d1fe28..960adf8bbf 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 @@ -60,7 +60,9 @@ class AutoPilotAndCheckView @JvmOverloads constructor( ToastUtils.showShort("超过最大限速值60,设置失败") } else -> { + llSpeedPosition.background = resources.getDrawable(R.drawable.pilot_speed_bg) keyBoardUtil?.hideKeyboard() + etInputSpeed.clearFocus() // 设置自动驾驶速度 val isSuccess = CallerAutoPilotManager.setAutoPilotSpeed(speed) when { @@ -94,6 +96,7 @@ class AutoPilotAndCheckView @JvmOverloads constructor( keyBoardUtil?.hideKeyboard() return@setOnTouchListener true } else { + llSpeedPosition.background = resources.getDrawable(R.drawable.pilot_speed_high_light_bg) if (etInputSpeed.hasFocusable()) { if (keyBoardUtil == null) { keyBoardUtil = KeyBoardUtil(sKeyBoardView, etInputSpeed) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/drawable/pilot_speed_bg.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/drawable/pilot_speed_bg.xml index e4fe7e8614..91520788bf 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/res/drawable/pilot_speed_bg.xml +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/drawable/pilot_speed_bg.xml @@ -2,5 +2,4 @@ - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/drawable/pilot_speed_high_light_bg.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/drawable/pilot_speed_high_light_bg.xml new file mode 100644 index 0000000000..e4fe7e8614 --- /dev/null +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/drawable/pilot_speed_high_light_bg.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file