From ee87cfa3fec96ed074282364d848d5e8205c9eb0 Mon Sep 17 00:00:00 2001 From: liujing Date: Tue, 10 May 2022 18:16:51 +0800 Subject: [PATCH] =?UTF-8?q?busUI,=E5=B7=A6=E6=AD=A3=E5=8F=B3=E8=B4=9F?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9,=E5=BE=85=E9=AA=8C?= =?UTF-8?q?=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/res/layout/bus_p_base_fragment.xml | 11 ++++++----- .../function/hmi/ui/widget/SteeringWheelView.java | 10 +++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_base_fragment.xml b/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_base_fragment.xml index ae8970ff66..523a6fc82d 100644 --- a/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_base_fragment.xml +++ b/OCH/mogo-och-bus-passenger/src/main/res/layout/bus_p_base_fragment.xml @@ -6,12 +6,13 @@ + 0) { steeringTVR.setVisibility(View.INVISIBLE); steeringTVL.setVisibility(View.VISIBLE); steeringTVL.setText(String.valueOf((int) steering) + "°"); - } else if (steeringTVR != null && steering >= 0) { + } else if (steeringTVR != null && steering <= 0) { steeringTVL.setVisibility(View.INVISIBLE); steeringTVR.setVisibility(View.VISIBLE); steeringTVR.setText(String.valueOf((int) steering) + "°"); @@ -175,7 +175,7 @@ public class SteeringWheelView extends ConstraintLayout { Log.d(TAG, "onAutopilotSteeringData error"); } animationWithSteeringData(steering); - steeringCircularV.setProgress((int) (steering * 100) / 360, 1000); + steeringCircularV.setProgress((int) (-steering * 100) / 360, 1000); } });