修复了Marker适配问题
This commit is contained in:
@@ -73,7 +73,7 @@ public class MarkerServiceHandler {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
MogoMarkerOptions options = new MogoMarkerOptions()
|
||||
.owner(TAG)
|
||||
.latitude(39.974525d + new Random().nextDouble())
|
||||
.latitude(37.974525d + new Random().nextDouble())
|
||||
.longitude(116.41733d + new Random().nextDouble());
|
||||
if (i % 2 == 0) {
|
||||
options.icon(mapMarkerInfoView);
|
||||
|
||||
@@ -6,6 +6,7 @@ import android.view.LayoutInflater;
|
||||
import android.widget.LinearLayout;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
|
||||
import com.mogo.module.service.R;
|
||||
|
||||
@@ -16,7 +17,7 @@ import com.mogo.module.service.R;
|
||||
* desc : 地图Marker图标带文本信息
|
||||
* version: 1.0
|
||||
*/
|
||||
public class MapMarkerInfoView extends LinearLayout {
|
||||
public class MapMarkerInfoView extends ConstraintLayout {
|
||||
public MapMarkerInfoView(Context context) {
|
||||
super(context);
|
||||
initView(context);
|
||||
|
||||
@@ -3,9 +3,9 @@ package com.mogo.module.service.marker;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.LayoutInflater;
|
||||
import android.widget.LinearLayout;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
|
||||
import com.mogo.module.service.R;
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.mogo.module.service.R;
|
||||
* desc : 地图Marker图标
|
||||
* version: 1.0
|
||||
*/
|
||||
public class MapMarkerView extends LinearLayout {
|
||||
public class MapMarkerView extends ConstraintLayout {
|
||||
public MapMarkerView(Context context) {
|
||||
super(context);
|
||||
initView(context);
|
||||
|
||||
Reference in New Issue
Block a user