[3.4.0][Opt]调整全览模式V2X事件的UI

This commit is contained in:
chenfufeng
2023-07-24 15:35:29 +08:00
parent d23f429e7c
commit 1d0842adc1
3 changed files with 8 additions and 7 deletions

View File

@@ -591,7 +591,7 @@ class OverMapView @JvmOverloads constructor(
)
}
markerOption.position(latLng)
markerOption.anchor(0.13f, 1f)
markerOption.anchor(0f, 1f)
markerOption.icon(
BitmapDescriptorFactory.fromBitmap(
getV2XBitmap(
@@ -615,7 +615,7 @@ class OverMapView @JvmOverloads constructor(
val marker = V2XMarkerView(context, null, 0, poiType)
marker.measure(
MeasureSpec.makeMeasureSpec(AutoSizeUtils.dp2px(mContext, 229f), MeasureSpec.EXACTLY),
MeasureSpec.makeMeasureSpec(AutoSizeUtils.dp2px(mContext, 96f), MeasureSpec.EXACTLY)
MeasureSpec.makeMeasureSpec(AutoSizeUtils.dp2px(mContext, 115f), MeasureSpec.EXACTLY)
)
marker.layout(0, 0, marker.measuredWidth, marker.measuredHeight)
val bitmap = Bitmap.createBitmap(marker.width, marker.height, Bitmap.Config.ARGB_8888)

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="229dp"
android:layout_height="96dp"
android:layout_height="115dp"
android:background="@drawable/icon_v2x_marker"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto">
@@ -12,7 +12,7 @@
android:layout_height="64dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginTop="8dp"
android:layout_marginTop="7dp"
android:layout_marginStart="11dp"
android:background="@drawable/icon_small_v2x_road_construction"
android:visibility="visible"
@@ -20,14 +20,15 @@
<TextView
android:id="@+id/tvContent"
android:layout_width="119dp"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:text="道路施工"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginTop="23dp"
android:layout_marginTop="18dp"
android:layout_marginEnd="23dp"
android:textColor="@color/white"
android:textColor="#2B364B"
android:gravity="center"
android:textSize="29dp"
tools:text="道路施工"