添加故障求助通知提示

This commit is contained in:
tongchenfei
2020-11-02 17:49:17 +08:00
parent 788644b944
commit 7d7688b793
11 changed files with 155 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 984 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 984 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="@dimen/module_ext_seek_help_notice_bg_corner" />
<gradient
android:startColor="#E51E57A4"
android:endColor="#E51F7EFF"
android:angle="0" />
</shape>

View File

@@ -2,7 +2,8 @@
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout"
>
<View
android:id="@+id/module_map_id_navi_bg"
android:layout_width="match_parent"

View File

@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
<View
android:id="@+id/module_ext_id_seek_help_notice_bg"
android:layout_width="match_parent"
android:layout_height="@dimen/module_ext_seek_help_notice_bg_height"
android:layout_marginLeft="@dimen/module_common_shadow_width_pos"
android:layout_marginTop="@dimen/module_common_shadow_width_pos"
android:layout_marginRight="@dimen/module_common_shadow_width_pos"
android:background="@drawable/module_ext_drawable_seek_help_notice_bg" />
<ImageView
android:id="@+id/module_ext_id_seek_help_notice_icon"
android:layout_width="@dimen/module_ext_seek_help_notice_icon_width"
android:layout_height="@dimen/module_ext_seek_help_notice_icon_width"
android:src="@drawable/module_ext_icon_seek_help_notice_icon"
app:layout_constraintBottom_toBottomOf="@id/module_ext_id_seek_help_notice_bg"
app:layout_constraintHorizontal_chainStyle="packed"
app:layout_constraintLeft_toLeftOf="@id/module_ext_id_seek_help_notice_bg"
app:layout_constraintRight_toLeftOf="@id/module_ext_id_seek_help_notice_left"
app:layout_constraintTop_toTopOf="@id/module_ext_id_seek_help_notice_bg" />
<TextView
android:id="@+id/module_ext_id_seek_help_notice_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/module_ext_seek_help_notice_text_margin_start"
android:text="故障求助中,已通知周边"
android:textColor="#fff"
android:textSize="@dimen/module_ext_seek_help_notice_text_size"
app:layout_constraintBottom_toBottomOf="@id/module_ext_id_seek_help_notice_bg"
app:layout_constraintLeft_toRightOf="@id/module_ext_id_seek_help_notice_icon"
app:layout_constraintRight_toLeftOf="@id/module_ext_id_seek_help_notice_number"
app:layout_constraintTop_toTopOf="@id/module_ext_id_seek_help_notice_bg" />
<TextView
android:id="@+id/module_ext_id_seek_help_notice_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="5"
android:textColor="#fff"
android:textSize="@dimen/module_ext_seek_help_notice_number_text_size"
app:layout_constraintBottom_toBottomOf="@id/module_ext_id_seek_help_notice_bg"
app:layout_constraintLeft_toRightOf="@id/module_ext_id_seek_help_notice_left"
app:layout_constraintRight_toLeftOf="@id/module_ext_id_seek_help_notice_right"
app:layout_constraintTop_toTopOf="@id/module_ext_id_seek_help_notice_bg" />
<TextView
android:id="@+id/module_ext_id_seek_help_notice_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="位车主!"
android:textColor="#fff"
android:textSize="@dimen/module_ext_seek_help_notice_text_size"
app:layout_constraintBottom_toBottomOf="@id/module_ext_id_seek_help_notice_bg"
app:layout_constraintLeft_toRightOf="@id/module_ext_id_seek_help_notice_number"
app:layout_constraintRight_toRightOf="@id/module_ext_id_seek_help_notice_bg"
app:layout_constraintTop_toTopOf="@id/module_ext_id_seek_help_notice_bg" />
<androidx.constraintlayout.widget.Group
android:id="@+id/module_ext_id_seek_help_notice_group"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
app:constraint_referenced_ids="module_ext_id_seek_help_notice_bg,module_ext_id_seek_help_notice_icon,module_ext_id_seek_help_notice_left,module_ext_id_seek_help_notice_number,module_ext_id_seek_help_notice_right" />
</merge>

View File

@@ -9,6 +9,11 @@
<include
layout="@layout/module_ext_layout_extensions"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<include
layout="@layout/module_ext_include_seeking_help_notice"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<include

View File

@@ -157,4 +157,12 @@
<dimen name="module_ext_destination_online_car_paddingRight">31px</dimen>
<dimen name="module_common_shadow_width_pos">10px</dimen>
<dimen name="module_ext_seek_help_notice_icon_width">44px</dimen>
<dimen name="module_ext_seek_help_notice_bg_width">1060px</dimen>
<dimen name="module_ext_seek_help_notice_bg_height">100px</dimen>
<dimen name="module_ext_seek_help_notice_bg_corner">30px</dimen>
<dimen name="module_ext_seek_help_notice_text_size">34px</dimen>
<dimen name="module_ext_seek_help_notice_text_margin_start">20px</dimen>
<dimen name="module_ext_seek_help_notice_number_text_size">40px</dimen>
</resources>

View File

@@ -162,4 +162,12 @@
<dimen name="module_ext_destination_online_car_paddingRight">14px</dimen>
<dimen name="module_common_shadow_width_pos">8px</dimen>
<dimen name="module_ext_seek_help_notice_icon_width">25px</dimen>
<dimen name="module_ext_seek_help_notice_bg_width">25px</dimen>
<dimen name="module_ext_seek_help_notice_bg_corner">16px</dimen>
<dimen name="module_ext_seek_help_notice_bg_height">56px</dimen>
<dimen name="module_ext_seek_help_notice_text_size">18px</dimen>
<dimen name="module_ext_seek_help_notice_text_margin_start">10px</dimen>
<dimen name="module_ext_seek_help_notice_number_text_size">22px</dimen>
</resources>