[dev_robobus-d_230322_3.0.0]消息盒子V2X布局调整
This commit is contained in:
@@ -91,7 +91,6 @@
|
||||
android:layout_width="650dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toTopOf="@id/viewPassengerMsgBoxButton"
|
||||
app:layout_constraintLeft_toLeftOf="@id/viewPassengerMsgBoxButton"
|
||||
app:layout_constraintRight_toRightOf="@id/viewPassengerMsgBoxButton" />
|
||||
|
||||
@@ -19,6 +19,9 @@ import com.mogo.eagle.core.function.msgbox.MsgBoxConfig
|
||||
import com.mogo.eagle.core.utilcode.util.UiThreadHandler
|
||||
import kotlinx.android.synthetic.main.layout_m_box_bubble.view.*
|
||||
|
||||
/**
|
||||
* M2气泡态消息盒子
|
||||
*/
|
||||
class MBoxBubbleView @JvmOverloads constructor(
|
||||
context: Context,
|
||||
attrs: AttributeSet? = null,
|
||||
|
||||
@@ -80,6 +80,7 @@ class BusPassengerMsgBoxBubbleAdapter(private val activity: Activity): RecyclerV
|
||||
holder.tvBusPV2XContent.text = v2XMsg.content
|
||||
holder.ivBusPV2XImage.setImageDrawable(activity.resources.getDrawable(
|
||||
EventTypeEnumNew.getUpdateIconRes(v2XMsg.type)))
|
||||
holder.tvBusPV2XTitle.text = EventTypeEnumNew.getEventTitle(v2XMsg.type)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -125,6 +126,7 @@ class BusPassengerMsgBoxBubbleAdapter(private val activity: Activity): RecyclerV
|
||||
var ivBusPV2XImage: ImageView = itemView.findViewById(R.id.ivBusPV2XImage)
|
||||
var tvBusPV2XTime: TextView = itemView.findViewById(R.id.tvBusPV2XTime)
|
||||
var tvBusPV2XContent: TextView = itemView.findViewById(R.id.tvBusPV2XContent)
|
||||
var tvBusPV2XTitle: TextView = itemView.findViewById(R.id.tvBusPV2XTitle)
|
||||
}
|
||||
|
||||
//运营消息
|
||||
|
||||
@@ -181,6 +181,7 @@ class DriverMsgBoxBubbleAdapter(private val activity: Activity) : RecyclerView.A
|
||||
holder.clV2XLayout.setOnClickListener {
|
||||
CallerMsgBoxEventListenerManager.invokeBubbleV2XListener(msgBoxBean)
|
||||
}
|
||||
holder.tvV2XTitle.text = EventTypeEnumNew.getEventTitle(v2XMsg.type)
|
||||
}
|
||||
}
|
||||
is BubbleSummaryHolder -> {
|
||||
@@ -275,6 +276,7 @@ class DriverMsgBoxBubbleAdapter(private val activity: Activity) : RecyclerView.A
|
||||
var tvV2XTime: TextView = itemView.findViewById(R.id.tvV2XTime)
|
||||
var tvV2XContent: TextView = itemView.findViewById(R.id.tvV2XContent)
|
||||
var clV2XLayout: RoundCanClickConstraintLayout = itemView.findViewById(R.id.clV2XLayout)
|
||||
var tvV2XTitle: TextView = itemView.findViewById(R.id.tvV2XTitle)
|
||||
}
|
||||
|
||||
//汇总消息
|
||||
|
||||
@@ -369,6 +369,7 @@ class DriverMsgBoxListAdapter(private val activity: Activity) :
|
||||
holder.ivV2XImage.setImageDrawable(activity.resources.getDrawable(
|
||||
EventTypeEnumNew.getUpdateIconRes(v2XMsg.type))
|
||||
)
|
||||
holder.tvV2XTitle.text = EventTypeEnumNew.getEventTitle(v2XMsg.type)
|
||||
}
|
||||
}
|
||||
is MsgBoxSummary -> {
|
||||
@@ -472,6 +473,7 @@ class DriverMsgBoxListAdapter(private val activity: Activity) :
|
||||
var ivV2XImage: ImageView = itemView.findViewById(R.id.ivV2XImage)
|
||||
var tvV2XTime: TextView = itemView.findViewById(R.id.tvV2XTime)
|
||||
var tvV2XContent: TextView = itemView.findViewById(R.id.tvV2XContent)
|
||||
var tvV2XTitle: TextView = itemView.findViewById(R.id.tvV2XTitle)
|
||||
}
|
||||
|
||||
//汇总消息
|
||||
|
||||
@@ -82,6 +82,7 @@ class MBoxBubbleAdapter(private val activity: Activity): RecyclerView.Adapter<Re
|
||||
holder.tvMV2XContent.text = v2XMsg.content
|
||||
holder.ivMV2XImage.setImageDrawable(activity.resources.getDrawable(
|
||||
EventTypeEnumNew.getUpdateIconRes(v2XMsg.type)))
|
||||
holder.tvMV2XTitle.text = EventTypeEnumNew.getEventTitle(v2XMsg.type)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -128,6 +129,7 @@ class MBoxBubbleAdapter(private val activity: Activity): RecyclerView.Adapter<Re
|
||||
var ivMV2XImage: ImageView = itemView.findViewById(R.id.ivMV2XImage)
|
||||
var tvMV2XTime: TextView = itemView.findViewById(R.id.tvMV2XTime)
|
||||
var tvMV2XContent: TextView = itemView.findViewById(R.id.tvMV2XContent)
|
||||
var tvMV2XTitle: TextView = itemView.findViewById(R.id.tvMV2XTitle)
|
||||
}
|
||||
|
||||
//运营消息
|
||||
|
||||
@@ -110,6 +110,7 @@ class MMsgBoxBubbleAdapter(private val activity: Activity): RecyclerView.Adapter
|
||||
holder.clMVeXLayout.setOnClickListener {
|
||||
CallerMsgBoxEventListenerManager.invokeBubbleV2XListener(msgBoxBean)
|
||||
}
|
||||
holder.tvMV2XTitle.text = EventTypeEnumNew.getEventTitle(v2XMsg.type)
|
||||
}
|
||||
}
|
||||
is BubbleSummaryHolder -> {
|
||||
@@ -179,6 +180,7 @@ class MMsgBoxBubbleAdapter(private val activity: Activity): RecyclerView.Adapter
|
||||
var tvMV2XTime: TextView = itemView.findViewById(R.id.tvMV2XTime)
|
||||
var tvMV2XContent: TextView = itemView.findViewById(R.id.tvMV2XContent)
|
||||
var clMVeXLayout: RoundCanClickConstraintLayout = itemView.findViewById(R.id.clMVeXLayout)
|
||||
var tvMV2XTitle: TextView = itemView.findViewById(R.id.tvMV2XTitle)
|
||||
}
|
||||
|
||||
//汇总消息
|
||||
|
||||
@@ -100,6 +100,7 @@ class MMsgBoxListAdapter(private val activity: Activity): RecyclerView.Adapter<R
|
||||
holder.tvMV2XContent.text = v2XMsg.content
|
||||
holder.ivMV2XImage.setImageDrawable(activity.resources.getDrawable(
|
||||
EventTypeEnumNew.getUpdateIconRes(v2XMsg.type)))
|
||||
holder.tvMV2XTitle.text = EventTypeEnumNew.getEventTitle(v2XMsg.type)
|
||||
}
|
||||
}
|
||||
is ListSummaryHolder -> {
|
||||
@@ -155,6 +156,7 @@ class MMsgBoxListAdapter(private val activity: Activity): RecyclerView.Adapter<R
|
||||
var ivMV2XImage: ImageView = itemView.findViewById(R.id.ivMV2XImage)
|
||||
var tvMV2XTime: TextView = itemView.findViewById(R.id.tvMV2XTime)
|
||||
var tvMV2XContent: TextView = itemView.findViewById(R.id.tvMV2XContent)
|
||||
var tvMV2XTitle: TextView = itemView.findViewById(R.id.tvMV2XTitle)
|
||||
}
|
||||
|
||||
//汇总消息
|
||||
|
||||
@@ -107,6 +107,7 @@ class PassengerMsgBoxBubbleAdapter(private val activity: Activity): RecyclerView
|
||||
holder.clPassengerVeXLayout.setOnClickListener {
|
||||
CallerMsgBoxEventListenerManager.invokeBubbleV2XListener(msgBoxBean)
|
||||
}
|
||||
holder.tvPassengerV2XTitle.text = EventTypeEnumNew.getEventTitle(v2XMsg.type)
|
||||
}
|
||||
}
|
||||
is BubbleSummaryHolder -> {
|
||||
@@ -167,6 +168,7 @@ class PassengerMsgBoxBubbleAdapter(private val activity: Activity): RecyclerView
|
||||
var tvPassengerV2XTime: TextView = itemView.findViewById(R.id.tvPassengerV2XTime)
|
||||
var tvPassengerV2XContent: TextView = itemView.findViewById(R.id.tvPassengerV2XContent)
|
||||
var clPassengerVeXLayout: RoundCanClickConstraintLayout = itemView.findViewById(R.id.clPassengerVeXLayout)
|
||||
var tvPassengerV2XTitle: TextView = itemView.findViewById(R.id.tvPassengerV2XTitle)
|
||||
}
|
||||
|
||||
//汇总消息
|
||||
|
||||
@@ -97,6 +97,7 @@ class PassengerMsgBoxListAdapter(private val activity: Activity): RecyclerView.A
|
||||
holder.tvPassengerV2XContent.text = v2XMsg.content
|
||||
holder.ivPassengerV2XImage.setImageDrawable(activity.resources.getDrawable(
|
||||
EventTypeEnumNew.getUpdateIconRes(v2XMsg.type)))
|
||||
holder.tvPassengerV2XTitle.text = EventTypeEnumNew.getEventTitle(v2XMsg.type)
|
||||
}
|
||||
}
|
||||
is ListSummaryHolder -> {
|
||||
@@ -140,6 +141,7 @@ class PassengerMsgBoxListAdapter(private val activity: Activity): RecyclerView.A
|
||||
var ivPassengerV2XImage: ImageView = itemView.findViewById(R.id.ivPassengerV2XImage)
|
||||
var tvPassengerV2XTime: TextView = itemView.findViewById(R.id.tvPassengerV2XTime)
|
||||
var tvPassengerV2XContent: TextView = itemView.findViewById(R.id.tvPassengerV2XContent)
|
||||
var tvPassengerV2XTitle: TextView = itemView.findViewById(R.id.tvPassengerV2XTitle)
|
||||
}
|
||||
|
||||
//汇总消息
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
@@ -19,14 +19,26 @@
|
||||
android:layout_marginStart="@dimen/dp_26"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvBusPV2XTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_26"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvBusPV2XContent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivBusPV2XImage"
|
||||
android:textColor="#FF203555"
|
||||
android:textSize="@dimen/dp_36"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvBusPV2XTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#991A273F"
|
||||
android:textSize="@dimen/dp_36"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/tvBusPV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvBusPV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:layout_marginEnd="@dimen/dp_26"
|
||||
/>
|
||||
@@ -35,16 +47,14 @@
|
||||
android:id="@+id/tvBusPV2XContent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvBusPV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="@id/tvBusPV2XTime"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvBusPV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivBusPV2XImage"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvBusPV2XTime"
|
||||
android:layout_marginStart="@dimen/dp_26"
|
||||
android:layout_marginEnd="@dimen/dp_16"
|
||||
android:textColor="#FF203555"
|
||||
android:textSize="@dimen/dp_36"
|
||||
android:textColor="#CC203555"
|
||||
android:textSize="@dimen/dp_28"
|
||||
android:gravity="start"
|
||||
android:maxLines="1"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
/>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.mogo.eagle.core.widget.RoundConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/dp_291"
|
||||
android:layout_width="@dimen/dp_393"
|
||||
android:layout_height="@dimen/dp_80"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:background="#CCFFFFFF"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.mogo.eagle.core.widget.RoundConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/dp_291"
|
||||
android:layout_width="@dimen/dp_393"
|
||||
android:layout_height="@dimen/dp_80"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:background="#CCFFFFFF"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.mogo.eagle.core.widget.RoundCanClickConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/dp_291"
|
||||
android:layout_width="@dimen/dp_393"
|
||||
android:layout_height="@dimen/dp_80"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:background="#CCFFFFFF"
|
||||
@@ -19,13 +19,25 @@
|
||||
android:layout_marginStart="@dimen/dp_13"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvMV2XTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#FF203555"
|
||||
android:textSize="@dimen/dp_24"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvMV2XContent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivMV2XImage"
|
||||
android:layout_marginStart="@dimen/dp_10"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvMV2XTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/tvMV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvMV2XTitle"
|
||||
android:textColor="#991A273F"
|
||||
android:textSize="@dimen/dp_18"
|
||||
android:layout_marginEnd="@dimen/dp_13"
|
||||
@@ -35,17 +47,15 @@
|
||||
android:id="@+id/tvMV2XContent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvMV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivMV2XImage"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvMV2XTime"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvMV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="@id/tvMV2XTime"
|
||||
android:gravity="start"
|
||||
android:maxLines="1"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
android:textColor="#FF203555"
|
||||
android:textColor="#CC203555"
|
||||
android:textSize="@dimen/dp_18"
|
||||
android:layout_marginStart="@dimen/dp_18"
|
||||
android:layout_marginEnd="@dimen/dp_18"
|
||||
/>
|
||||
|
||||
</com.mogo.eagle.core.widget.RoundCanClickConstraintLayout>
|
||||
@@ -19,12 +19,25 @@
|
||||
android:layout_marginStart="@dimen/dp_13"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvMV2XTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#FF203555"
|
||||
android:textSize="@dimen/dp_25"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginStart="@dimen/dp_10"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvMV2XContent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivMV2XImage"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvMV2XTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/tvMV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvMV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:textColor="#99203555"
|
||||
android:textSize="18dp"
|
||||
@@ -35,18 +48,15 @@
|
||||
android:id="@+id/tvMV2XContent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivMV2XImage"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvMV2XTime"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvMV2XTitle"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvMV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="@id/tvMV2XTime"
|
||||
android:gravity="start"
|
||||
android:maxLines="1"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
android:textColor="#FF203555"
|
||||
android:textSize="25dp"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginStart="@dimen/dp_13"
|
||||
android:layout_marginEnd="@dimen/dp_13"
|
||||
android:textColor="#CC203555"
|
||||
android:textSize="@dimen/dp_20"
|
||||
/>
|
||||
|
||||
</com.mogo.eagle.core.widget.RoundCanClickConstraintLayout>
|
||||
@@ -14,12 +14,25 @@
|
||||
android:layout_marginStart="@dimen/dp_16"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvMV2XTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#FF203555"
|
||||
android:textSize="@dimen/dp_25"
|
||||
android:layout_marginStart="@dimen/dp_16"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvMV2XContent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivMV2XImage"
|
||||
android:textStyle="bold"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvMV2XTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/tvMV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvMV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:textColor="#FF4A5B76"
|
||||
android:textSize="@dimen/dp_18"
|
||||
@@ -30,18 +43,15 @@
|
||||
android:id="@+id/tvMV2XContent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvMV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivMV2XImage"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvMV2XTime"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvMV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="@id/tvMV2XTime"
|
||||
android:gravity="start"
|
||||
android:maxLines="1"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
android:textColor="#FF203555"
|
||||
android:textSize="@dimen/dp_25"
|
||||
android:layout_marginStart="@dimen/dp_16"
|
||||
android:layout_marginEnd="@dimen/dp_16"
|
||||
android:textColor="#CC203555"
|
||||
android:textSize="@dimen/dp_20"
|
||||
/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -3,8 +3,7 @@
|
||||
android:layout_width="804dp"
|
||||
android:layout_height="160dp"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:background="#53000000"
|
||||
app:roundLayoutRadius="24dp"
|
||||
android:background="@drawable/bg_msg_box_v2x"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginStart="30dp"
|
||||
android:layout_marginEnd="30dp"
|
||||
@@ -20,11 +19,24 @@
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
android:layout_margin="25dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvV2XTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvV2XContent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivV2XImage"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:textColor="#FFFFFFFF"
|
||||
android:textSize="@dimen/dp_32"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvV2XTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="@id/ivV2XImage"
|
||||
app:layout_constraintTop_toTopOf="@id/tvV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:layout_marginEnd="25dp"
|
||||
android:textColor="#80FFFFFF"
|
||||
@@ -35,14 +47,13 @@
|
||||
android:id="@+id/tvV2XContent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivV2XImage"
|
||||
app:layout_constraintRight_toRightOf="@id/tvV2XTime"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:layout_marginStart="25dp"
|
||||
android:textColor="#FFFFFFFF"
|
||||
android:textSize="32dp"
|
||||
android:maxLines="1"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="@id/tvV2XTime"
|
||||
android:textColor="#B3FFFFFF"
|
||||
android:textSize="@dimen/dp_28"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
/>
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.mogo.eagle.core.widget.RoundCanClickConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/clV2XLayout"
|
||||
android:layout_width="804dp"
|
||||
android:layout_width="@dimen/dp_804"
|
||||
android:layout_height="160dp"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:background="#53000000"
|
||||
app:roundLayoutRadius="24dp"
|
||||
android:background="@drawable/bg_msg_box_v2x"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="7dp"
|
||||
android:layout_marginBottom="7dp">
|
||||
android:layout_marginBottom="7dp"
|
||||
>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivV2XImage"
|
||||
@@ -19,11 +19,24 @@
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
android:layout_margin="25dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvV2XTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvV2XContent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivV2XImage"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:textColor="#FFFFFFFF"
|
||||
android:textSize="@dimen/dp_32"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvV2XTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="@id/ivV2XImage"
|
||||
app:layout_constraintTop_toTopOf="@id/tvV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:layout_marginEnd="25dp"
|
||||
android:textColor="#80FFFFFF"
|
||||
@@ -34,14 +47,13 @@
|
||||
android:id="@+id/tvV2XContent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivV2XImage"
|
||||
app:layout_constraintRight_toRightOf="@id/tvV2XTime"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
android:layout_marginStart="25dp"
|
||||
android:textColor="#FFFFFFFF"
|
||||
android:textSize="32dp"
|
||||
android:maxLines="1"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="@id/tvV2XTime"
|
||||
android:textColor="#B3FFFFFF"
|
||||
android:textSize="@dimen/dp_28"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
/>
|
||||
|
||||
|
||||
@@ -20,32 +20,42 @@
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvPassengerV2XTime"
|
||||
android:id="@+id/tvPassengerV2XTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvPassengerV2XContent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivPassengerV2XImage"
|
||||
android:layout_marginStart="@dimen/dp_20"
|
||||
android:textColor="#FFFFFFFF"
|
||||
android:textSize="@dimen/dp_36"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvPassengerV2XTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="@id/tvPassengerV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvPassengerV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:textColor="#FFFFFFFF"
|
||||
android:textSize="26dp"
|
||||
android:layout_marginEnd="20dp"
|
||||
android:textSize="@dimen/dp_26"
|
||||
android:layout_marginEnd="@dimen/dp_20"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvPassengerV2XContent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvPassengerV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivPassengerV2XImage"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvPassengerV2XTime"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvPassengerV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="@id/tvPassengerV2XTime"
|
||||
android:gravity="start"
|
||||
android:maxLines="1"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
android:textColor="#FFFFFFFF"
|
||||
android:textSize="36dp"
|
||||
android:layout_marginStart="25dp"
|
||||
android:layout_marginEnd="25dp"
|
||||
android:textSize="@dimen/dp_28"
|
||||
/>
|
||||
|
||||
</com.mogo.eagle.core.widget.RoundCanClickConstraintLayout>
|
||||
@@ -14,31 +14,41 @@
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvPassengerV2XTime"
|
||||
android:id="@+id/tvPassengerV2XTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/tvPassengerV2XContent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivPassengerV2XImage"
|
||||
android:textColor="#FFFFFFFF"
|
||||
android:textSize="@dimen/dp_36"
|
||||
android:layout_marginStart="@dimen/dp_20"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvPassengerV2XTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="@id/tvPassengerV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tvPassengerV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:textColor="#99FFFFFF"
|
||||
android:textSize="26dp"
|
||||
android:textSize="@dimen/dp_26"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvPassengerV2XContent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvPassengerV2XTitle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toRightOf="@id/ivPassengerV2XImage"
|
||||
app:layout_constraintRight_toLeftOf="@id/tvPassengerV2XTime"
|
||||
app:layout_constraintLeft_toLeftOf="@id/tvPassengerV2XTitle"
|
||||
app:layout_constraintRight_toRightOf="@id/tvPassengerV2XTime"
|
||||
android:gravity="start"
|
||||
android:maxLines="1"
|
||||
android:maxLines="2"
|
||||
android:ellipsize="end"
|
||||
android:textColor="#FFFFFFFF"
|
||||
android:textSize="36dp"
|
||||
android:layout_marginStart="25dp"
|
||||
android:layout_marginEnd="25dp"
|
||||
android:textSize="@dimen/dp_28"
|
||||
/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/rvMBoxBubbleList"
|
||||
android:layout_width="@dimen/dp_291"
|
||||
android:layout_width="@dimen/dp_393"
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
|
||||
|
||||
@@ -108,24 +108,24 @@ enum class EventTypeEnumNew(
|
||||
|
||||
//接管
|
||||
TAKE_OVER_EVENT(
|
||||
"20000", "注意周围、立即接管", "注意周围、立即接管", R.drawable.icon_warning_take_over,
|
||||
"20000", "接管", "注意周围、立即接管", R.drawable.icon_warning_take_over,
|
||||
"注意周围、立即接管", "自动驾驶退出请立即接管"
|
||||
),
|
||||
|
||||
// 前方静止or慢速车辆报警
|
||||
ALERT_FRONT_CAR("99999"),
|
||||
ALERT_FRONT_CAR("99999","前方预警"),
|
||||
|
||||
// 限行管理
|
||||
ALERT_TRAFFIC_CONTROL("99998"),
|
||||
|
||||
// 红绿灯事件、是建议以多少速度驶过
|
||||
ALERT_TRAFFIC_LIGHT_SUGGEST("99997"),
|
||||
ALERT_TRAFFIC_LIGHT_SUGGEST("99997","红绿灯"),
|
||||
|
||||
// 红绿灯事件、一种是绿灯不足3秒
|
||||
ALERT_TRAFFIC_LIGHT_WARNING("99996"),
|
||||
ALERT_TRAFFIC_LIGHT_WARNING("99996","红绿灯"),
|
||||
|
||||
// 故障车辆
|
||||
ALERT_CAR_TROUBLE_WARNING("20007"),
|
||||
ALERT_CAR_TROUBLE_WARNING("20007","故障车辆"),
|
||||
|
||||
// 疲劳驾驶
|
||||
ALERT_FATIGUE_DRIVING("99993"),
|
||||
@@ -219,28 +219,28 @@ enum class EventTypeEnumNew(
|
||||
//---------弱势交通参与者 obu and cloud start ------>
|
||||
TYPE_USECASE_ID_VRUCW_MOTOR_VEHICLES(
|
||||
1001.toString(),
|
||||
"弱势交通参与者碰撞预警",
|
||||
"碰撞预警",
|
||||
poiTypeSrcVr = R.drawable.icon_warning_v2x_motorcycle_collision,
|
||||
content = "前方摩托车",
|
||||
tts = "前方摩托车"
|
||||
),
|
||||
TYPE_USECASE_ID_VRUCW_NOT_MOTOR_VEHICLES(
|
||||
1002.toString(),
|
||||
"弱势交通参与者碰撞预警",
|
||||
"碰撞预警",
|
||||
poiTypeSrcVr = R.drawable.icon_warning_v2x_motobike,
|
||||
content = "前方非机动车",
|
||||
tts = "前方非机动车"
|
||||
),
|
||||
TYPE_USECASE_ID_VRUCW_PERSON(
|
||||
1003.toString(),
|
||||
"弱势交通参与者碰撞预警",
|
||||
"碰撞预警",
|
||||
poiTypeSrcVr = R.drawable.icon_warning_v2x_pedestrian_crossing,
|
||||
content = "前方行人",
|
||||
tts = "前方行人"
|
||||
),
|
||||
TYPE_ERROR_WEAKNESS(
|
||||
1006.toString(),
|
||||
"未知/错误/异常",
|
||||
"未知障碍物",
|
||||
poiTypeSrcVr = R.drawable.icon_warning_v2x_abnormal_vehicle,
|
||||
content = "前方未知障碍物闯入",
|
||||
tts = "前方未知障碍物闯入"
|
||||
@@ -397,7 +397,7 @@ enum class EventTypeEnumNew(
|
||||
),
|
||||
TYPE_NO_PASSING(
|
||||
51.toString(),
|
||||
"不通",
|
||||
"道路不通",
|
||||
poiTypeSrcVr = R.drawable.v2x_icon_fenglu_vr,
|
||||
content = "前方%s米不通",
|
||||
tts = "前方%s米不通"
|
||||
@@ -470,7 +470,7 @@ enum class EventTypeEnumNew(
|
||||
|
||||
TYPE_SOCKET_ROAD_JINGZHI(
|
||||
"100251",
|
||||
"前方%s米静止障碍物占道",
|
||||
"静止障碍物占道",
|
||||
poiTypeSrcVr = R.drawable.v2x_icon_jingzhi_zhangai,
|
||||
content = "前方%s米静止障碍物占道",
|
||||
tts = "前方%s米静止障碍物占道"
|
||||
@@ -478,7 +478,7 @@ enum class EventTypeEnumNew(
|
||||
|
||||
TYPE_SOCKET_ROAD_SHIGU(
|
||||
"100321",
|
||||
"前方%s米道路事故",
|
||||
"道路事故",
|
||||
poiTypeSrcVr = R.drawable.v2x_icon_shigu_sanjiaopai,
|
||||
content = "前方%s米道路事故",
|
||||
tts = "前方%s米道路事故"
|
||||
@@ -486,7 +486,7 @@ enum class EventTypeEnumNew(
|
||||
|
||||
TYPE_SOCKET_ROAD_SHIGONG(
|
||||
"100061",
|
||||
"前方%s米道路施工",
|
||||
"道路施工",
|
||||
poiTypeSrcVr = R.drawable.v2x_icon_shigong_zhandao,
|
||||
content = "前方%s米道路施工",
|
||||
tts = "前方%s米道路施工"
|
||||
@@ -500,10 +500,10 @@ enum class EventTypeEnumNew(
|
||||
tts = ""
|
||||
),
|
||||
|
||||
TYPE_VIP_IDENTIFICATION_PASS("20022", "", "", R.drawable.icon_warning_v2x_vip_turn_light, "VIP车辆优先通行,已为您变为绿灯", "VIP车辆优先通行,已为您变为绿灯"),
|
||||
TYPE_VIP_IDENTIFICATION_EXTEND("20023", "", "", R.drawable.icon_warning_v2x_vip_turn_light, "VIP车辆优先通行,已为您延长绿灯", "VIP车辆优先通行,已为您延长绿灯"),
|
||||
TYPE_VIP_ERROR_IDENTIFICATION("20024", "", "", R.drawable.icon_warning_v2x_vip_turn_light, "请求失败,", "请求失败,稍后重试"),
|
||||
TYPE_OPTIMAL_ROUTE_RECOMMEND("2000", "", "", R.drawable.icon_warning_v2x_optimal_route, "为您推荐最优路线", "已为您选择最优路线");
|
||||
TYPE_VIP_IDENTIFICATION_PASS("20022", "VIP通行", "", R.drawable.icon_warning_v2x_vip_turn_light, "VIP车辆优先通行,已为您变为绿灯", "VIP车辆优先通行,已为您变为绿灯"),
|
||||
TYPE_VIP_IDENTIFICATION_EXTEND("20023", "VIP通行", "", R.drawable.icon_warning_v2x_vip_turn_light, "VIP车辆优先通行,已为您延长绿灯", "VIP车辆优先通行,已为您延长绿灯"),
|
||||
TYPE_VIP_ERROR_IDENTIFICATION("20024", "VIP通行", "", R.drawable.icon_warning_v2x_vip_turn_light, "请求失败,", "请求失败,稍后重试"),
|
||||
TYPE_OPTIMAL_ROUTE_RECOMMEND("2000", "路线推荐", "", R.drawable.icon_warning_v2x_optimal_route, "为您推荐最优路线", "已为您选择最优路线");
|
||||
|
||||
|
||||
companion object {
|
||||
@@ -706,6 +706,307 @@ enum class EventTypeEnumNew(
|
||||
}
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun getEventTitle(poiType: String?): String{
|
||||
return when(poiType){
|
||||
//交通检查
|
||||
TRAFFIC_CHECK.poiType ->{
|
||||
TRAFFIC_CHECK.poiTypeStr
|
||||
}
|
||||
//封路
|
||||
ROAD_CLOSED.poiType ->{
|
||||
ROAD_CLOSED.poiTypeStr
|
||||
}
|
||||
//施工
|
||||
FOURS_ROAD_WORK.poiType ->{
|
||||
FOURS_ROAD_WORK.poiTypeStr
|
||||
}
|
||||
//道路施工
|
||||
TYPE_SOCKET_ROAD_SHIGONG.poiType ->{
|
||||
TYPE_SOCKET_ROAD_SHIGONG.poiTypeStr
|
||||
}
|
||||
//静止障碍物占道
|
||||
TYPE_SOCKET_ROAD_JINGZHI.poiType ->{
|
||||
TYPE_SOCKET_ROAD_JINGZHI.poiTypeStr
|
||||
}
|
||||
//道路事故
|
||||
TYPE_SOCKET_ROAD_SHIGU.poiType ->{
|
||||
TYPE_SOCKET_ROAD_SHIGU.poiTypeStr
|
||||
}
|
||||
//交通拥堵
|
||||
TYPE_SOCKET_ROAD_CONGESTION.poiType ->{
|
||||
TYPE_SOCKET_ROAD_CONGESTION.poiTypeStr
|
||||
}
|
||||
//道路拥堵
|
||||
FOURS_BLOCK_UP.poiType ->{
|
||||
FOURS_BLOCK_UP.poiTypeStr
|
||||
}
|
||||
//道路积水
|
||||
FOURS_PONDING.poiType ->{
|
||||
FOURS_PONDING.poiTypeStr
|
||||
}
|
||||
//浓雾
|
||||
FOURS_FOG.poiType ->{
|
||||
FOURS_FOG.poiTypeStr
|
||||
}
|
||||
//结冰
|
||||
FOURS_ICE.poiType ->{
|
||||
FOURS_ICE.poiTypeStr
|
||||
}
|
||||
//事故
|
||||
FOURS_ACCIDENT.poiType ->{
|
||||
FOURS_ACCIDENT.poiTypeStr
|
||||
}
|
||||
//重大事故
|
||||
FOURS_ACCIDENT_01.poiType ->{
|
||||
FOURS_ACCIDENT_01.poiTypeStr
|
||||
}
|
||||
//特大事故
|
||||
FOURS_ACCIDENT_02.poiType ->{
|
||||
FOURS_ACCIDENT_02.poiTypeStr
|
||||
}
|
||||
//较大事故
|
||||
FOURS_ACCIDENT_03.poiType ->{
|
||||
FOURS_ACCIDENT_03.poiTypeStr
|
||||
}
|
||||
//一般事故
|
||||
FOURS_ACCIDENT_04.poiType ->{
|
||||
FOURS_ACCIDENT_04.poiTypeStr
|
||||
}
|
||||
//轻微事故
|
||||
FOURS_ACCIDENT_05.poiType ->{
|
||||
FOURS_ACCIDENT_05.poiTypeStr
|
||||
}
|
||||
//事故
|
||||
FOURS_LIVING.poiType ->{
|
||||
FOURS_LIVING.poiTypeStr
|
||||
}
|
||||
//红绿灯数据
|
||||
ALERT_TRAFFIC_LIGHT_SUGGEST.poiType ->{
|
||||
ALERT_TRAFFIC_LIGHT_SUGGEST.poiTypeStr
|
||||
}
|
||||
//红绿灯数据
|
||||
ALERT_TRAFFIC_LIGHT_WARNING.poiType ->{
|
||||
ALERT_TRAFFIC_LIGHT_WARNING.poiTypeStr
|
||||
}
|
||||
//前方静止or慢速车辆报警
|
||||
ALERT_FRONT_CAR.poiType ->{
|
||||
ALERT_FRONT_CAR.poiTypeStr
|
||||
}
|
||||
// 故障车辆
|
||||
ALERT_CAR_TROUBLE_WARNING.poiType ->{
|
||||
ALERT_CAR_TROUBLE_WARNING.poiTypeStr
|
||||
}
|
||||
//VIP车辆优先通行,已为您变为绿灯
|
||||
TYPE_VIP_IDENTIFICATION_PASS.poiType ->{
|
||||
TYPE_VIP_IDENTIFICATION_PASS.poiTypeStr
|
||||
}
|
||||
//VIP车辆优先通行,已为您延长绿灯
|
||||
TYPE_VIP_IDENTIFICATION_EXTEND.poiType ->{
|
||||
TYPE_VIP_IDENTIFICATION_EXTEND.poiTypeStr
|
||||
}
|
||||
//VIP变灯请求失败
|
||||
TYPE_VIP_ERROR_IDENTIFICATION.poiType ->{
|
||||
TYPE_VIP_ERROR_IDENTIFICATION.poiTypeStr
|
||||
}
|
||||
//最优路线
|
||||
TYPE_OPTIMAL_ROUTE_RECOMMEND.poiType ->{
|
||||
TYPE_OPTIMAL_ROUTE_RECOMMEND.poiTypeStr
|
||||
}
|
||||
//绿波通行
|
||||
TYPE_USECASE_ID_IVP_GREEN.poiType ->{
|
||||
TYPE_USECASE_ID_IVP_GREEN.poiTypeStr
|
||||
}
|
||||
//闯红灯预警
|
||||
TYPE_USECASE_ID_IVP_RED.poiType ->{
|
||||
TYPE_USECASE_ID_IVP_RED.poiTypeStr
|
||||
}
|
||||
//鬼探头类型
|
||||
GHOST_PROBE.poiType ->{
|
||||
GHOST_PROBE.poiTypeStr
|
||||
}
|
||||
//接管
|
||||
TAKE_OVER_EVENT.poiType ->{
|
||||
TAKE_OVER_EVENT.poiTypeStr
|
||||
}
|
||||
//机动车
|
||||
TYPE_USECASE_ID_VRUCW_MOTOR_VEHICLES.poiType ->{
|
||||
TYPE_USECASE_ID_VRUCW_MOTOR_VEHICLES.poiTypeStr
|
||||
}
|
||||
//碰撞预警
|
||||
TYPE_USECASE_ID_VRUCW_NOT_MOTOR_VEHICLES.poiType ->{
|
||||
TYPE_USECASE_ID_VRUCW_NOT_MOTOR_VEHICLES.poiTypeStr
|
||||
}
|
||||
//碰撞预警
|
||||
TYPE_USECASE_ID_VRUCW_PERSON.poiType ->{
|
||||
TYPE_USECASE_ID_VRUCW_PERSON.poiTypeStr
|
||||
}
|
||||
//未知障碍物
|
||||
TYPE_ERROR_WEAKNESS.poiType ->{
|
||||
TYPE_ERROR_WEAKNESS.poiTypeStr
|
||||
}
|
||||
//学校
|
||||
TYPE_USECASE_ID_ROAD_PEDESTRIAN_SCHOOL.poiType ->{
|
||||
TYPE_USECASE_ID_ROAD_PEDESTRIAN_SCHOOL.poiTypeStr
|
||||
}
|
||||
//禁止停车
|
||||
TYPE_USECASE_ID_ROAD_NO_PARKING.poiType ->{
|
||||
TYPE_USECASE_ID_ROAD_NO_PARKING.poiTypeStr
|
||||
}
|
||||
//超速行驶
|
||||
TYPE_USECASE_ID_SLW.poiType ->{
|
||||
TYPE_USECASE_ID_SLW.poiTypeStr
|
||||
}
|
||||
//拥堵
|
||||
TYPE_USECASE_ID_TJW.poiType ->{
|
||||
TYPE_USECASE_ID_TJW.poiTypeStr
|
||||
}
|
||||
//车辆故障
|
||||
TYPE_USECASE_ID_BREAKDOWN_WARNING.poiType ->{
|
||||
TYPE_USECASE_ID_BREAKDOWN_WARNING.poiTypeStr
|
||||
}
|
||||
//道路积水
|
||||
FOURS_PONDING.poiType ->{
|
||||
FOURS_PONDING.poiTypeStr
|
||||
}
|
||||
//异常停车
|
||||
TYPE_USECASE_ID_ROAD_PARKING.poiType ->{
|
||||
TYPE_USECASE_ID_ROAD_PARKING.poiTypeStr
|
||||
}
|
||||
//逆行车辆
|
||||
TYPE_USECASE_ID_ROAD_VEHICLE_RETROGRADE.poiType ->{
|
||||
TYPE_USECASE_ID_ROAD_VEHICLE_RETROGRADE.poiTypeStr
|
||||
}
|
||||
//急转弯
|
||||
TYPE_ID_SHAPR_TURNS.poiType ->{
|
||||
TYPE_ID_SHAPR_TURNS.poiTypeStr
|
||||
}
|
||||
//桥梁
|
||||
TYPE_ID_BRIDGE.poiType ->{
|
||||
TYPE_ID_BRIDGE.poiTypeStr
|
||||
}
|
||||
//行人
|
||||
TYPE_ID_PEDESTRIAN.poiType ->{
|
||||
TYPE_ID_PEDESTRIAN.poiTypeStr
|
||||
}
|
||||
//路滑
|
||||
TYPE_ID_SLIPPERY_ROAD.poiType ->{
|
||||
TYPE_ID_SLIPPERY_ROAD.poiTypeStr
|
||||
}
|
||||
//隧道
|
||||
TYPE_ID_TUNNEL.poiType ->{
|
||||
TYPE_ID_TUNNEL.poiTypeStr
|
||||
}
|
||||
//渡轮
|
||||
TYPE_ID_FERRY.poiType ->{
|
||||
TYPE_ID_FERRY.poiTypeStr
|
||||
}
|
||||
//路面不平
|
||||
TYPE_ID_UNEVEN_ROAD.poiType ->{
|
||||
TYPE_ID_UNEVEN_ROAD.poiTypeStr
|
||||
}
|
||||
//非机动车
|
||||
TYPE_ID_NON_MOTOR_VEHICLE.poiType ->{
|
||||
TYPE_ID_NON_MOTOR_VEHICLE.poiTypeStr
|
||||
}
|
||||
//障碍
|
||||
TYPE_ID_OBSTACLE.poiType ->{
|
||||
TYPE_ID_OBSTACLE.poiTypeStr
|
||||
}
|
||||
//施工
|
||||
TYPE_FOURS_ROAD_WORK.poiType ->{
|
||||
TYPE_FOURS_ROAD_WORK.poiTypeStr
|
||||
}
|
||||
//车队
|
||||
TYPE_VEHICLE_QUEUE.poiType ->{
|
||||
TYPE_VEHICLE_QUEUE.poiTypeStr
|
||||
}
|
||||
//道路不通
|
||||
TYPE_NO_PASSING.poiType ->{
|
||||
TYPE_NO_PASSING.poiTypeStr
|
||||
}
|
||||
//禁止掉头
|
||||
TYPE_NO_TURNING_AROUND.poiType ->{
|
||||
TYPE_NO_TURNING_AROUND.poiTypeStr
|
||||
}
|
||||
//禁止停车
|
||||
TYPE_USECASE_ID_ROAD_NO_PARKING.poiType ->{
|
||||
TYPE_USECASE_ID_ROAD_NO_PARKING.poiTypeStr
|
||||
}
|
||||
//禁止鸣笛
|
||||
TYPE_USECASE_ID_ROAD_NO_TOOTING.poiType ->{
|
||||
TYPE_USECASE_ID_ROAD_NO_TOOTING.poiTypeStr
|
||||
}
|
||||
//超速
|
||||
TYPE_USECASE_ID_ROAD_SPEED_LIMIT.poiType ->{
|
||||
TYPE_USECASE_ID_ROAD_SPEED_LIMIT.poiTypeStr
|
||||
}
|
||||
//公交提醒
|
||||
TYPE_USECASE_ID_BUS_WARNING.poiType ->{
|
||||
TYPE_USECASE_ID_BUS_WARNING.poiTypeStr
|
||||
}
|
||||
//右侧变窄/车道数减少
|
||||
TYPE_USECASE_ID_NARROW_RIGHT.poiType ->{
|
||||
TYPE_USECASE_ID_NARROW_RIGHT.poiTypeStr
|
||||
}
|
||||
//加油站
|
||||
TYPE_USECASE_ID_GAS_STATION.poiType ->{
|
||||
TYPE_USECASE_ID_GAS_STATION.poiTypeStr
|
||||
}
|
||||
//学校
|
||||
TYPE_USECASE_ID_ROAD_PEDESTRIAN_SCHOOL.poiType ->{
|
||||
TYPE_USECASE_ID_ROAD_PEDESTRIAN_SCHOOL.poiTypeStr
|
||||
}
|
||||
//交通事故
|
||||
TYPE_USECASE_ID_ACCIDENT.poiType ->{
|
||||
TYPE_USECASE_ID_ACCIDENT.poiTypeStr
|
||||
}
|
||||
//紧急制动预警
|
||||
TYPE_USECASE_ID_EBW.poiType ->{
|
||||
TYPE_USECASE_ID_EBW.poiTypeStr
|
||||
}
|
||||
//前向碰撞预警
|
||||
TYPE_USECASE_ID_FCW.poiType ->{
|
||||
TYPE_USECASE_ID_FCW.poiTypeStr
|
||||
}
|
||||
//交叉路口碰撞预警
|
||||
TYPE_USECASE_ID_ICW.poiType ->{
|
||||
TYPE_USECASE_ID_ICW.poiTypeStr
|
||||
}
|
||||
//车辆失控预警
|
||||
TYPE_USECASE_ID_CLW.poiType ->{
|
||||
TYPE_USECASE_ID_CLW.poiTypeStr
|
||||
}
|
||||
//逆向超车预警
|
||||
TYPE_USECASE_ID_DNPW.poiType ->{
|
||||
TYPE_USECASE_ID_DNPW.poiTypeStr
|
||||
}
|
||||
//异常车辆提醒
|
||||
TYPE_USECASE_ID_AVW.poiType ->{
|
||||
TYPE_USECASE_ID_AVW.poiTypeStr
|
||||
}
|
||||
//盲区预警
|
||||
TYPE_USECASE_ID_BSW.poiType ->{
|
||||
TYPE_USECASE_ID_BSW.poiTypeStr
|
||||
}
|
||||
//变道预警
|
||||
TYPE_USECASE_ID_LCW.poiType ->{
|
||||
TYPE_USECASE_ID_LCW.poiTypeStr
|
||||
}
|
||||
//紧急车辆提醒
|
||||
TYPE_USECASE_ID_EVW.poiType ->{
|
||||
TYPE_USECASE_ID_EVW.poiTypeStr
|
||||
}
|
||||
//左转辅助
|
||||
TYPE_USECASE_ID_LTA.poiType ->{
|
||||
TYPE_USECASE_ID_LTA.poiTypeStr
|
||||
}
|
||||
else ->{
|
||||
"事件通知"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun getUpdateIconRes(poiType: String?): Int {
|
||||
return when (poiType) {
|
||||
|
||||
Reference in New Issue
Block a user