[6.7.0][Feat]高德地图增加圆角

This commit is contained in:
chenfufeng
2024-09-23 18:37:39 +08:00
parent ce926a6412
commit cacf43cb05
5 changed files with 31 additions and 9 deletions

View File

@@ -134,8 +134,8 @@ class ExchangeChildLayout @JvmOverloads constructor(
txPro = PropertyValuesHolder.ofFloat("translationX", 0f, bottomX - topX - minWidth * (1 - tScaleX) / 2)
tyPro = PropertyValuesHolder.ofFloat("translationY", 0f, bottomY - topY - minHeight * (1 - tScaleY) / 2)
tWidthPro = PropertyValuesHolder.ofFloat("scaleX", 1f, tScaleX/1.5f)
tHeightPro = PropertyValuesHolder.ofFloat("scaleY", 1f, tScaleY/1.5f)
tWidthPro = PropertyValuesHolder.ofFloat("scaleX", 1f, tScaleX/2f)
tHeightPro = PropertyValuesHolder.ofFloat("scaleY", 1f, tScaleY/2f)
alphaPro = PropertyValuesHolder.ofFloat("alpha", 1f, 0.1f)
tOA = ObjectAnimator.ofPropertyValuesHolder(topView, tWidthPro, tHeightPro, txPro, tyPro, alphaPro)
} else {
@@ -147,8 +147,8 @@ class ExchangeChildLayout @JvmOverloads constructor(
txPro = PropertyValuesHolder.ofFloat("translationX", 0f, bottomX - topX - minWidth * (1 - tScaleX) / 2)
tyPro = PropertyValuesHolder.ofFloat("translationY", 0f, bottomY - topY - minHeight * (1 - tScaleY) / 2)
tWidthPro = PropertyValuesHolder.ofFloat("scaleX", 1f, tScaleX/1.5f)
tHeightPro = PropertyValuesHolder.ofFloat("scaleY", 1f, tScaleY/1.5f)
tWidthPro = PropertyValuesHolder.ofFloat("scaleX", 1f, tScaleX/2f)
tHeightPro = PropertyValuesHolder.ofFloat("scaleY", 1f, tScaleY/2f)
alphaPro = PropertyValuesHolder.ofFloat("alpha", 1f, 0.1f)
tOA = ObjectAnimator.ofPropertyValuesHolder(bottomView, tWidthPro, tHeightPro, txPro, tyPro, alphaPro)

View File

@@ -81,6 +81,7 @@ class MapContainerLayout @JvmOverloads constructor(
overMapView.setOnGestureListener(object : TravelRealityView.OnGestureListener {
override fun onSingleTap(lng: Float, lat: Float) {
if (!exchangeLayout.getSwapFlag()) {
overMapView.setMapFlag(false)
exchangeLayout.swapViews()
}
}
@@ -90,6 +91,7 @@ class MapContainerLayout @JvmOverloads constructor(
override fun onMapClick(latLng: MogoLatLng?) {
super.onMapClick(latLng)
if (exchangeLayout.getSwapFlag()) {
overMapView.setMapFlag(true)
exchangeLayout.swapViews()
}
}

View File

@@ -2,8 +2,8 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="1560dp"
android:layout_height="1534dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="MissingDefaultResource">
<com.mogo.eagle.core.function.hmi.map.ExchangeChildLayout