[6.7.0][Feat]高德地图增加圆角
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user