From 12f4e548352bc06ca5d372e9cb5dd6fcfb6925c8 Mon Sep 17 00:00:00 2001 From: xuxinchao Date: Thu, 20 Jul 2023 18:03:50 +0800 Subject: [PATCH] =?UTF-8?q?[3.4.0]=E8=B0=83=E6=95=B4Taxi=E4=B9=98=E5=AE=A2?= =?UTF-8?q?=E5=B1=8F=E7=BA=A2=E7=BB=BF=E7=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/res/layout/taxi_p_base_fragment.xml | 6 ++++-- .../hmi/ui/widget/SingleTrafficLightView.kt | 18 +++++++++++++++++- .../res/drawable/traffic_light_bg_taxi_p.xml | 7 +++++++ .../src/main/res/values/attr.xml | 6 ++++++ 4 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 core/function-impl/mogo-core-function-hmi/src/main/res/drawable/traffic_light_bg_taxi_p.xml diff --git a/OCH/mogo-och-taxi-passenger/src/main/res/layout/taxi_p_base_fragment.xml b/OCH/mogo-och-taxi-passenger/src/main/res/layout/taxi_p_base_fragment.xml index d1e357c336..f635f9274c 100644 --- a/OCH/mogo-och-taxi-passenger/src/main/res/layout/taxi_p_base_fragment.xml +++ b/OCH/mogo-och-taxi-passenger/src/main/res/layout/taxi_p_base_fragment.xml @@ -85,11 +85,13 @@ android:id="@+id/traffic_light_view" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="@dimen/dp_100" + android:layout_marginTop="@dimen/dp_83" android:layout_marginRight="@dimen/taxi_p_traffic_light_layout_margin_right" android:visibility="gone" app:layout_constraintRight_toRightOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="parent" + app:traffic_light_user="taxi_p" + /> + + + + + \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/values/attr.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/values/attr.xml index edfb6e9642..a8bee1d4d4 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/res/values/attr.xml +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/values/attr.xml @@ -77,6 +77,12 @@ + + + + + +