From cecdc1e65dc6c45daad1eee9f93970228df86966 Mon Sep 17 00:00:00 2001 From: yangyakun Date: Fri, 30 May 2025 12:04:48 +0800 Subject: [PATCH] =?UTF-8?q?[8.0.0]=20[fix]=20[=E5=9C=B0=E5=9B=BE=E5=9C=86?= =?UTF-8?q?=E8=A7=92]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../passenger/ui/homepage/MapBizPView.kt | 19 +++++++++++++++++++ .../src/main/res/layout/taxi_p_home.xml | 2 +- .../eagle/core/function/view/MapBizView.kt | 8 +------- 3 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 OCH/taxi/unmanned-passenger/src/main/java/com/mogo/och/unmanned/passenger/ui/homepage/MapBizPView.kt diff --git a/OCH/taxi/unmanned-passenger/src/main/java/com/mogo/och/unmanned/passenger/ui/homepage/MapBizPView.kt b/OCH/taxi/unmanned-passenger/src/main/java/com/mogo/och/unmanned/passenger/ui/homepage/MapBizPView.kt new file mode 100644 index 0000000000..0a7bc5aec8 --- /dev/null +++ b/OCH/taxi/unmanned-passenger/src/main/java/com/mogo/och/unmanned/passenger/ui/homepage/MapBizPView.kt @@ -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 + } + +} diff --git a/OCH/taxi/unmanned-passenger/src/main/res/layout/taxi_p_home.xml b/OCH/taxi/unmanned-passenger/src/main/res/layout/taxi_p_home.xml index 1616971d6f..ba62606abf 100644 --- a/OCH/taxi/unmanned-passenger/src/main/res/layout/taxi_p_home.xml +++ b/OCH/taxi/unmanned-passenger/src/main/res/layout/taxi_p_home.xml @@ -68,7 +68,7 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> -