[6.5.0]行程总结
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package com.mogo.eagle.core.function.hmi.ui.widget
|
||||
|
||||
import android.app.Dialog
|
||||
import android.content.Context
|
||||
import android.view.LayoutInflater
|
||||
import androidx.lifecycle.LifecycleObserver
|
||||
import com.mogo.eagle.core.function.hmi.R
|
||||
import com.mogo.eagle.core.function.hmi.dialog.BaseFloatDialog
|
||||
|
||||
/**
|
||||
* 行程总结View
|
||||
* 鹰眼6.5.0需求
|
||||
*/
|
||||
class ItinerarySummaryDialog(context: Context) : BaseFloatDialog(context), LifecycleObserver {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "ItinerarySummaryView"
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
init {
|
||||
setContentView(R.layout.dialog_itinerary_summary)
|
||||
}
|
||||
|
||||
override fun onAttachedToWindow() {
|
||||
super.onAttachedToWindow()
|
||||
}
|
||||
|
||||
override fun onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow()
|
||||
}
|
||||
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
@@ -0,0 +1,355 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/dp_2158"
|
||||
android:layout_height="@dimen/dp_1170"
|
||||
android:background="@drawable/bg_itinerary_summary"
|
||||
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivSummaryClose"
|
||||
android:layout_width="@dimen/dp_86"
|
||||
android:layout_height="@dimen/dp_86"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:src="@drawable/icon_summary_close"
|
||||
android:contentDescription="@string/summary_close"
|
||||
android:layout_marginEnd="@dimen/dp_43"
|
||||
android:layout_marginTop="@dimen/dp_68"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivSummaryZhi"
|
||||
android:layout_width="@dimen/dp_190"
|
||||
android:layout_height="@dimen/dp_160"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:src="@drawable/icon_summary_zhi"
|
||||
android:contentDescription="@string/summary_zhi"
|
||||
android:layout_marginTop="@dimen/dp_120"
|
||||
android:layout_marginStart="@dimen/dp_735"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="@dimen/dp_927"
|
||||
android:layout_height="@dimen/dp_84"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_marginTop="@dimen/dp_130"
|
||||
android:layout_marginEnd="@dimen/dp_220"
|
||||
android:background="@drawable/bg_summary_zhi_tip"
|
||||
/>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/clService"
|
||||
android:layout_width="@dimen/dp_1261"
|
||||
android:layout_height="@dimen/dp_260"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
android:layout_marginTop="@dimen/dp_486"
|
||||
android:layout_marginEnd="@dimen/dp_83"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvIntersectionServices"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:textSize="@dimen/sp_26"
|
||||
android:textColor="@color/summary_service_content"
|
||||
android:text="@string/summary_intersection_services"
|
||||
android:layout_marginBottom="@dimen/dp_56"
|
||||
android:layout_marginStart="@dimen/dp_58"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvLightServices"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/tvIntersectionServices"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvInfoTip"
|
||||
android:textSize="@dimen/sp_26"
|
||||
android:textColor="@color/summary_service_content"
|
||||
android:text="@string/summary_light_services"
|
||||
android:layout_marginBottom="@dimen/dp_56"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvInfoTip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/tvLightServices"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvVehicleTip"
|
||||
android:textSize="@dimen/sp_26"
|
||||
android:textColor="@color/summary_service_content"
|
||||
android:text="@string/summary_info_tip"
|
||||
android:layout_marginBottom="@dimen/dp_56"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvVehicleTip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/tvInfoTip"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvVulnerableTip"
|
||||
android:textSize="@dimen/sp_26"
|
||||
android:textColor="@color/summary_service_content"
|
||||
android:text="@string/summary_vehicle_tip"
|
||||
android:layout_marginBottom="@dimen/dp_56"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvVulnerableTip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:textSize="@dimen/sp_26"
|
||||
android:textColor="@color/summary_service_content"
|
||||
android:text="@string/summary_vulnerable_tip"
|
||||
android:layout_marginBottom="@dimen/dp_56"
|
||||
android:layout_marginEnd="@dimen/dp_58"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvIntersectionServicesNum"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvIntersectionServices"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvIntersectionServices"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvIntersectionServicesUnit"
|
||||
android:textSize="@dimen/sp_94"
|
||||
android:textColor="@color/summary_service_num"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvIntersectionServicesUnit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvIntersectionServicesNum"
|
||||
app:layout_constraintLeft_toRightOf="@id/tvIntersectionServicesNum"
|
||||
app:layout_constraintRight_toRightOf="@id/tvIntersectionServices"
|
||||
android:textSize="@dimen/sp_31"
|
||||
android:textColor="@color/summary_service_num"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
android:text="@string/summary_service_unit"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvLightServicesNum"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvLightServices"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvLightServices"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvLightServicesUnit"
|
||||
android:textSize="@dimen/sp_94"
|
||||
android:textColor="@color/summary_service_num"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvLightServicesUnit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintRight_toRightOf="@id/tvLightServices"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvLightServicesNum"
|
||||
app:layout_constraintLeft_toRightOf="@id/tvLightServicesNum"
|
||||
android:textSize="@dimen/sp_31"
|
||||
android:textColor="@color/summary_service_num"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
android:text="@string/summary_service_unit"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvInfoTipNum"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvInfoTip"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvInfoTip"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvInfoTipUnit"
|
||||
android:textSize="@dimen/sp_94"
|
||||
android:textColor="@color/summary_service_num"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvInfoTipUnit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toRightOf="@id/tvInfoTipNum"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvInfoTipNum"
|
||||
app:layout_constraintRight_toRightOf="@id/tvInfoTip"
|
||||
android:textSize="@dimen/sp_31"
|
||||
android:textColor="@color/summary_service_num"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
android:text="@string/summary_service_unit"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvVehicleTipNum"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvVehicleTip"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvVehicleTip"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvVehicleTipUnit"
|
||||
android:textSize="@dimen/sp_94"
|
||||
android:textColor="@color/summary_service_num"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvVehicleTipUnit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvVehicleTipNum"
|
||||
app:layout_constraintRight_toRightOf="@id/tvVehicleTip"
|
||||
app:layout_constraintLeft_toRightOf="@id/tvVehicleTipNum"
|
||||
android:textSize="@dimen/sp_31"
|
||||
android:textColor="@color/summary_service_num"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
android:text="@string/summary_service_unit"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvVulnerableTipNum"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvVulnerableTip"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvVulnerableTip"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvVulnerableTipUnit"
|
||||
android:textSize="@dimen/sp_94"
|
||||
android:textColor="@color/summary_service_num"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvVulnerableTipUnit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvVulnerableTipNum"
|
||||
app:layout_constraintLeft_toRightOf="@id/tvVulnerableTipNum"
|
||||
app:layout_constraintRight_toRightOf="@id/tvVulnerableTip"
|
||||
android:textSize="@dimen/sp_31"
|
||||
android:textColor="@color/summary_service_num"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
android:text="@string/summary_service_unit"
|
||||
/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/viewDangerLayout"
|
||||
android:layout_width="@dimen/dp_611"
|
||||
android:layout_height="@dimen/dp_366"
|
||||
app:layout_constraintTop_toBottomOf="@id/clService"
|
||||
app:layout_constraintLeft_toLeftOf="@id/clService"
|
||||
android:layout_marginTop="@dimen/dp_38"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toLeftOf="@id/viewDangerLayout"
|
||||
app:layout_constraintRight_toRightOf="@id/viewDangerLayout"
|
||||
app:layout_constraintTop_toTopOf="@id/viewDangerLayout"
|
||||
android:textSize="@dimen/sp_39"
|
||||
android:textColor="@color/summary_danger_title"
|
||||
android:text="@string/summary_danger_title"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvDangerNum"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="@id/viewDangerLayout"
|
||||
app:layout_constraintLeft_toLeftOf="@id/viewDangerLayout"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvDangerUnit"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
android:textColor="@color/summary_danger_num"
|
||||
android:textSize="@dimen/sp_195"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvDangerUnit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvDangerNum"
|
||||
app:layout_constraintRight_toRightOf="@id/viewDangerLayout"
|
||||
app:layout_constraintLeft_toRightOf="@id/tvDangerNum"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
android:textColor="@color/summary_danger_num"
|
||||
android:textSize="@dimen/sp_52"
|
||||
android:text="@string/summary_service_unit"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:id="@+id/viewEfficiencyLayout"
|
||||
android:layout_width="@dimen/dp_611"
|
||||
android:layout_height="@dimen/dp_366"
|
||||
app:layout_constraintTop_toBottomOf="@id/clService"
|
||||
app:layout_constraintRight_toRightOf="@id/clService"
|
||||
android:layout_marginTop="@dimen/dp_38"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toLeftOf="@id/viewEfficiencyLayout"
|
||||
app:layout_constraintRight_toRightOf="@id/viewEfficiencyLayout"
|
||||
app:layout_constraintTop_toTopOf="@id/viewEfficiencyLayout"
|
||||
android:text="@string/summary_efficiency_title"
|
||||
android:textSize="@dimen/sp_39"
|
||||
android:textColor="@color/summary_danger_title"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvEfficiencyNum"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="@id/viewEfficiencyLayout"
|
||||
app:layout_constraintLeft_toLeftOf="@id/viewEfficiencyLayout"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvEfficiencyUnit"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
android:textColor="@color/summary_danger_num"
|
||||
android:textSize="@dimen/sp_195"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvEfficiencyUnit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvEfficiencyNum"
|
||||
app:layout_constraintRight_toRightOf="@id/viewEfficiencyLayout"
|
||||
app:layout_constraintLeft_toRightOf="@id/tvEfficiencyNum"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
android:textSize="@dimen/sp_52"
|
||||
android:textColor="@color/summary_danger_num"
|
||||
android:text="@string/summary_efficiency_unit"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/viewDangerLayout"
|
||||
app:layout_constraintLeft_toLeftOf="@id/viewDangerLayout"
|
||||
android:text="@string/summary_danger_tip"
|
||||
android:textSize="@dimen/sp_24"
|
||||
android:textColor="@color/summary_tip"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@id/viewEfficiencyLayout"
|
||||
app:layout_constraintRight_toRightOf="@id/viewEfficiencyLayout"
|
||||
android:text="@string/summary_powered"
|
||||
android:textSize="@dimen/sp_24"
|
||||
android:textColor="@color/summary_tip"
|
||||
/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -82,4 +82,10 @@
|
||||
<color name="voice_user_end">#FF1E32D9</color>
|
||||
<color name="voice_resp">#243959</color>
|
||||
|
||||
<color name="summary_service_content">#49546A</color>
|
||||
<color name="summary_service_num">#464646</color>
|
||||
<color name="summary_danger_title">#24313E</color>
|
||||
<color name="summary_danger_num">#106FF0</color>
|
||||
<color name="summary_tip">#42464F</color>
|
||||
|
||||
</resources>
|
||||
@@ -106,4 +106,19 @@
|
||||
<string name="fusion_traffic_light_scale">融合红绿灯刻度</string>
|
||||
<string name="fusion_traffic_light_pointer">融合红绿灯指针</string>
|
||||
|
||||
<!--行程总结-->
|
||||
<string name="summary_close">行程总结关闭按钮</string>
|
||||
<string name="summary_zhi">行程总结小智形象图标</string>
|
||||
<string name="summary_intersection_services">全息路口服务</string>
|
||||
<string name="summary_light_services">路口灯态服务</string>
|
||||
<string name="summary_info_tip">道路信息提醒</string>
|
||||
<string name="summary_vehicle_tip">车辆行为提醒</string>
|
||||
<string name="summary_vulnerable_tip">弱势参与者提醒</string>
|
||||
<string name="summary_service_unit">次</string>
|
||||
<string name="summary_efficiency_unit">%</string>
|
||||
<string name="summary_danger_title">消除安全风险隐患</string>
|
||||
<string name="summary_efficiency_title">通行效率提升</string>
|
||||
<string name="summary_danger_tip">‘哪怕百万分之一的几率,交通事故的代价每个家庭都无法承受’</string>
|
||||
<string name="summary_powered">Powered by 蘑菇交通大模型™</string>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user