[add] 添加自动驾驶风险弹框
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 347 KiB |
BIN
modules/mogo-module-check/src/main/res/drawable/check_wrong.png
Normal file
BIN
modules/mogo-module-check/src/main/res/drawable/check_wrong.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -12,38 +12,69 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/module_common_icon_close" />
|
||||
|
||||
<View
|
||||
android:id="@+id/description_view"
|
||||
android:layout_width="256dp"
|
||||
android:layout_height="136dp"
|
||||
android:layout_marginStart="133px"
|
||||
android:layout_marginTop="8dp"
|
||||
app:layout_constraintStart_toEndOf="@+id/imageView"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/cancel_button" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/check_button"
|
||||
android:layout_width="@dimen/dp_287"
|
||||
android:layout_height="@dimen/dp_100"
|
||||
android:layout_marginStart="@dimen/check_button_left"
|
||||
android:layout_marginBottom="@dimen/check_button_bottom"
|
||||
android:background="@drawable/check_button"
|
||||
android:gravity="center"
|
||||
android:text="立即检查"
|
||||
android:textColor="@color/module_commons_wm_dialog_text_textColor"
|
||||
android:textSize="@dimen/check_button_text_size"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView"
|
||||
android:layout_width="@dimen/dp_794"
|
||||
android:layout_height="@dimen/dp_483"
|
||||
android:layout_marginEnd="@dimen/dp_50"
|
||||
android:src="@drawable/icon_map_marker_book"
|
||||
android:layout_width="@dimen/dp_795"
|
||||
android:layout_height="@dimen/dp_484"
|
||||
android:layout_marginEnd="@dimen/check_image_right"
|
||||
android:layout_marginBottom="@dimen/check_image_bottom"
|
||||
android:src="@drawable/check_tip_image"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/error_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_79"
|
||||
android:layout_marginTop="@dimen/dp_225"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/error_image"
|
||||
android:layout_width="@dimen/dp_56"
|
||||
android:layout_height="@dimen/dp_56"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:src="@drawable/check_wrong"
|
||||
app:layout_constraintTop_toTopOf="@id/error_view" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/error_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:text="自动驾驶车辆存在风险"
|
||||
android:textColor="@color/module_commons_wm_dialog_text_textColor"
|
||||
android:textSize="@dimen/dp_54"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toEndOf="@id/error_image"
|
||||
app:layout_constraintTop_toTopOf="@id/error_view" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/error_txt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_23"
|
||||
android:text="软件运行异常"
|
||||
android:textColor="@color/check_tip_error_color"
|
||||
android:textSize="@dimen/dp_38"
|
||||
app:layout_constraintTop_toBottomOf="@id/error_title" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/check_button"
|
||||
android:layout_width="@dimen/dp_287"
|
||||
android:layout_height="@dimen/dp_100"
|
||||
android:layout_marginTop="@dimen/check_button_bottom"
|
||||
android:background="@drawable/check_button"
|
||||
android:gravity="center"
|
||||
android:text="查看详情"
|
||||
android:textColor="@color/module_commons_wm_dialog_text_textColor"
|
||||
android:textSize="@dimen/check_button_text_size"
|
||||
app:layout_constraintTop_toBottomOf="@id/error_txt" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -2,7 +2,9 @@
|
||||
<resources>
|
||||
<dimen name="check_item_space_vr">30px</dimen>
|
||||
<dimen name="check_button_text_size">38px</dimen>
|
||||
<dimen name="check_button_bottom">190px</dimen>
|
||||
<dimen name="check_button_left">100px</dimen>
|
||||
<dimen name="check_button_bottom">70px</dimen>
|
||||
<dimen name="check_button_left">133px</dimen>
|
||||
<dimen name="check_image_bottom">78px</dimen>
|
||||
<dimen name="check_image_right">50px</dimen>
|
||||
|
||||
</resources>
|
||||
@@ -2,5 +2,6 @@
|
||||
<resources>
|
||||
<color name="blue_back_color">#1A1F40</color>
|
||||
<color name="blue_check_color">#4192FF</color>
|
||||
<color name="check_tip_error_color">#F03232</color>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user