diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/SingleTrafficLightView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/SingleTrafficLightView.kt
index 56b5d25457..fe5bd2eccc 100644
--- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/SingleTrafficLightView.kt
+++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/SingleTrafficLightView.kt
@@ -181,6 +181,8 @@ class SingleTrafficLightView @JvmOverloads constructor(
mLightSourceDivider!!.visibility = VISIBLE
mLightTimeTV?.visibility = GONE
mTrafficLightClBG?.setBackgroundResource(R.drawable.icon_single_traffic_light_perception_bg)
+ mTrafficLightClBG?.layoutParams?.width =
+ context.resources.getDimension(R.dimen.dp_280).toInt()
}
}
}
@@ -395,7 +397,8 @@ class SingleTrafficLightView @JvmOverloads constructor(
mLightSourceDivider!!.visibility = VISIBLE
mLightTimeTV?.visibility = VISIBLE
mTrafficLightClBG?.setBackgroundResource(R.drawable.icon_single_traffic_light_bg)
-
+ mTrafficLightClBG?.layoutParams?.width =
+ context.resources.getDimension(R.dimen.dp_368).toInt()
}
}
diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/hmi_view_traffic_light.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/hmi_view_traffic_light.xml
index c5e84468e4..a57e7b9325 100644
--- a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/hmi_view_traffic_light.xml
+++ b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/hmi_view_traffic_light.xml
@@ -15,38 +15,41 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
android:contentDescription="@string/traffic_light_status"
- android:layout_marginStart="@dimen/dp_20"
+ android:layout_marginStart="@dimen/dp_25"
+ android:layout_marginBottom="@dimen/dp_12"
/>