Merge branch 'dev_robobus-d_230322_3.0.0' of gitlab.zhidaoauto.com:SCA/L4HA/AndroidApp/MoGoEagleEye into dev_robobus-d_230322_3.0.0
@@ -1,7 +1,13 @@
|
||||
# 网约车(Online Car Hailing)
|
||||
1. mogo-och-bus:Bus司机端(Bus)
|
||||
2. mogo-och-bus-passenger:Bus乘客端(BusPassenger)
|
||||
3. mogo-och-taxi:Taxi司机端(Taxi)
|
||||
4. mogo-och-taxi-passenger:Taxi乘客端(TaxiPassenger)
|
||||
5. mogo-och-noop:空实现,用于独立鹰眼打包
|
||||
6. mogo-och-sweeper: 清扫车(Sweeper)
|
||||
1. mogo-och-bus: 公交车模式司机端
|
||||
2. mogo-och-bus-passenger: 公交车模式乘客端
|
||||
3. mogo-och-charter 包车模式司机端
|
||||
4. mogo-och-charter-passenger 包车模式乘客端
|
||||
5. mogo-och-common-module 公用代码
|
||||
6. mogo-och-data 数据
|
||||
7. mogo-och-noop: 空实现,用于独立鹰眼打包
|
||||
8. mogo-och-shuttle 接驳模式司机端
|
||||
9. mogo-och-shuttle-passenger 接驳模式乘客屏
|
||||
10. mogo-och-sweeper: 清扫车
|
||||
11. mogo-och-taxi: 出租车模式司机端
|
||||
12. mogo-och-taxi-passenger: 出租车乘客端
|
||||
@@ -161,4 +161,13 @@
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toLeftOf="@+id/bus_p_route_panel" />
|
||||
|
||||
<com.mogo.eagle.core.function.hmi.ui.msgbox.BusPassengerMsgBoxBubbleView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintRight_toLeftOf="@+id/bus_p_route_panel"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:layout_marginRight="@dimen/dp_40"
|
||||
android:layout_marginTop="@dimen/dp_100"
|
||||
/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -177,7 +177,7 @@ class PM2DrivingInfoFragment :
|
||||
context?.let { auto_tv.setTextColor(ContextCompat.getColor(it,R.color.m2_p_white_color)) }
|
||||
context?.let { auto_tv.background = ContextCompat.getDrawable(it,R.drawable.auto_button_bg) }
|
||||
}else{
|
||||
context?.let { auto_tv.setTextColor(ContextCompat.getColor(it,R.color.m2_button_auto_tv_color)) }
|
||||
context?.let { auto_tv.setTextColor(ContextCompat.getColor(it,R.color.shuttle_color_7094ad)) }
|
||||
context?.let { auto_tv.background = ContextCompat.getDrawable(it,R.drawable.bg_p_m2_auto) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ class AdvanceGSYVideoPlayer: StandardGSYVideoPlayer {
|
||||
|
||||
init {
|
||||
hideWidget()
|
||||
GSYVideoType.setShowType(GSYVideoType.SCREEN_MATCH_FULL)
|
||||
GSYVideoType.setShowType(GSYVideoType.SCREEN_TYPE_16_9)
|
||||
GSYVideoType.setRenderType(GSYVideoType.GLSURFACE)
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,11 @@ class AdvanceVideoView @JvmOverloads constructor(
|
||||
|
||||
private var videoRelativeLayout: RelativeLayout? = null
|
||||
private var cacheImage: ImageView? = null
|
||||
private var connerTopLeft: ImageView? = null
|
||||
private var connerTopRight: ImageView? = null
|
||||
private var connerBottomLeft: ImageView? = null
|
||||
private var connerBottomRight: ImageView? = null
|
||||
|
||||
private var videoViewPlayer: AdvanceGSYVideoPlayer? = null
|
||||
private var gsyVideoOptionBuilder: GSYVideoOptionBuilder? = null
|
||||
private var mOnCompletionListener: GSYSampleCallBack? = null
|
||||
@@ -57,24 +62,56 @@ class AdvanceVideoView @JvmOverloads constructor(
|
||||
|
||||
private fun initVideoView() {
|
||||
videoRelativeLayout = RelativeLayout(context)
|
||||
addView(videoRelativeLayout, LayoutParams(-1, -1))
|
||||
val outLayout = LayoutParams(-1, -1)
|
||||
addView(videoRelativeLayout,outLayout)
|
||||
|
||||
if (videoViewPlayer === null) {
|
||||
//视频播放控件
|
||||
videoViewPlayer = AdvanceGSYVideoPlayer(context)
|
||||
}
|
||||
|
||||
var layoutParams = LayoutParams(-1, -1)
|
||||
val layoutParams = LayoutParams(-1, -1)
|
||||
//设置videoview占满父view播放
|
||||
layoutParams.addRule(ALIGN_PARENT_LEFT)
|
||||
layoutParams.addRule(ALIGN_PARENT_RIGHT)
|
||||
layoutParams.addRule(ALIGN_PARENT_TOP)
|
||||
layoutParams.addRule(ALIGN_PARENT_BOTTOM)
|
||||
val dp2px = AutoSizeUtils.dp2px(context, 16f)
|
||||
videoRelativeLayout?.outlineProvider = TextureVideoViewOutlineProvider(dp2px.toFloat())
|
||||
videoRelativeLayout?.clipToOutline = true
|
||||
|
||||
videoRelativeLayout?.addView(videoViewPlayer, layoutParams)
|
||||
|
||||
val imageSize = AutoSizeUtils.dp2px(context, 25f)
|
||||
if(connerTopLeft==null){
|
||||
connerTopLeft = ImageView(context)
|
||||
connerTopLeft?.setImageResource(R.drawable.m2_video_top_left)
|
||||
}
|
||||
val layoutParentTopLeft = LayoutParams(imageSize, imageSize)
|
||||
layoutParentTopLeft.addRule(ALIGN_PARENT_TOP)
|
||||
layoutParentTopLeft.addRule(ALIGN_PARENT_LEFT)
|
||||
videoRelativeLayout?.addView(connerTopLeft, layoutParentTopLeft)
|
||||
if(connerTopRight==null){
|
||||
connerTopRight = ImageView(context)
|
||||
connerTopRight?.setImageResource(R.drawable.m2_video_top_right)
|
||||
}
|
||||
val layoutParentTopRight = LayoutParams(imageSize, imageSize)
|
||||
layoutParentTopRight.addRule(ALIGN_PARENT_TOP)
|
||||
layoutParentTopRight.addRule(ALIGN_PARENT_RIGHT)
|
||||
videoRelativeLayout?.addView(connerTopRight, layoutParentTopRight)
|
||||
if(connerBottomLeft==null){
|
||||
connerBottomLeft = ImageView(context)
|
||||
connerBottomLeft?.setImageResource(R.drawable.m2_video_bottom_left)
|
||||
}
|
||||
val layoutParentBottomLeft = LayoutParams(imageSize, imageSize)
|
||||
layoutParentBottomLeft.addRule(ALIGN_PARENT_BOTTOM)
|
||||
layoutParentBottomLeft.addRule(ALIGN_PARENT_LEFT)
|
||||
videoRelativeLayout?.addView(connerBottomLeft, layoutParentBottomLeft)
|
||||
if(connerBottomRight==null){
|
||||
connerBottomRight = ImageView(context)
|
||||
connerBottomRight?.setImageResource(R.drawable.m2_video_bottom_right)
|
||||
}
|
||||
val layoutParentBottomRight = LayoutParams(imageSize, imageSize)
|
||||
layoutParentBottomRight.addRule(ALIGN_PARENT_RIGHT)
|
||||
layoutParentBottomRight.addRule(ALIGN_PARENT_BOTTOM)
|
||||
videoRelativeLayout?.addView(connerBottomRight, layoutParentBottomRight)
|
||||
}
|
||||
|
||||
fun setVideoPath(path: String,cacheImageUrl: String) {
|
||||
|
||||
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 204 KiB |
|
After Width: | Height: | Size: 841 B |
|
After Width: | Height: | Size: 899 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 276 KiB After Width: | Height: | Size: 284 KiB |
|
After Width: | Height: | Size: 569 B |
|
After Width: | Height: | Size: 522 B |
|
After Width: | Height: | Size: 587 B |
|
After Width: | Height: | Size: 549 B |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 50 KiB |
@@ -19,17 +19,28 @@
|
||||
app:mapStylePath="@string/m2_over_map_style_path"
|
||||
app:resetDrawableMarginBottom="@dimen/dp_54"
|
||||
app:resetDrawableMarginRight="@dimen/dp_34"
|
||||
app:compassDrawable="@drawable/amap_custom_corner_m2"
|
||||
app:arrivedDrawable="@drawable/m2_amap_arrived_road"
|
||||
app:unArrivedDrawable="@drawable/m2_amap_arriving_road"
|
||||
app:mapTilt="0"
|
||||
app:leftPadding="200"
|
||||
app:startPointDrawable="@drawable/m2_map_start_icon" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
<ImageView
|
||||
android:id="@+id/cl_left_container_back"
|
||||
android:layout_width="0dp"
|
||||
android:scaleType="fitXY"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@drawable/bg_driving_info_image"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintWidth_percent="0.516"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/cl_left_container"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg_driving_info"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintWidth_percent="0.5">
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
app:layout_constraintWidth_percent="0.5"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_line_name_container"
|
||||
@@ -226,6 +237,7 @@
|
||||
android:id="@+id/aciv_speed_time_bg"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_181"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@drawable/shuttle_p_card_split"
|
||||
app:layout_constraintEnd_toEndOf="@+id/cl_left_container"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
@@ -238,13 +250,13 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_50"
|
||||
android:layout_marginTop="@dimen/dp_27"
|
||||
android:text="0"
|
||||
android:textColor="@color/m2_p_speed_tv_color"
|
||||
android:textSize="@dimen/dp_60"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toStartOf="@+id/aciv_speed_time_bg"
|
||||
app:layout_constraintTop_toTopOf="@+id/aciv_speed_time_bg" />
|
||||
app:layout_constraintTop_toTopOf="@+id/viewTextClockHouerMin"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/viewTextClockHouerMin"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_speed_unit"
|
||||
@@ -266,7 +278,7 @@
|
||||
android:background="@drawable/bg_p_m2_auto"
|
||||
android:gravity="center"
|
||||
android:text="@string/m2_p_auto_tv"
|
||||
android:textColor="@color/m2_button_auto_tv_color"
|
||||
android:textColor="@color/shuttle_color_7094ad"
|
||||
android:layout_marginBottom="@dimen/dp_34"
|
||||
android:textSize="@dimen/dp_18"
|
||||
app:layout_constraintLeft_toLeftOf="@+id/speed_tv"
|
||||
@@ -341,9 +353,8 @@
|
||||
android:gravity="center"
|
||||
app:layout_constraintBottom_toTopOf="@+id/viewTextClockWeek"
|
||||
app:layout_constraintStart_toEndOf="@+id/view_split"
|
||||
android:layout_marginEnd="@dimen/dp_90"
|
||||
android:textColor="@color/shuttle_color_17417B"
|
||||
android:layout_marginBottom="@dimen/dp_10"
|
||||
android:layout_marginBottom="@dimen/dp_5"
|
||||
android:includeFontPadding="false"
|
||||
android:textSize="@dimen/dp_18" />
|
||||
|
||||
|
||||
@@ -41,10 +41,10 @@
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:layout_marginTop="@dimen/dp_61"
|
||||
android:layout_marginStart="@dimen/dp_20"
|
||||
android:layout_marginEnd="@dimen/dp_20"
|
||||
android:layout_marginStart="@dimen/dp_25"
|
||||
android:layout_marginEnd="@dimen/dp_25"
|
||||
app:blurRadius="@dimen/dp_15"
|
||||
app:shadowColor="#80000000"
|
||||
app:shadowColor="#802F3E67"
|
||||
app:shadowRadius="@dimen/dp_16"
|
||||
app:shadow_position="outer"
|
||||
app:xOffset="0dp"
|
||||
@@ -54,8 +54,8 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/driving_fragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="@dimen/dp_35"
|
||||
android:layout_marginEnd="@dimen/dp_35"
|
||||
android:layout_marginStart="@dimen/dp_40"
|
||||
android:layout_marginEnd="@dimen/dp_40"
|
||||
android:layout_height="@dimen/dp_492"
|
||||
android:layout_marginTop="@dimen/dp_13"
|
||||
app:layout_constraintTop_toTopOf="@+id/och_shadow_layout"
|
||||
@@ -88,11 +88,12 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/video_fragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_560"
|
||||
android:layout_marginBottom="@dimen/dp_44"
|
||||
android:layout_marginEnd="@dimen/dp_42"
|
||||
android:layout_marginStart="@dimen/dp_42"
|
||||
android:layout_height="562.5dp"
|
||||
android:layout_marginBottom="@dimen/dp_40"
|
||||
android:layout_marginEnd="@dimen/dp_40"
|
||||
android:layout_marginStart="@dimen/dp_40"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"/>
|
||||
|
||||
<!-- 16 9 -->
|
||||
<!-- 1000 562.5 -->
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -35,4 +35,5 @@
|
||||
<color name="shuttle_color_b9e7c0">#B9E7C0</color>
|
||||
<color name="shuttle_color_43cefe">#43CEFE</color>
|
||||
<color name="shuttle_color_1466fb">#1466FB</color>
|
||||
<color name="shuttle_color_7094ad">#7094AD</color>
|
||||
</resources>
|
||||
@@ -67,7 +67,7 @@
|
||||
"shuttlepassengerm2": {
|
||||
"ads": [
|
||||
{
|
||||
"path": "https://img.zhidaohulian.com/fileServer/online_car_hailing/1678946244305/dalim2.mp4",
|
||||
"path": "https://img.zhidaohulian.com/fileServer/online_car_hailing/1681210902933/erhaim2.mp4",
|
||||
"type": 1,
|
||||
"cacheImgPath": "",
|
||||
"title": "1"
|
||||
@@ -143,7 +143,7 @@
|
||||
"shuttlepassengerm2": {
|
||||
"ads": [
|
||||
{
|
||||
"path": "https://img.zhidaohulian.com/fileServer/online_car_hailing/1678946244305/dalim2.mp4",
|
||||
"path": "https://img.zhidaohulian.com/fileServer/online_car_hailing/1681210902933/erhaim2.mp4",
|
||||
"type": 1,
|
||||
"cacheImgPath": "",
|
||||
"title": "1"
|
||||
@@ -155,7 +155,7 @@
|
||||
"shuttlepassenger": {
|
||||
"ads": [
|
||||
{
|
||||
"path": "https://img.zhidaohulian.com/fileServer/online_car_hailing/1680774847276/yangmadao_video.mp4",
|
||||
"path": "https://img.zhidaohulian.com/fileServer/online_car_hailing/1681210971943/yangmadou.mp4",
|
||||
"type": 1,
|
||||
"cacheImgPath": "https://img.zhidaohulian.com/fileServer/online_car_hailing/1680774790614/yangmadao_photo.jpg",
|
||||
"title": "1"
|
||||
@@ -165,7 +165,7 @@
|
||||
"shuttlepassengerm2": {
|
||||
"ads": [
|
||||
{
|
||||
"path": "https://img.zhidaohulian.com/fileServer/online_car_hailing/1678946244305/dalim2.mp4",
|
||||
"path": "https://img.zhidaohulian.com/fileServer/online_car_hailing/1681210902933/erhaim2.mp4",
|
||||
"type": 1,
|
||||
"cacheImgPath": "",
|
||||
"title": "1"
|
||||
|
||||
@@ -31,7 +31,7 @@ project.android.productFlavors {
|
||||
buildConfigField 'int', 'GPS_PROVIDER', "1"
|
||||
|
||||
// 构建的应用身份类型,具体查看 README.md APP_IDENTITY_MODE规则
|
||||
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Bus_Passenger_M2\""
|
||||
buildConfigField 'String', 'APP_IDENTITY_MODE', "\"Shuttle_Passenger_M2\""
|
||||
// 连接的工控机IP地址
|
||||
buildConfigField 'String', 'ADAS_CONNECT_IP', "\"192.168.8.103\""
|
||||
// 构建的是否是演示(美化)模式
|
||||
|
||||
@@ -96,11 +96,14 @@ object ConfigStartUp {
|
||||
HdMapBuildConfig.currentCarVrIconRes = R.raw.xiaobache
|
||||
} else if (AppIdentityModeUtils.isSweeper(FunctionBuildConfig.appIdentityMode)) {
|
||||
HdMapBuildConfig.currentCarVrIconRes = R.raw.huanwei
|
||||
} else if (AppIdentityModeUtils.isJL(FunctionBuildConfig.appIdentityMode)){
|
||||
}
|
||||
if (AppIdentityModeUtils.isJL(FunctionBuildConfig.appIdentityMode)){
|
||||
HdMapBuildConfig.currentCarVrIconRes = R.raw.xiaobache
|
||||
} else if (AppIdentityModeUtils.isM1(FunctionBuildConfig.appIdentityMode)){
|
||||
}
|
||||
if (AppIdentityModeUtils.isM1(FunctionBuildConfig.appIdentityMode)){
|
||||
HdMapBuildConfig.currentCarVrIconRes = R.raw.m1
|
||||
}else if (AppIdentityModeUtils.isM2(FunctionBuildConfig.appIdentityMode)) {
|
||||
}
|
||||
if (AppIdentityModeUtils.isM2(FunctionBuildConfig.appIdentityMode)) {
|
||||
HdMapBuildConfig.currentCarVrIconRes = R.raw.m2
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ BIZCONFIG_VERSION=1.3.2
|
||||
SERVICE_BIZ_VERSION=1.2.4
|
||||
################ 外部依赖引用 ################
|
||||
# loglib
|
||||
LOGLIB_VERSION=1.5.22
|
||||
LOGLIB_VERSION=1.5.25
|
||||
######## MogoAiCloudSDK Version ########
|
||||
# 网络请求LOGLIB_VERSION
|
||||
MOGO_NETWORK_VERSION=1.4.6.6
|
||||
|
||||
@@ -143,6 +143,9 @@ public class AMapWrapper implements IMogoMap {
|
||||
if (!checkAMap()) {
|
||||
return;
|
||||
}
|
||||
if(optionsArrayList == null || optionsArrayList.size() == 0){
|
||||
return;
|
||||
}
|
||||
ArrayList<MarkerSimpleData> markerOptionsArrayList = new ArrayList<>();
|
||||
optionsArrayList.forEach((s, trackedObject) -> {
|
||||
MarkerSimpleData markerOptions = ObjectUtils.fromAiData(trackedObject);
|
||||
|
||||