添加钛方科技碰撞报警相关逻辑,主要增加碰撞阈值设置临时入口和碰撞报警事件转发
This commit is contained in:
@@ -0,0 +1,261 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
||||
android:id="@+id/thresholdSetContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#000"
|
||||
android:padding="30dp"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvTop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="前保险杠设置(5)"
|
||||
android:textColor="#fff"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etTopC"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="center"
|
||||
android:hint="碰撞"
|
||||
android:textColor="#fff"
|
||||
android:textColorHint="#ccc"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintLeft_toLeftOf="@+id/tvTop"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvTop" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etTopS"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:gravity="center"
|
||||
android:hint="剐蹭"
|
||||
android:textColor="#fff"
|
||||
android:textColorHint="#ccc"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintRight_toRightOf="@+id/tvTop"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvTop" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvFrontLeft"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="左前门设置(4)"
|
||||
android:textColor="#fff"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toLeftOf="@+id/tvFrontRight"
|
||||
app:layout_constraintTop_toBottomOf="@+id/etTopC" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etFrontLeftC"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center"
|
||||
android:hint="碰撞"
|
||||
android:textColor="#fff"
|
||||
android:textColorHint="#ccc"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintLeft_toLeftOf="@+id/tvFrontLeft"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvFrontLeft" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etFrontLeftS"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center"
|
||||
android:hint="剐蹭"
|
||||
android:textColor="#fff"
|
||||
android:textColorHint="#ccc"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintRight_toRightOf="@+id/tvFrontLeft"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvFrontLeft" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvFrontRight"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:text="右前门设置(1)"
|
||||
android:textColor="#fff"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintLeft_toRightOf="@+id/tvFrontLeft"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/etTopC" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etFrontRightC"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center"
|
||||
android:hint="碰撞"
|
||||
android:textColor="#fff"
|
||||
android:textColorHint="#ccc"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintLeft_toLeftOf="@+id/tvFrontRight"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvFrontRight" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etFrontRightS"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center"
|
||||
android:hint="剐蹭"
|
||||
android:textColor="#fff"
|
||||
android:textColorHint="#ccc"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintRight_toRightOf="@+id/tvFrontRight"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvFrontRight" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvBackLeft"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="左后门设置(3)"
|
||||
android:textColor="#fff"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toLeftOf="@+id/tvBackRight"
|
||||
app:layout_constraintTop_toBottomOf="@+id/etFrontRightS" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etBackLeftC"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center"
|
||||
android:hint="碰撞"
|
||||
android:textColor="#fff"
|
||||
android:textColorHint="#ccc"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintLeft_toLeftOf="@+id/tvBackLeft"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvBackLeft" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etBackLeftS"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center"
|
||||
android:hint="剐蹭"
|
||||
android:textColor="#fff"
|
||||
android:textColorHint="#ccc"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintRight_toRightOf="@+id/tvBackLeft"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvBackLeft" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvBackRight"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="右后门设置(2)"
|
||||
android:textColor="#fff"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintLeft_toRightOf="@+id/tvBackLeft"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/etFrontRightS" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etBackRightC"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center"
|
||||
android:hint="碰撞"
|
||||
android:textColor="#fff"
|
||||
android:textColorHint="#ccc"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintLeft_toLeftOf="@+id/tvBackRight"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvBackRight" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etBackRightS"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center"
|
||||
android:hint="剐蹭"
|
||||
android:textColor="#fff"
|
||||
android:textColorHint="#ccc"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintRight_toRightOf="@+id/tvBackRight"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvBackRight" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvBottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="后保险杠设置(6)"
|
||||
android:textColor="#fff"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/etBackRightS" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etBottomC"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center"
|
||||
android:hint="碰撞"
|
||||
android:textColor="#fff"
|
||||
android:textColorHint="#ccc"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintLeft_toLeftOf="@+id/tvBottom"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvBottom" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etBottomS"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20dp"
|
||||
android:gravity="center"
|
||||
android:hint="剐蹭"
|
||||
android:textColor="#fff"
|
||||
android:textColorHint="#ccc"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintRight_toRightOf="@+id/tvBottom"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvBottom" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnClose"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="关闭"
|
||||
android:textColor="#fff"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnSet"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="30dp"
|
||||
android:text="设置"
|
||||
android:textColor="#fff"
|
||||
android:textSize="24sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -6,20 +6,20 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<!-- <androidx.constraintlayout.widget.Group-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:id="@+id/naviGroup"-->
|
||||
<!-- android:visibility="visible"-->
|
||||
<!-- app:constraint_referenced_ids="module_map_id_navi_next_info_road,module_map_id_navi_next_info_turn_info,module_map_id_navi_bg,module_map_id_navi_next_info_road_turn_icon,module_map_id_navi_next_info_distance,module_map_id_navi_next_info_distance_unit,remainDistanceGroup,remainTimeGroup,arriveTimeGroup" />-->
|
||||
<!-- <androidx.constraintlayout.widget.Group-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:id="@+id/naviGroup"-->
|
||||
<!-- android:visibility="visible"-->
|
||||
<!-- app:constraint_referenced_ids="module_map_id_navi_next_info_road,module_map_id_navi_next_info_turn_info,module_map_id_navi_bg,module_map_id_navi_next_info_road_turn_icon,module_map_id_navi_next_info_distance,module_map_id_navi_next_info_distance_unit,remainDistanceGroup,remainTimeGroup,arriveTimeGroup" />-->
|
||||
|
||||
<View
|
||||
android:id="@+id/module_map_id_navi_bg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/module_ext_navi_info_panel_height"
|
||||
android:background="@drawable/module_ext_dw_navi_info_panel_bkg"
|
||||
android:focusable="true"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
app:layout_constraintHorizontal_bias="0.501"
|
||||
app:layout_constraintLeft_toLeftOf="@id/module_entrance_id_top_container"
|
||||
app:layout_constraintRight_toRightOf="@id/module_entrance_id_top_container"
|
||||
@@ -241,17 +241,17 @@
|
||||
android:textSize="@dimen/module_ext_north_textSize"
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible"
|
||||
app:layout_constraintRight_toRightOf="@+id/module_entrance_id_upload_road_condition"
|
||||
app:layout_constraintTop_toBottomOf="@+id/module_map_id_navi_bg"
|
||||
app:layout_goneMarginTop="@dimen/module_ext_north_goneMarginTop" />
|
||||
app:layout_goneMarginTop="@dimen/module_ext_north_goneMarginTop"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<com.mogo.module.extensions.navi.TopView
|
||||
android:id="@+id/module_entrance_id_top_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:focusable="true"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
app:layout_constraintBottom_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent" />
|
||||
@@ -262,12 +262,12 @@
|
||||
android:layout_height="@dimen/module_ext_button_height"
|
||||
android:layout_marginTop="@dimen/module_ext_camera_button_marginTop"
|
||||
android:background="@drawable/module_ext_dw_common_corner_bkg"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible"
|
||||
app:layout_constraintLeft_toLeftOf="@+id/module_map_id_navi_bg"
|
||||
app:layout_constraintTop_toBottomOf="@+id/module_map_id_navi_bg">
|
||||
app:layout_constraintTop_toBottomOf="@+id/module_map_id_navi_bg"
|
||||
tools:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/module_ext_id_display_overview_icon"
|
||||
@@ -385,4 +385,6 @@
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
|
||||
<include layout="@layout/module_ext_layout_crash_threshold_set" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
Reference in New Issue
Block a user