diff --git a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/status/ui/AutoPilotLaunchBeforeView.kt b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/status/ui/AutoPilotLaunchBeforeView.kt
index a2ae7d1377..f49364708a 100644
--- a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/status/ui/AutoPilotLaunchBeforeView.kt
+++ b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/status/ui/AutoPilotLaunchBeforeView.kt
@@ -48,9 +48,8 @@ class AutoPilotLaunchBeforeView: LinearLayout, IStatusListener {
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {
LayoutInflater.from(context).inflate(R.layout.layout_autopilot_launch_before, this, true)
background = ContextCompat.getDrawable(context, R.drawable.icon_bg_autopilot_status)
- clipChildren = false
- clipToPadding = false
- setPadding(AutoSizeUtils.dp2px(context, 29f), AutoSizeUtils.dp2px(context, 35f), AutoSizeUtils.dp2px(context, 30f), AutoSizeUtils.dp2px(context, 30f))
+ val padding = AutoSizeUtils.dp2px(context, 30f)
+ setPadding(padding, padding, padding, padding)
}
diff --git a/core/function-impl/mogo-core-function-devatools/src/main/res/layout/layout_autopilot_launch_before.xml b/core/function-impl/mogo-core-function-devatools/src/main/res/layout/layout_autopilot_launch_before.xml
index 6481eaaa26..0cb89c7cfe 100644
--- a/core/function-impl/mogo-core-function-devatools/src/main/res/layout/layout_autopilot_launch_before.xml
+++ b/core/function-impl/mogo-core-function-devatools/src/main/res/layout/layout_autopilot_launch_before.xml
@@ -6,9 +6,9 @@
tools:layout_height="@dimen/dp_269"
tools:orientation="horizontal"
tools:background="@drawable/icon_bg_autopilot_status"
- tools:paddingTop="@dimen/dp_35"
+ tools:paddingTop="@dimen/dp_30"
tools:paddingBottom="@dimen/dp_30"
- tools:paddingStart="@dimen/dp_29"
+ tools:paddingStart="@dimen/dp_30"
tools:paddingEnd="@dimen/dp_30"
tools:clipToPadding="false"
tools:clipChildren="false">
@@ -17,43 +17,44 @@
android:id="@+id/speed_chart_parent"
android:layout_width="@dimen/dp_184"
android:layout_height="@dimen/dp_200"
- android:gravity="center"
+ android:gravity="center_horizontal"
+ android:layout_gravity="center_vertical"
android:orientation="vertical"
+ android:clipChildren="false"
+ android:clipToPadding="false"
android:background="@drawable/icon_bg_speed">
+ android:text="0" />
+ android:layout_marginTop="@dimen/dp_5"
+ android:paddingStart="@dimen/dp_34">
+ android:layout_marginTop="@dimen/dp_23">