Merge branch 'dev_robotaxi-d_250417_8.0.0' into dev_robotaxi-d_250417_8.1.0_yyk

This commit is contained in:
yangyakun
2025-05-30 13:40:41 +08:00
3 changed files with 21 additions and 8 deletions

View File

@@ -0,0 +1,19 @@
package com.mogo.och.unmanned.passenger.ui.homepage
import android.content.Context
import android.util.AttributeSet
import com.mogo.eagle.core.function.view.MapBizView
import com.mogo.eagle.core.widget.media.video.TextureVideoViewOutlineProvider
import me.jessyan.autosize.utils.AutoSizeUtils
class MapBizPView(context: Context?, attrs: AttributeSet?) : MapBizView(context, attrs) {
override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {
super.onSizeChanged(w, h, oldw, oldh)
this.outlineProvider =
TextureVideoViewOutlineProvider(AutoSizeUtils.dp2px(context, 36f).toFloat())
this.clipToOutline = true
}
}

View File

@@ -68,7 +68,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.mogo.eagle.core.function.view.MapBizView
<com.mogo.och.unmanned.passenger.ui.homepage.MapBizPView
android:id="@+id/hdMapView"
app:styleMode="MAP_STYLE_DAY_VR_TAXI"
app:default_perspective="MAP_STYLE_VR_SKY_BOX"

View File

@@ -24,7 +24,7 @@ import me.jessyan.autosize.utils.AutoSizeUtils
import kotlin.properties.Delegates
class MapBizView(context: Context?, attrs: AttributeSet?) : MogoMapView(context, attrs),
open class MapBizView(context: Context?, attrs: AttributeSet?) : MogoMapView(context, attrs),
IMoGoChassisLocationWGS84Listener, IMoGoChassisStatesListener, LifecycleObserver {
companion object {
@@ -143,10 +143,4 @@ class MapBizView(context: Context?, attrs: AttributeSet?) : MogoMapView(context,
super.onDestroy()
}
override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {
super.onSizeChanged(w, h, oldw, oldh)
this.outlineProvider = TextureVideoViewOutlineProvider(AutoSizeUtils.dp2px(context,36f).toFloat())
this.clipToOutline = true
}
}