diff --git a/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerInfoView.java b/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerInfoView.java new file mode 100644 index 0000000000..4e2d773096 --- /dev/null +++ b/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerInfoView.java @@ -0,0 +1,42 @@ +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 com.mogo.module.service.R; + +/** + * author : donghongyu + * e-mail : 1358506549@qq.com + * date : 2020-01-0619:55 + * desc : 地图Marker图标带文本信息 + * version: 1.0 + */ +public class MapMarkerInfoView extends LinearLayout { + public MapMarkerInfoView(Context context) { + super(context); + initView(context); + } + + public MapMarkerInfoView(Context context, @Nullable AttributeSet attrs) { + super(context, attrs); + initView(context); + } + + public MapMarkerInfoView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); + initView(context); + } + + + private void initView(Context context) { + + LayoutInflater.from(context).inflate(R.layout.view_map_marker_info, this); + + } + +} diff --git a/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerView.java b/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerView.java new file mode 100644 index 0000000000..d288cfa493 --- /dev/null +++ b/modules/mogo-module-service/src/main/java/com/mogo/module/service/marker/MapMarkerView.java @@ -0,0 +1,42 @@ +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 com.mogo.module.service.R; + +/** + * author : donghongyu + * e-mail : 1358506549@qq.com + * date : 2020-01-0619:55 + * desc : 地图Marker图标 + * version: 1.0 + */ +public class MapMarkerView extends LinearLayout { + public MapMarkerView(Context context) { + super(context); + initView(context); + } + + public MapMarkerView(Context context, @Nullable AttributeSet attrs) { + super(context, attrs); + initView(context); + } + + public MapMarkerView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); + initView(context); + } + + + private void initView(Context context) { + + LayoutInflater.from(context).inflate(R.layout.view_map_marker, this); + + } + +} \ No newline at end of file diff --git a/modules/mogo-module-service/src/main/res/layout/view_map_marker_green.xml b/modules/mogo-module-service/src/main/res/layout/view_map_marker.xml similarity index 100% rename from modules/mogo-module-service/src/main/res/layout/view_map_marker_green.xml rename to modules/mogo-module-service/src/main/res/layout/view_map_marker.xml diff --git a/modules/mogo-module-service/src/main/res/layout/view_map_marker_green_info.xml b/modules/mogo-module-service/src/main/res/layout/view_map_marker_info.xml similarity index 100% rename from modules/mogo-module-service/src/main/res/layout/view_map_marker_green_info.xml rename to modules/mogo-module-service/src/main/res/layout/view_map_marker_info.xml