> steps = mRouteLine.getNewSteps();
80 | if (isSameCity ) {
81 | // 同城 (同城时,每个steps的get(i)对应的List是一条step的不同方案,此处都选第一条进行绘制,即get(0))
82 |
83 | // step node
84 | for ( int i = 0; i < steps.size(); i++ ) {
85 |
86 | MassTransitRouteLine.TransitStep step = steps.get(i).get(0);
87 | Bundle b = new Bundle();
88 | b.putInt("index", i + 1);
89 |
90 | if (step.getStartLocation() != null) {
91 | overlayOptionses.add((new MarkerOptions()).position(step.getStartLocation())
92 | .anchor(0.5f, 0.5f).zIndex(10).extraInfo(b).icon(getIconForStep(step)));
93 | }
94 |
95 | // 最后一个终点
96 | if ( (i == steps.size() - 1) && (step.getEndLocation() != null)) {
97 | overlayOptionses.add((new MarkerOptions()).position(step.getEndLocation())
98 | .anchor(0.5f, 0.5f).zIndex(10)
99 | .icon(getIconForStep(step))
100 | );
101 | }
102 |
103 | }
104 |
105 | // polyline
106 | for ( int i = 0; i < steps.size(); i++ ) {
107 | MassTransitRouteLine.TransitStep step = steps.get(i).get(0);
108 | int color = 0;
109 | if (step.getVehileType() != MassTransitRouteLine.TransitStep
110 | .StepVehicleInfoType.ESTEP_WALK) {
111 | // color = Color.argb(178, 0, 78, 255);
112 | color = getLineColor() != 0 ? getLineColor() : Color.argb(178, 0, 78, 255);
113 | } else {
114 | // color = Color.argb(178, 88, 208, 0);
115 | color = getLineColor() != 0 ? getLineColor() : Color.argb(178, 88, 208, 0);
116 | }
117 | overlayOptionses.add(new PolylineOptions()
118 | .points(step.getWayPoints()).width(10).color(color)
119 | .zIndex(0));
120 | }
121 |
122 | } else {
123 | // 跨城 (跨城时,每个steps的get(i)对应的List是一条step的子路线sub_step,需要将它们全部拼接才是一条完整路线)
124 | int stepSum = 0;
125 | for (int i = 0; i < steps.size(); i++ ) {
126 | stepSum += steps.get(i).size();
127 | }
128 |
129 | // step node
130 | int k = 1;
131 | for ( int i = 0; i < steps.size(); i++ ) {
132 |
133 | for (int j = 0; j < steps.get(i).size(); j++ ) {
134 | MassTransitRouteLine.TransitStep step = steps.get(i).get(j);
135 | Bundle b = new Bundle();
136 | b.putInt("index", k);
137 |
138 | if (step.getStartLocation() != null) {
139 | overlayOptionses.add((new MarkerOptions()).position(step.getStartLocation())
140 | .anchor(0.5f, 0.5f).zIndex(10).extraInfo(b).icon(getIconForStep(step)));
141 | }
142 |
143 | // 最后一个终点
144 | if ( (k == stepSum ) && (step.getEndLocation() != null)) {
145 | overlayOptionses.add((new MarkerOptions()).position(step.getEndLocation())
146 | .anchor(0.5f, 0.5f).zIndex(10).icon(getIconForStep(step)));
147 | }
148 |
149 | k++;
150 | }
151 | }
152 |
153 |
154 | // polyline
155 | for ( int i = 0; i < steps.size(); i++ ) {
156 |
157 | for (int j = 0; j < steps.get(i).size(); j++ ) {
158 | MassTransitRouteLine.TransitStep step = steps.get(i).get(j);
159 | int color = 0;
160 | if (step.getVehileType() != MassTransitRouteLine.TransitStep
161 | .StepVehicleInfoType.ESTEP_WALK) {
162 | // color = Color.argb(178, 0, 78, 255);
163 | color = getLineColor() != 0 ? getLineColor() : Color.argb(178, 0, 78, 255);
164 | } else {
165 | // color = Color.argb(178, 88, 208, 0);
166 | color = getLineColor() != 0 ? getLineColor() : Color.argb(178, 88, 208, 0);
167 | }
168 | if (step.getWayPoints() != null ) {
169 | overlayOptionses.add(new PolylineOptions()
170 | .points(step.getWayPoints()).width(10).color(color)
171 | .zIndex(0));
172 | }
173 | }
174 | }
175 |
176 | }
177 |
178 | // 起点
179 | if (mRouteLine.getStarting() != null && mRouteLine.getStarting().getLocation() != null) {
180 | overlayOptionses.add((new MarkerOptions()).position(mRouteLine.getStarting().getLocation())
181 | .icon(getStartMarker() != null
182 | ? getStartMarker() : BitmapDescriptorFactory.fromAssetWithDpi("Icon_start.png"))
183 | .zIndex(10));
184 | }
185 | // 终点
186 | if (mRouteLine.getTerminal() != null && mRouteLine.getTerminal().getLocation() != null) {
187 | overlayOptionses
188 | .add((new MarkerOptions())
189 | .position(mRouteLine.getTerminal().getLocation())
190 | .icon(getTerminalMarker() != null ? getTerminalMarker() :
191 | BitmapDescriptorFactory
192 | .fromAssetWithDpi("Icon_end.png"))
193 | .zIndex(10));
194 | }
195 |
196 | return overlayOptionses;
197 |
198 | }
199 |
200 | private BitmapDescriptor getIconForStep(MassTransitRouteLine.TransitStep step) {
201 | switch (step.getVehileType()) {
202 | case ESTEP_WALK:
203 | return BitmapDescriptorFactory.fromAssetWithDpi("Icon_walk_route.png");
204 | case ESTEP_TRAIN:
205 | return BitmapDescriptorFactory.fromAssetWithDpi("Icon_subway_station.png");
206 | case ESTEP_DRIVING:
207 | case ESTEP_COACH:
208 | case ESTEP_PLANE:
209 | case ESTEP_BUS:
210 | return BitmapDescriptorFactory.fromAssetWithDpi("Icon_bus_station.png");
211 | default:
212 | return null;
213 | }
214 | }
215 |
216 | @Override
217 | public boolean onMarkerClick(Marker marker) {
218 | return false;
219 | }
220 |
221 | @Override
222 | public boolean onPolylineClick(Polyline polyline) {
223 | return false;
224 | }
225 | }
226 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/map/overlayutil/OverlayManager.java:
--------------------------------------------------------------------------------
1 | package com.example.map.overlayutil;
2 |
3 | import com.baidu.mapapi.map.BaiduMap;
4 | import com.baidu.mapapi.map.BaiduMap.OnPolylineClickListener;
5 | import com.baidu.mapapi.map.MapStatus;
6 | import com.baidu.mapapi.map.MapStatusUpdateFactory;
7 | import com.baidu.mapapi.map.Marker;
8 | import com.baidu.mapapi.map.Overlay;
9 | import com.baidu.mapapi.map.OverlayOptions;
10 | import com.baidu.mapapi.model.LatLngBounds;
11 |
12 | import java.util.ArrayList;
13 | import java.util.List;
14 |
15 | import static com.baidu.mapapi.map.BaiduMap.OnMarkerClickListener;
16 |
17 | /**
18 | * 该类提供一个能够显示和管理多个Overlay的基类
19 | *
20 | * 复写{@link #getOverlayOptions()} 设置欲显示和管理的Overlay列表
21 | *
22 | *
23 | * 通过
24 | * {@link BaiduMap#setOnMarkerClickListener(OnMarkerClickListener)}
25 | * 将覆盖物点击事件传递给OverlayManager后,OverlayManager才能响应点击事件。
26 | *
27 | * 复写{@link #onMarkerClick(Marker)} 处理Marker点击事件
28 | *
29 | */
30 | public abstract class OverlayManager implements OnMarkerClickListener, OnPolylineClickListener {
31 |
32 | BaiduMap mBaiduMap = null;
33 | private List mOverlayOptionList = null;
34 |
35 | List mOverlayList = null;
36 |
37 | /**
38 | * 通过一个BaiduMap 对象构造
39 | *
40 | * @param baiduMap
41 | */
42 | public OverlayManager(BaiduMap baiduMap) {
43 | mBaiduMap = baiduMap;
44 | // mBaiduMap.setOnMarkerClickListener(this);
45 | if (mOverlayOptionList == null) {
46 | mOverlayOptionList = new ArrayList();
47 | }
48 | if (mOverlayList == null) {
49 | mOverlayList = new ArrayList();
50 | }
51 | }
52 |
53 | /**
54 | * 覆写此方法设置要管理的Overlay列表
55 | *
56 | * @return 管理的Overlay列表
57 | */
58 | public abstract List getOverlayOptions();
59 |
60 | /**
61 | * 将所有Overlay 添加到地图上
62 | */
63 | public final void addToMap() {
64 | if (mBaiduMap == null) {
65 | return;
66 | }
67 |
68 | removeFromMap();
69 | List overlayOptions = getOverlayOptions();
70 | if (overlayOptions != null) {
71 | mOverlayOptionList.addAll(getOverlayOptions());
72 | }
73 |
74 | for (OverlayOptions option : mOverlayOptionList) {
75 | mOverlayList.add(mBaiduMap.addOverlay(option));
76 | }
77 | }
78 |
79 | /**
80 | * 将所有Overlay 从 地图上消除
81 | */
82 | public final void removeFromMap() {
83 | if (mBaiduMap == null) {
84 | return;
85 | }
86 | for (Overlay marker : mOverlayList) {
87 | marker.remove();
88 | }
89 | mOverlayOptionList.clear();
90 | mOverlayList.clear();
91 |
92 | }
93 |
94 | /**
95 | * 缩放地图,使所有Overlay都在合适的视野内
96 | *
97 | * 注: 该方法只对Marker类型的overlay有效
98 | *
99 | */
100 | public void zoomToSpan() {
101 | if (mBaiduMap == null) {
102 | return;
103 | }
104 | if (mOverlayList.size() > 0) {
105 | LatLngBounds.Builder builder = new LatLngBounds.Builder();
106 | for (Overlay overlay : mOverlayList) {
107 | // polyline 中的点可能太多,只按marker 缩放
108 | if (overlay instanceof Marker) {
109 | builder.include(((Marker) overlay).getPosition());
110 | }
111 | }
112 | MapStatus mapStatus = mBaiduMap.getMapStatus();
113 | if (null != mapStatus){
114 | int width = mapStatus.winRound.right - mBaiduMap.getMapStatus().winRound.left - 400;
115 | int height = mapStatus.winRound.bottom - mBaiduMap.getMapStatus().winRound.top - 400;
116 | mBaiduMap.setMapStatus(MapStatusUpdateFactory
117 | .newLatLngBounds(builder.build(), width, height));
118 | }
119 |
120 | }
121 | }
122 |
123 | /**
124 | * 设置显示在规定宽高中的地图地理范围
125 | */
126 | public void zoomToSpanPaddingBounds(int paddingLeft, int paddingTop, int paddingRight, int paddingBottom) {
127 | if (mBaiduMap == null) {
128 | return;
129 | }
130 | if (mOverlayList.size() > 0) {
131 | LatLngBounds.Builder builder = new LatLngBounds.Builder();
132 | for (Overlay overlay : mOverlayList) {
133 | // polyline 中的点可能太多,只按marker 缩放
134 | if (overlay instanceof Marker) {
135 | builder.include(((Marker) overlay).getPosition());
136 | }
137 | }
138 |
139 | mBaiduMap.setMapStatus(MapStatusUpdateFactory
140 | .newLatLngBounds(builder.build(), paddingLeft, paddingTop, paddingRight, paddingBottom));
141 | }
142 | }
143 |
144 | }
145 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/map/overlayutil/PoiOverlay.java:
--------------------------------------------------------------------------------
1 | package com.example.map.overlayutil;
2 |
3 | import android.os.Bundle;
4 |
5 | import com.baidu.mapapi.map.BaiduMap;
6 | import com.baidu.mapapi.map.BitmapDescriptorFactory;
7 | import com.baidu.mapapi.map.Marker;
8 | import com.baidu.mapapi.map.MarkerOptions;
9 | import com.baidu.mapapi.map.OverlayOptions;
10 | import com.baidu.mapapi.map.Polyline;
11 | import com.baidu.mapapi.search.poi.PoiResult;
12 |
13 | import java.util.ArrayList;
14 | import java.util.List;
15 |
16 | /**
17 | * 用于显示poi的overly
18 | */
19 | public class PoiOverlay extends OverlayManager {
20 |
21 | private static final int MAX_POI_SIZE = 10;
22 |
23 | private PoiResult mPoiResult = null;
24 |
25 | /**
26 | * 构造函数
27 | *
28 | * @param baiduMap 该 PoiOverlay 引用的 BaiduMap 对象
29 | */
30 | public PoiOverlay(BaiduMap baiduMap) {
31 | super(baiduMap);
32 | }
33 |
34 | /**
35 | * 设置POI数据
36 | *
37 | * @param poiResult 设置POI数据
38 | */
39 | public void setData(PoiResult poiResult) {
40 | this.mPoiResult = poiResult;
41 | }
42 |
43 | @Override
44 | public final List getOverlayOptions() {
45 | if (mPoiResult == null || mPoiResult.getAllPoi() == null) {
46 | return null;
47 | }
48 |
49 | List markerList = new ArrayList<>();
50 | int markerSize = 0;
51 |
52 | for (int i = 0; i < mPoiResult.getAllPoi().size() && markerSize < MAX_POI_SIZE; i++) {
53 | if (mPoiResult.getAllPoi().get(i).location == null) {
54 | continue;
55 | }
56 |
57 | markerSize++;
58 | Bundle bundle = new Bundle();
59 | bundle.putInt("index", i);
60 | markerList.add(new MarkerOptions()
61 | .icon(BitmapDescriptorFactory.fromAssetWithDpi("Icon_mark" + markerSize + ".png"))
62 | .extraInfo(bundle)
63 | .position(mPoiResult.getAllPoi().get(i).location));
64 |
65 | }
66 |
67 | return markerList;
68 | }
69 |
70 | /**
71 | * 获取该PoiOverlay的poi数据
72 | *
73 | * @return POI数据
74 | */
75 | public PoiResult getPoiResult() {
76 | return mPoiResult;
77 | }
78 |
79 | /**
80 | * 覆写此方法以改变默认点击行为
81 | *
82 | * @param i 被点击的poi在
83 | * {@link PoiResult#getAllPoi()} 中的索引
84 | * @return true--事件已经处理,false--事件未处理
85 | */
86 | public boolean onPoiClick(int i) {
87 | // if (mPoiResult.getAllPoi() != null
88 | // && mPoiResult.getAllPoi().get(i) != null) {
89 | // Toast.makeText(BMapManager.getInstance().getContext(),
90 | // mPoiResult.getAllPoi().get(i).name, Toast.LENGTH_LONG)
91 | // .show();
92 | // }
93 | return false;
94 | }
95 |
96 | @Override
97 | public final boolean onMarkerClick(Marker marker) {
98 | if (!mOverlayList.contains(marker)) {
99 | return false;
100 | }
101 |
102 | if (marker.getExtraInfo() != null) {
103 | return onPoiClick(marker.getExtraInfo().getInt("index"));
104 | }
105 |
106 | return false;
107 | }
108 |
109 | @Override
110 | public boolean onPolylineClick(Polyline polyline) {
111 | return false;
112 | }
113 | }
114 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/map/overlayutil/TransitRouteOverlay.java:
--------------------------------------------------------------------------------
1 | package com.example.map.overlayutil;
2 |
3 | import android.graphics.Color;
4 | import android.os.Bundle;
5 | import android.util.Log;
6 |
7 | import com.baidu.mapapi.map.BaiduMap;
8 | import com.baidu.mapapi.map.BitmapDescriptor;
9 | import com.baidu.mapapi.map.BitmapDescriptorFactory;
10 | import com.baidu.mapapi.map.Marker;
11 | import com.baidu.mapapi.map.MarkerOptions;
12 | import com.baidu.mapapi.map.Overlay;
13 | import com.baidu.mapapi.map.OverlayOptions;
14 | import com.baidu.mapapi.map.Polyline;
15 | import com.baidu.mapapi.map.PolylineOptions;
16 | import com.baidu.mapapi.search.route.TransitRouteLine;
17 |
18 | import java.util.ArrayList;
19 | import java.util.List;
20 |
21 | /**
22 | * 用于显示换乘路线的Overlay,自3.4.0版本起可实例化多个添加在地图中显示
23 | */
24 | public class TransitRouteOverlay extends OverlayManager {
25 |
26 | private TransitRouteLine mRouteLine = null;
27 |
28 | /**
29 | * 构造函数
30 | *
31 | * @param baiduMap
32 | * 该TransitRouteOverlay引用的 BaiduMap 对象
33 | */
34 | public TransitRouteOverlay(BaiduMap baiduMap) {
35 | super(baiduMap);
36 | }
37 |
38 | @Override
39 | public final List getOverlayOptions() {
40 |
41 | if (mRouteLine == null) {
42 | return null;
43 | }
44 |
45 | List overlayOptionses = new ArrayList();
46 | // step node
47 | if (mRouteLine.getAllStep() != null
48 | && mRouteLine.getAllStep().size() > 0) {
49 |
50 | for (TransitRouteLine.TransitStep step : mRouteLine.getAllStep()) {
51 | Bundle b = new Bundle();
52 | b.putInt("index", mRouteLine.getAllStep().indexOf(step));
53 | if (step.getEntrance() != null) {
54 | overlayOptionses.add((new MarkerOptions())
55 | .position(step.getEntrance().getLocation())
56 | .anchor(0.5f, 0.5f).zIndex(10).extraInfo(b)
57 | .icon(getIconForStep(step)));
58 | }
59 | // 最后路段绘制出口点
60 | if (mRouteLine.getAllStep().indexOf(step) == (mRouteLine
61 | .getAllStep().size() - 1) && step.getExit() != null) {
62 | overlayOptionses.add((new MarkerOptions())
63 | .position(step.getExit().getLocation())
64 | .anchor(0.5f, 0.5f).zIndex(10)
65 | .icon(getIconForStep(step)));
66 | }
67 | }
68 | }
69 |
70 | if (mRouteLine.getStarting() != null) {
71 | overlayOptionses.add((new MarkerOptions())
72 | .position(mRouteLine.getStarting().getLocation())
73 | .icon(getStartMarker() != null ? getStartMarker() :
74 | BitmapDescriptorFactory
75 | .fromAssetWithDpi("Icon_start.png")).zIndex(10));
76 | }
77 | if (mRouteLine.getTerminal() != null) {
78 | overlayOptionses
79 | .add((new MarkerOptions())
80 | .position(mRouteLine.getTerminal().getLocation())
81 | .icon(getTerminalMarker() != null ? getTerminalMarker() :
82 | BitmapDescriptorFactory
83 | .fromAssetWithDpi("Icon_end.png"))
84 | .zIndex(10));
85 | }
86 | // polyline
87 | if (mRouteLine.getAllStep() != null
88 | && mRouteLine.getAllStep().size() > 0) {
89 |
90 | for (TransitRouteLine.TransitStep step : mRouteLine.getAllStep()) {
91 | if (step.getWayPoints() == null) {
92 | continue;
93 | }
94 | int color = 0;
95 | if (step.getStepType() != TransitRouteLine.TransitStep.TransitRouteStepType.WAKLING) {
96 | // color = Color.argb(178, 0, 78, 255);
97 | color = getLineColor() != 0 ? getLineColor() : Color.argb(178, 0, 78, 255);
98 | } else {
99 | // color = Color.argb(178, 88, 208, 0);
100 | color = getLineColor() != 0 ? getLineColor() : Color.argb(178, 88, 208, 0);
101 | }
102 | overlayOptionses.add(new PolylineOptions()
103 | .points(step.getWayPoints()).width(10).color(color)
104 | .zIndex(0));
105 | }
106 | }
107 | return overlayOptionses;
108 | }
109 |
110 | private BitmapDescriptor getIconForStep(TransitRouteLine.TransitStep step) {
111 | switch (step.getStepType()) {
112 | case BUSLINE:
113 | return BitmapDescriptorFactory.fromAssetWithDpi("Icon_bus_station.png");
114 | case SUBWAY:
115 | return BitmapDescriptorFactory.fromAssetWithDpi("Icon_subway_station.png");
116 | case WAKLING:
117 | return BitmapDescriptorFactory.fromAssetWithDpi("Icon_walk_route.png");
118 | default:
119 | return null;
120 | }
121 | }
122 |
123 | /**
124 | * 设置路线数据
125 | *
126 | * @param routeOverlay
127 | * 路线数据
128 | */
129 | public void setData(TransitRouteLine routeOverlay) {
130 | this.mRouteLine = routeOverlay;
131 | }
132 |
133 | /**
134 | * 覆写此方法以改变默认起点图标
135 | *
136 | * @return 起点图标
137 | */
138 | public BitmapDescriptor getStartMarker() {
139 | return null;
140 | }
141 |
142 | /**
143 | * 覆写此方法以改变默认终点图标
144 | *
145 | * @return 终点图标
146 | */
147 | public BitmapDescriptor getTerminalMarker() {
148 | return null;
149 | }
150 |
151 | public int getLineColor() {
152 | return 0;
153 | }
154 | /**
155 | * 覆写此方法以改变起默认点击行为
156 | *
157 | * @param i
158 | * 被点击的step在
159 | * {@link TransitRouteLine#getAllStep()}
160 | * 中的索引
161 | * @return 是否处理了该点击事件
162 | */
163 | public boolean onRouteNodeClick(int i) {
164 | if (mRouteLine.getAllStep() != null
165 | && mRouteLine.getAllStep().get(i) != null) {
166 | Log.i("baidumapsdk", "TransitRouteOverlay onRouteNodeClick");
167 | }
168 | return false;
169 | }
170 |
171 | @Override
172 | public final boolean onMarkerClick(Marker marker) {
173 | for (Overlay mMarker : mOverlayList) {
174 | if (mMarker instanceof Marker && mMarker.equals(marker)) {
175 | if (marker.getExtraInfo() != null) {
176 | onRouteNodeClick(marker.getExtraInfo().getInt("index"));
177 | }
178 | }
179 | }
180 | return true;
181 | }
182 |
183 | @Override
184 | public boolean onPolylineClick(Polyline polyline) {
185 | // TODO Auto-generated method stub
186 | return false;
187 | }
188 |
189 | }
190 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/map/overlayutil/WalkingRouteOverlay.java:
--------------------------------------------------------------------------------
1 | package com.example.map.overlayutil;
2 |
3 | import android.graphics.Color;
4 | import android.os.Bundle;
5 | import android.util.Log;
6 |
7 | import com.baidu.mapapi.map.BaiduMap;
8 | import com.baidu.mapapi.map.BitmapDescriptor;
9 | import com.baidu.mapapi.map.BitmapDescriptorFactory;
10 | import com.baidu.mapapi.map.Marker;
11 | import com.baidu.mapapi.map.MarkerOptions;
12 | import com.baidu.mapapi.map.Overlay;
13 | import com.baidu.mapapi.map.OverlayOptions;
14 | import com.baidu.mapapi.map.Polyline;
15 | import com.baidu.mapapi.map.PolylineOptions;
16 | import com.baidu.mapapi.model.LatLng;
17 | import com.baidu.mapapi.search.route.WalkingRouteLine;
18 |
19 | import java.util.ArrayList;
20 | import java.util.List;
21 |
22 | /**
23 | * 用于显示步行路线的overlay,自3.4.0版本起可实例化多个添加在地图中显示
24 | */
25 | public class WalkingRouteOverlay extends OverlayManager {
26 |
27 | private WalkingRouteLine mRouteLine = null;
28 |
29 | public WalkingRouteOverlay(BaiduMap baiduMap) {
30 | super(baiduMap);
31 | }
32 |
33 | /**
34 | * 设置路线数据。
35 | *
36 | * @param line
37 | * 路线数据
38 | */
39 | public void setData(WalkingRouteLine line) {
40 | mRouteLine = line;
41 | }
42 |
43 | @Override
44 | public final List getOverlayOptions() {
45 | if (mRouteLine == null) {
46 | return null;
47 | }
48 |
49 | List overlayList = new ArrayList();
50 | if (mRouteLine.getAllStep() != null
51 | && mRouteLine.getAllStep().size() > 0) {
52 | for (WalkingRouteLine.WalkingStep step : mRouteLine.getAllStep()) {
53 | Bundle b = new Bundle();
54 | b.putInt("index", mRouteLine.getAllStep().indexOf(step));
55 | if (step.getEntrance() != null) {
56 | overlayList.add((new MarkerOptions())
57 | .position(step.getEntrance().getLocation())
58 | .rotate((360 - step.getDirection()))
59 | .zIndex(10)
60 | .anchor(0.5f, 0.5f)
61 | .extraInfo(b)
62 | .icon(BitmapDescriptorFactory
63 | .fromAssetWithDpi("Icon_line_node.png")));
64 | }
65 |
66 | // 最后路段绘制出口点
67 | if (mRouteLine.getAllStep().indexOf(step) == (mRouteLine
68 | .getAllStep().size() - 1) && step.getExit() != null) {
69 | overlayList.add((new MarkerOptions())
70 | .position(step.getExit().getLocation())
71 | .anchor(0.5f, 0.5f)
72 | .zIndex(10)
73 | .icon(BitmapDescriptorFactory
74 | .fromAssetWithDpi("Icon_line_node.png")));
75 |
76 | }
77 | }
78 | }
79 | // starting
80 | if (mRouteLine.getStarting() != null) {
81 | overlayList.add((new MarkerOptions())
82 | .position(mRouteLine.getStarting().getLocation())
83 | .icon(getStartMarker() != null ? getStartMarker() :
84 | BitmapDescriptorFactory
85 | .fromAssetWithDpi("Icon_start.png")).zIndex(10));
86 | }
87 | // terminal
88 | if (mRouteLine.getTerminal() != null) {
89 | overlayList
90 | .add((new MarkerOptions())
91 | .position(mRouteLine.getTerminal().getLocation())
92 | .icon(getTerminalMarker() != null ? getTerminalMarker() :
93 | BitmapDescriptorFactory
94 | .fromAssetWithDpi("Icon_end.png"))
95 | .zIndex(10));
96 | }
97 |
98 | // poly line list
99 | if (mRouteLine.getAllStep() != null
100 | && mRouteLine.getAllStep().size() > 0) {
101 | LatLng lastStepLastPoint = null;
102 | for (WalkingRouteLine.WalkingStep step : mRouteLine.getAllStep()) {
103 | List watPoints = step.getWayPoints();
104 | if (watPoints != null) {
105 | List points = new ArrayList();
106 | if (lastStepLastPoint != null) {
107 | points.add(lastStepLastPoint);
108 | }
109 | points.addAll(watPoints);
110 | overlayList.add(new PolylineOptions().points(points).width(10)
111 | .color(getLineColor() != 0 ? getLineColor() : Color.argb(178, 0, 78, 255)).zIndex(0));
112 | lastStepLastPoint = watPoints.get(watPoints.size() - 1);
113 | }
114 | }
115 |
116 | }
117 |
118 | return overlayList;
119 | }
120 |
121 | /**
122 | * 覆写此方法以改变默认起点图标
123 | *
124 | * @return 起点图标
125 | */
126 | public BitmapDescriptor getStartMarker() {
127 | return null;
128 | }
129 | public int getLineColor() {
130 | return 0;
131 | }
132 | /**
133 | * 覆写此方法以改变默认终点图标
134 | *
135 | * @return 终点图标
136 | */
137 | public BitmapDescriptor getTerminalMarker() {
138 | return null;
139 | }
140 |
141 | /**
142 | * 处理点击事件
143 | *
144 | * @param i
145 | * 被点击的step在
146 | * {@link WalkingRouteLine#getAllStep()}
147 | * 中的索引
148 | * @return 是否处理了该点击事件
149 | */
150 | public boolean onRouteNodeClick(int i) {
151 | if (mRouteLine.getAllStep() != null
152 | && mRouteLine.getAllStep().get(i) != null) {
153 | Log.i("baidumapsdk", "WalkingRouteOverlay onRouteNodeClick");
154 | }
155 | return false;
156 | }
157 |
158 | @Override
159 | public final boolean onMarkerClick(Marker marker) {
160 | for (Overlay mMarker : mOverlayList) {
161 | if (mMarker instanceof Marker && mMarker.equals(marker)) {
162 | if (marker.getExtraInfo() != null) {
163 | onRouteNodeClick(marker.getExtraInfo().getInt("index"));
164 | }
165 | }
166 | }
167 | return true;
168 | }
169 |
170 | @Override
171 | public boolean onPolylineClick(Polyline polyline) {
172 | // TODO Auto-generated method stub
173 | return false;
174 | }
175 | }
176 |
--------------------------------------------------------------------------------
/app/src/main/java/com/example/map/overlayutil/package.html:
--------------------------------------------------------------------------------
1 | 提供一些基于基础覆盖而组合而成的高级覆盖物,包括用于显示poi数据,规划路线,公交详情路线的覆盖物
--------------------------------------------------------------------------------
/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_base_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_base_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_bikenavi_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_bikenavi_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_map_for_bikenavi_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_map_for_bikenavi_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_map_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/arm64-v8a/libBaiduMapSDK_map_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/arm64-v8a/libapp_BaiduPanoramaAppLib.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/arm64-v8a/libapp_BaiduPanoramaAppLib.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/arm64-v8a/liblocSDK8a.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/arm64-v8a/liblocSDK8a.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_base_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_base_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_bikenavi_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_bikenavi_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_map_for_bikenavi_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_map_for_bikenavi_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_map_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/armeabi-v7a/libBaiduMapSDK_map_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi-v7a/libapp_BaiduPanoramaAppLib.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/armeabi-v7a/libapp_BaiduPanoramaAppLib.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi-v7a/liblocSDK8a.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/armeabi-v7a/liblocSDK8a.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi/libBaiduMapSDK_base_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/armeabi/libBaiduMapSDK_base_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi/libBaiduMapSDK_bikenavi_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/armeabi/libBaiduMapSDK_bikenavi_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi/libBaiduMapSDK_map_for_bikenavi_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/armeabi/libBaiduMapSDK_map_for_bikenavi_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi/libBaiduMapSDK_map_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/armeabi/libBaiduMapSDK_map_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi/libapp_BaiduPanoramaAppLib.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/armeabi/libapp_BaiduPanoramaAppLib.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/armeabi/liblocSDK8a.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/armeabi/liblocSDK8a.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86/libBaiduMapSDK_base_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/x86/libBaiduMapSDK_base_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86/libBaiduMapSDK_bikenavi_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/x86/libBaiduMapSDK_bikenavi_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86/libBaiduMapSDK_map_for_bikenavi_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/x86/libBaiduMapSDK_map_for_bikenavi_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86/libBaiduMapSDK_map_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/x86/libBaiduMapSDK_map_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86/libapp_BaiduPanoramaAppLib.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/x86/libapp_BaiduPanoramaAppLib.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86/liblocSDK8a.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/x86/liblocSDK8a.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86_64/libBaiduMapSDK_base_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/x86_64/libBaiduMapSDK_base_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86_64/libBaiduMapSDK_bikenavi_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/x86_64/libBaiduMapSDK_bikenavi_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86_64/libBaiduMapSDK_map_for_bikenavi_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/x86_64/libBaiduMapSDK_map_for_bikenavi_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86_64/libBaiduMapSDK_map_v6_1_0.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/x86_64/libBaiduMapSDK_map_v6_1_0.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86_64/libapp_BaiduPanoramaAppLib.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/x86_64/libapp_BaiduPanoramaAppLib.so
--------------------------------------------------------------------------------
/app/src/main/jniLibs/x86_64/liblocSDK8a.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/jniLibs/x86_64/liblocSDK8a.so
--------------------------------------------------------------------------------
/app/src/main/res/anim/slide_in_above.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/slide_in_bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/slide_out_above.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/slide_out_bottom.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
14 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/slide_out_left.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/anim/slide_out_right.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
13 |
14 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/bottom_tab_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/bottom_tab_bg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/button_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/button_down.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/button_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/button_on.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/customer_back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/customer_back.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/glass.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/glass.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/ground_overlay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/ground_overlay.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_en.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_en.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_gcoding.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_gcoding.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_geo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_geo.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_marka.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_marka.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_markb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_markb.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_markc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_markc.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_markd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_markd.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_marke.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_marke.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_markf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_markf.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_markg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_markg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_markh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_markh.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_marki.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_marki.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_markj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_markj.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/icon_st.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/icon_st.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/next_.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/next_.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/next_down_.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/next_down_.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/popup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/popup.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/popup_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/popup_down.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/popup_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/popup_left.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/popup_middle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/popup_middle.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/popup_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/popup_right.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/popup_side.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/popup_side.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/pre_.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/pre_.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/pre_down_.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/pre_down_.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-ldpi/search_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable-ldpi/search_icon.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/back_btn_select.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 |
7 |
8 |
9 |
10 |
11 | -
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_tab_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/bottom_tab_bg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_text_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_text_press.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/bottom_text_select.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/button_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/button_down.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/button_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/button_on.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/creat_normal_edittext.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | android:shape="rectangle">
4 |
5 |
10 |
11 |
16 |
17 |
18 |
19 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/customer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/customer.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/customer_back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/customer_back.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/findroute_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
12 |
13 |
18 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/findroute_press.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/findroute_select.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/glass.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/glass.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/go_button.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/go_button_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/go_button_press.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ground_overlay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/ground_overlay.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_en.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_en.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_gcoding.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_gcoding.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_geo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_geo.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_marka.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_marka.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_markb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_markb.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_markc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_markc.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_markd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_markd.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_marke.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_marke.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_markf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_markf.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_markg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_markg.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_markh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_markh.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_marki.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_marki.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_markj.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_markj.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_st.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/icon_st.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/login_background_div.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
16 |
17 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/luopan_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | android:shape="rectangle">
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/luopan_press.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | android:shape="rectangle">
4 |
5 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/luopan_seclect.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/next_.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/next_.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/next_down_.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/next_down_.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/official.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/official.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/order_unread.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/order_unread.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/popup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/popup.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/popup_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/popup_down.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/popup_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/popup_left.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/popup_middle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/popup_middle.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/popup_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/popup_right.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/popup_side.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/popup_side.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/pre_.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/pre_.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/pre_down_.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/pre_down_.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/radio_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/radio_blue.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/radio_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/radio_red.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/rectangle_radius_fen.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/region.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/region.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/school.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/school.jpg
--------------------------------------------------------------------------------
/app/src/main/res/drawable/search_icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/search_icon.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/setting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/setting.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/sub_account.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/sub_account.png
--------------------------------------------------------------------------------
/app/src/main/res/drawable/title_text_press.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/title_text_select.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/transparent_mask.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 |
7 |
8 |
9 | -
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/transtmode_normal.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/transtmode_press.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/transtmode_select.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -
5 |
6 | -
7 |
8 | -
9 |
10 |
11 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/user.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/drawable/user.png
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
14 |
15 |
22 |
23 |
30 |
31 |
32 |
39 |
46 |
47 |
48 |
49 |
50 |
51 |
56 |
57 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main2.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
23 |
24 |
30 |
31 |
32 |
37 |
38 |
39 |
47 |
48 |
56 |
57 |
65 |
66 |
67 |
68 |
79 |
80 |
87 |
88 |
98 |
99 |
108 |
109 |
119 |
120 |
131 |
132 |
144 |
145 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/nav_header.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
15 |
16 |
24 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/text_bubble.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
12 |
13 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/customer_info.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/customer_login.xml:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/customer_menu.xml:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/driver_info.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/driver_login.xml:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/driver_menu.xml:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/main_login.xml:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/my_location.xml:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/nav_menu.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/route_guide.xml:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/menu/view_page.xml:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/customer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-hdpi/customer.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/icon_en.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-hdpi/icon_en.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/icon_st.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-hdpi/icon_st.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/popup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-hdpi/popup.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/next_.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-mdpi/next_.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/official.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-mdpi/official.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/pre_.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-mdpi/pre_.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/radio_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-mdpi/radio_blue.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/radio_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-mdpi/radio_red.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/region.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-xxhdpi/region.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Dawn
5 | Hello world!
6 | Settings
7 | 乘客登录
8 | 司机登录
9 | Dawn
10 | 司机
11 | MyLocation
12 | 路线规划
13 | ViewPage
14 |
15 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
20 |
21 |
22 |
25 |
26 |
27 |
31 |
32 |
35 |
36 |
41 |
42 |
52 |
53 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/network_security_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/app/src/test/java/com/example/map/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.example.map;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 |
8 | }
9 | dependencies {
10 | classpath 'com.android.tools.build:gradle:3.5.0'
11 |
12 | // NOTE: Do not place your application dependencies here; they belong
13 | // in the individual module build.gradle files
14 | }
15 | }
16 |
17 | allprojects {
18 | repositories {
19 | google()
20 | jcenter()
21 |
22 | }
23 | }
24 |
25 | task clean(type: Delete) {
26 | delete rootProject.buildDir
27 | }
28 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Automatically convert third-party libraries to use AndroidX
19 | android.enableJetifier=true
20 |
21 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Mon Dec 16 15:24:50 CST 2019
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/hs_err_pid25268.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Later-max/Android-SDK-Map/d41c9f0144720a12a911875725ac20a6b9e1f482/hs_err_pid25268.log
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 | rootProject.name='Map'
3 |
--------------------------------------------------------------------------------