Browse Source

路径规划开发完成

huyuguo 5 years ago
parent
commit
93954bc746

+ 81 - 14
app/src/main/java/com/electric/chargingpile/activity/RoutePlanMapActivity.java

97
import com.electric.chargingpile.data.Zhan;
97
import com.electric.chargingpile.data.Zhan;
98
import com.electric.chargingpile.data.ZhanData;
98
import com.electric.chargingpile.data.ZhanData;
99
import com.electric.chargingpile.data.zhan_list;
99
import com.electric.chargingpile.data.zhan_list;
100
import com.electric.chargingpile.fragment.RoutePlanMapScreenDialogFragment;
100
import com.electric.chargingpile.gen.DaoMaster;
101
import com.electric.chargingpile.gen.DaoMaster;
101
import com.electric.chargingpile.gen.DaoSession;
102
import com.electric.chargingpile.gen.DaoSession;
102
import com.electric.chargingpile.gen.zhan_listDao;
103
import com.electric.chargingpile.gen.zhan_listDao;
149
 * 类说明:
150
 * 类说明:
150
 */
151
 */
151
152
152
public class RoutePlanMapActivity extends Activity implements LocationSource, AMapLocationListener, AMap.OnMapLoadedListener, AMap.OnCameraChangeListener, View.OnClickListener, AMap.OnMarkerClickListener, AMap.OnMapClickListener, GeocodeSearch.OnGeocodeSearchListener, AMapNaviListener, CompoundButton.OnCheckedChangeListener, AMap.InfoWindowAdapter {
153
public class RoutePlanMapActivity extends Activity implements LocationSource, AMapLocationListener, AMap.OnMapLoadedListener, AMap.OnCameraChangeListener, View.OnClickListener, AMap.OnMarkerClickListener, AMap.OnMapClickListener, GeocodeSearch.OnGeocodeSearchListener, AMapNaviListener, AMap.InfoWindowAdapter {
153
    private static final String TAG = "RoutePlanMapActivity";
154
    private static final String TAG = "RoutePlanMapActivity";
154
    NaviLatLng endLatlng;
155
    NaviLatLng endLatlng;
155
    NaviLatLng startLatlng;
156
    NaviLatLng startLatlng;
156
    NaviLatLng zhongLatlng;
157
    NaviLatLng zhongLatlng;
157
    NaviLatLng zhongLatlng1;
158
    NaviLatLng zhongLatlng1;
158
    private Switch switch_highway;
159
    List<NaviLatLng> startList = new ArrayList<NaviLatLng>();
159
    List<NaviLatLng> startList = new ArrayList<NaviLatLng>();
160
    List<NaviLatLng> endList = new ArrayList<NaviLatLng>();
160
    List<NaviLatLng> endList = new ArrayList<NaviLatLng>();
161
    List<NaviLatLng> zhongList = new ArrayList<NaviLatLng>();
161
    List<NaviLatLng> zhongList = new ArrayList<NaviLatLng>();
223
    public static final int REQUSET = 11;
223
    public static final int REQUSET = 11;
224
    private RoueteInfoAdapter roueteInfoAdapter;
224
    private RoueteInfoAdapter roueteInfoAdapter;
225
    private float mLastTimeY;
225
    private float mLastTimeY;
226
    private TextView shaixuan_label;
226
227
227
    public void setEndLatlng(NaviLatLng endLatlng) {
228
    public void setEndLatlng(NaviLatLng endLatlng) {
228
        this.endLatlng = endLatlng;
229
        this.endLatlng = endLatlng;
247
    private android.view.animation.Animation animation;
248
    private android.view.animation.Animation animation;
248
    private String save_start_name = "", save_end_name = "";
249
    private String save_start_name = "", save_end_name = "";
249
    private String save_id = "";
250
    private String save_id = "";
250
    private boolean isHighWay = false;
251
    private TextView tvOpen, tvRouteTips;
251
    private TextView tvOpen, tvRouteTips;
252
    private RelativeLayout llOpenView;
252
    private RelativeLayout llOpenView;
253
    List<RoutePointInfo> routePointInfoList = new ArrayList<>();
253
    List<RoutePointInfo> routePointInfoList = new ArrayList<>();
268
    private boolean canRefreshMarker = true;
268
    private boolean canRefreshMarker = true;
269
    private Marker currentMarker;
269
    private Marker currentMarker;
270
    private List<Marker> currentMarkersList = new ArrayList<>();
270
    private List<Marker> currentMarkersList = new ArrayList<>();
271
271
    private Boolean[] screenList = new Boolean[4];
272
    private Boolean screenListChanged = false;
272
273
273
    @Override
274
    @Override
274
    protected void onCreate(Bundle savedInstanceState) {
275
    protected void onCreate(Bundle savedInstanceState) {
290
        initViews();
291
        initViews();
291
        initMap();
292
        initMap();
292
293
294
        for (int i = 0; i < screenList.length; i++) {
295
            screenList[i] = false;
296
        }
293
    }
297
    }
294
298
295
    private void initViews() {
299
    private void initViews() {
305
        ivListStatus = findViewById(R.id.iv_list_status);
309
        ivListStatus = findViewById(R.id.iv_list_status);
306
        lvRouteInfo = findViewById(R.id.lv_route_info);
310
        lvRouteInfo = findViewById(R.id.lv_route_info);
307
        llOpenView = findViewById(R.id.ll_openView);
311
        llOpenView = findViewById(R.id.ll_openView);
312
        findViewById(R.id.shaixuan_btn).setOnClickListener(this);
313
        shaixuan_label = findViewById(R.id.shaixuan_label);
308
314
309
        activity_route_plan.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {
315
        activity_route_plan.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {
310
            @Override
316
            @Override
350
            }
356
            }
351
        });
357
        });
352
358
353
        switch_highway = findViewById(R.id.switch_highway);
354
        switch_highway.setOnCheckedChangeListener(this);
355
356
        tv_zhan_num = (TextView) findViewById(R.id.tv_zhan_num);
359
        tv_zhan_num = (TextView) findViewById(R.id.tv_zhan_num);
357
//        tv_screenShot = (TextView) findViewById(R.id.tv_screenShot);
360
//        tv_screenShot = (TextView) findViewById(R.id.tv_screenShot);
358
//        tv_screenShot.setOnClickListener(this);
361
//        tv_screenShot.setOnClickListener(this);
1258
        DaoSession daoSession = daoMaster.newSession();
1261
        DaoSession daoSession = daoMaster.newSession();
1259
        zhan_listDao zhan_listDao = daoSession.getZhan_listDao();
1262
        zhan_listDao zhan_listDao = daoSession.getZhan_listDao();
1260
        try {
1263
        try {
1261
            if (isHighWay == true) {
1262
                zhanDataList = zhan_listDao.queryRaw("where status = ? and suit_car != '特斯拉' and zhuang_num = '2'", new String[]{"4"});
1264
            // own_pay 1:可支付(红包站点) 2:不可支付
1265
            // stop_cost like '%免费%'
1266
            // fast_num > '0'
1267
            // zhuang_num 1:酒店 2:高速 4:景点
1268
            if (screenListChanged) {
1269
                String where = "where status = ? and suit_car != '特斯拉'";
1270
                if (screenList[0]) {
1271
                    where += " and own_pay = 1";
1272
                }
1273
                if (screenList[1]) {
1274
                    where += " and stop_cost like '%免费%'";
1275
                }
1276
                if (screenList[2]) {
1277
                    where += " and fast_num > '0'";
1278
                }
1279
                if (screenList[3]) {
1280
                    where += " and zhuang_num = '2'";
1281
1282
                }
1283
                zhanDataList = zhan_listDao.queryRaw(where, new String[]{"4"});
1263
            } else {
1284
            } else {
1264
                zhanDataList = zhan_listDao.queryRaw("where status = ? and suit_car != '特斯拉'", new String[]{"4"});
1285
                zhanDataList = zhan_listDao.queryRaw("where status = ? and suit_car != '特斯拉'", new String[]{"4"});
1265
            }
1286
            }
1955
    @Override
1976
    @Override
1956
    public void onClick(View v) {
1977
    public void onClick(View v) {
1957
        switch (v.getId()) {
1978
        switch (v.getId()) {
1979
            case R.id.shaixuan_btn: // 筛选
1980
                RoutePlanMapScreenDialogFragment routePlanMapScreenDialogFragment = RoutePlanMapScreenDialogFragment.newInstance(screenList);
1981
                routePlanMapScreenDialogFragment.show(getFragmentManager(), "筛选");
1982
                routePlanMapScreenDialogFragment.setOnDismissDialogFragmentListener(new RoutePlanMapScreenDialogFragment.OnRoutePlanMapScreenDialogFragmentListener() {
1983
                    @Override
1984
                    public void onDismiss(Boolean[] changedScreenList) {
1985
                        Boolean changed = false;
1986
                        int selectedCount = 0;
1987
                        for (int i = 0; i < changedScreenList.length; i++) {
1988
                            if (changedScreenList[i] != screenList[i]) {
1989
                                changed = true;
1990
                            }
1991
                            screenList[i] = changedScreenList[i];
1992
                            if (changedScreenList[i]) {
1993
                                selectedCount++;
1994
                            }
1995
                        }
1996
1997
                        screenListChanged = changed;
1998
1999
                        if (changed) {
2000
                            if (selectedCount == 0) {
2001
                                shaixuan_label.setText("全部显示");
2002
                            } else {
2003
                                for (int i = 0; i < changedScreenList.length; i++) {
2004
                                    if (changedScreenList[i]) {
2005
                                        String t = "";
2006
                                        if (i==0){
2007
                                            t = "红包站点";
2008
                                        } else if (i == 1) {
2009
                                            t = "免费停车";
2010
                                        } else if (i == 2) {
2011
                                            t = "快充站点";
2012
                                        } else {
2013
                                            t = "高速站点";
2014
                                        }
2015
                                        if (selectedCount == 1) {
2016
                                            shaixuan_label.setText(t);
2017
                                        } else {
2018
                                            shaixuan_label.setText(t + "...");
2019
                                        }
2020
                                        break;
2021
                                    }
2022
                                }
2023
                            }
2024
                            screenChanged();
2025
                        }
2026
                    }
2027
                });
2028
                break;
1958
            case R.id.rl_route_tip:
2029
            case R.id.rl_route_tip:
1959
                ivListStatus.setImageResource(R.drawable.icon_route_list_open);
2030
                ivListStatus.setImageResource(R.drawable.icon_route_list_open);
1960
                tvOpen.setText("显示地图");
2031
                tvOpen.setText("显示地图");
3420
    }
3491
    }
3421
3492
3422
3493
3423
    @Override
3424
    public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
3425
3494
    public void screenChanged() {
3426
        MobclickAgent.onEvent(getApplicationContext(), "0310");
3495
        MobclickAgent.onEvent(getApplicationContext(), "0310");
3427
3428
        isHighWay = b;
3429
        list_zhan.clear();
3496
        list_zhan.clear();
3430
        zhanDataList.clear();
3497
        zhanDataList.clear();
3431
        routeOne.clear();
3498
        routeOne.clear();

+ 162 - 0
app/src/main/java/com/electric/chargingpile/fragment/RoutePlanMapScreenDialogFragment.java

1
package com.electric.chargingpile.fragment;
2
3
import android.app.Dialog;
4
import android.app.DialogFragment;
5
import android.content.DialogInterface;
6
import android.os.Bundle;
7
import android.support.constraint.ConstraintLayout;
8
import android.view.Gravity;
9
import android.view.View;
10
import android.view.Window;
11
import android.view.WindowManager;
12
import android.widget.ImageView;
13
14
import com.electric.chargingpile.R;
15
import com.electric.chargingpile.util.LogUtils;
16
import com.mabeijianxi.smallvideorecord2.Log;
17
18
public class RoutePlanMapScreenDialogFragment extends DialogFragment implements View.OnClickListener {
19
20
    private Dialog mDialog;
21
    private OnRoutePlanMapScreenDialogFragmentListener dialogFragmentListener;
22
    private Boolean[] changedScreenList;
23
    private ConstraintLayout first_left;
24
    private ImageView first_left_icon;
25
    private ConstraintLayout first_center;
26
    private ImageView first_center_icon;
27
    private ConstraintLayout first_right;
28
    private ImageView first_right_icon;
29
    private ConstraintLayout second_left;
30
    private ImageView second_left_icon;
31
32
    public static RoutePlanMapScreenDialogFragment newInstance(Boolean[] screenList) {
33
        Bundle args = new Bundle();
34
        args.putSerializable("screenList", screenList);
35
        RoutePlanMapScreenDialogFragment fragment = new RoutePlanMapScreenDialogFragment();
36
        fragment.setArguments(args);
37
        return fragment;
38
    }
39
40
    @Override
41
    public Dialog onCreateDialog(Bundle savedInstanceState) {
42
43
        mDialog = new Dialog(getActivity(), R.style.CommentDialog);
44
        mDialog.setCancelable(true);
45
        mDialog.setCanceledOnTouchOutside(true);
46
47
        mDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
48
        mDialog.setContentView(R.layout.fragment_dialog_route_plan_map_screen);
49
50
        Window window = mDialog.getWindow();
51
        WindowManager.LayoutParams layoutParams = window.getAttributes();
52
        // 布局属性位于整个窗口底部
53
        layoutParams.gravity = Gravity.BOTTOM;
54
        // 布局属性宽度填充整个窗口,默认是有margin的
55
        layoutParams.width = WindowManager.LayoutParams.MATCH_PARENT;
56
        window.setAttributes(layoutParams);
57
58
        initDialog();
59
        initListener();
60
61
        return mDialog;
62
    }
63
64
    private void initDialog() {
65
        Boolean[] screenList = (Boolean[]) getArguments().getSerializable("screenList");
66
        int length = screenList.length;
67
        changedScreenList = new Boolean[length];
68
        for (int i = 0; i < length; i++) {
69
            changedScreenList[i] = screenList[i];
70
        }
71
72
        first_left = mDialog.findViewById(R.id.first_left);
73
        first_left_icon = mDialog.findViewById(R.id.first_left_icon);
74
        first_center = mDialog.findViewById(R.id.first_center);
75
        first_center_icon = mDialog.findViewById(R.id.first_center_icon);
76
        first_right = mDialog.findViewById(R.id.first_right);
77
        first_right_icon = mDialog.findViewById(R.id.first_right_icon);
78
79
        second_left = mDialog.findViewById(R.id.second_left);
80
        second_left_icon = mDialog.findViewById(R.id.second_left_icon);
81
82
        updateScreenIcon();
83
84
    }
85
86
    private void initListener() {
87
        mDialog.findViewById(R.id.screen_close).setOnClickListener(this);
88
        first_left.setOnClickListener(this);
89
        first_center.setOnClickListener(this);
90
        first_right.setOnClickListener(this);
91
        second_left.setOnClickListener(this);
92
    }
93
94
    private void updateScreenIcon() {
95
        if (changedScreenList[0]) {
96
            first_left_icon.setImageResource(R.drawable.shaixuan_icon_red_paper_selected);
97
        } else {
98
            first_left_icon.setImageResource(R.drawable.shaixuan_icon_red_paper_normal);
99
        }
100
101
        if (changedScreenList[1]) {
102
            first_center_icon.setImageResource(R.drawable.shaixuan_icon_free_park_selected);
103
        } else {
104
            first_center_icon.setImageResource(R.drawable.shaixuan_icon_free_park_normal);
105
        }
106
107
        if (changedScreenList[2]) {
108
            first_right_icon.setImageResource(R.drawable.shaixuan_icon_quick_charge_selected);
109
        } else {
110
            first_right_icon.setImageResource(R.drawable.shaixuan_icon_quick_charge_normal);
111
        }
112
113
        if (changedScreenList[3]) {
114
            second_left_icon.setImageResource(R.drawable.shaixuan_icon_gaosu_selected);
115
        } else {
116
            second_left_icon.setImageResource(R.drawable.shaixuan_icon_gaosu_normal);
117
        }
118
119
    }
120
121
    @Override
122
    public void onDismiss(DialogInterface dialog) {
123
        super.onDismiss(dialog);
124
        if (dialogFragmentListener != null) {
125
            dialogFragmentListener.onDismiss(changedScreenList);
126
        }
127
128
    }
129
130
    @Override
131
    public void onClick(View v) {
132
        switch (v.getId()) {
133
            case R.id.screen_close:
134
                dismiss();
135
                break;
136
            case R.id.first_left:
137
                changedScreenList[0] = !changedScreenList[0];
138
                updateScreenIcon();
139
                break;
140
            case R.id.first_center:
141
                changedScreenList[1] = !changedScreenList[1];
142
                updateScreenIcon();
143
                break;
144
            case R.id.first_right:
145
                changedScreenList[2] = !changedScreenList[2];
146
                updateScreenIcon();
147
                break;
148
            case R.id.second_left:
149
                changedScreenList[3] = !changedScreenList[3];
150
                updateScreenIcon();
151
                break;
152
        }
153
    }
154
155
    public interface OnRoutePlanMapScreenDialogFragmentListener {
156
        void onDismiss(Boolean[] changedScreenList);
157
    }
158
159
    public void setOnDismissDialogFragmentListener(OnRoutePlanMapScreenDialogFragmentListener listener) {
160
        this.dialogFragmentListener = listener;
161
    }
162
}

+ 74 - 119
app/src/main/res/layout/activity_route_plan_map.xml

40
            android:paddingLeft="15dp"
40
            android:paddingLeft="15dp"
41
            android:paddingRight="15dp"
41
            android:paddingRight="15dp"
42
            android:src="@drawable/icon_shared1124" />
42
            android:src="@drawable/icon_shared1124" />
43
44
        <!--<TextView-->
45
        <!--android:id="@+id/tv_setting"-->
46
        <!--android:layout_width="wrap_content"-->
47
        <!--android:layout_height="match_parent"-->
48
        <!--android:text="偏好"-->
49
        <!--android:textColor="@color/lvse"-->
50
        <!--android:gravity="center"-->
51
        <!--android:textSize="15sp"-->
52
        <!--android:paddingLeft="44px"-->
53
        <!--android:paddingRight="44px"-->
54
        <!--android:layout_alignParentRight="true"/>-->
55
56
    </RelativeLayout>
43
    </RelativeLayout>
57
44
58
    <View
45
    <View
67
        android:layout_width="match_parent"
54
        android:layout_width="match_parent"
68
        android:layout_height="match_parent"
55
        android:layout_height="match_parent"
69
        android:layout_below="@+id/view_title"
56
        android:layout_below="@+id/view_title"
70
        android:paddingBottom="@dimen/activity_vertical_margin"
71
        android:paddingLeft="@dimen/activity_horizontal_margin"
57
        android:paddingLeft="@dimen/activity_horizontal_margin"
72
        android:paddingRight="@dimen/activity_horizontal_margin"
73
        android:paddingTop="@dimen/activity_vertical_margin"
58
        android:paddingTop="@dimen/activity_vertical_margin"
74
        android:visibility="gone"
75
        tools:context="com.example.navigationsdk.IndexActivity">
76
59
        android:paddingRight="@dimen/activity_horizontal_margin"
60
        android:paddingBottom="@dimen/activity_vertical_margin"
61
        android:visibility="gone">
77
62
78
        <Button
63
        <Button
79
            android:id="@+id/start"
64
            android:id="@+id/start"
115
            android:id="@+id/enter_extend_activity"
100
            android:id="@+id/enter_extend_activity"
116
            android:layout_width="wrap_content"
101
            android:layout_width="wrap_content"
117
            android:layout_height="50dp"
102
            android:layout_height="50dp"
118
            android:layout_alignParentLeft="true"
119
            android:layout_below="@+id/start"
103
            android:layout_below="@+id/start"
104
            android:layout_alignParentLeft="true"
120
            android:onClick="goToEmulateActivity"
105
            android:onClick="goToEmulateActivity"
121
            android:text="进入模拟导航" />
106
            android:text="进入模拟导航" />
122
107
147
            android:layout_width="match_parent"
132
            android:layout_width="match_parent"
148
            android:layout_height="36dp"
133
            android:layout_height="36dp"
149
            android:layout_marginLeft="10dp"
134
            android:layout_marginLeft="10dp"
150
            android:layout_marginRight="10dp"
151
            android:layout_marginTop="8dp"
135
            android:layout_marginTop="8dp"
136
            android:layout_marginRight="10dp"
152
            android:background="@drawable/bg_route_tips"
137
            android:background="@drawable/bg_route_tips"
153
            android:visibility="gone">
138
            android:visibility="gone">
154
139
185
            android:id="@+id/iv_setting"
170
            android:id="@+id/iv_setting"
186
            android:layout_width="wrap_content"
171
            android:layout_width="wrap_content"
187
            android:layout_height="wrap_content"
172
            android:layout_height="wrap_content"
188
            android:layout_alignParentRight="true"
189
            android:layout_below="@+id/rl_route_tip"
173
            android:layout_below="@+id/rl_route_tip"
190
            android:layout_marginRight="10dp"
174
            android:layout_alignParentRight="true"
191
            android:layout_marginTop="16dp"
175
            android:layout_marginTop="16dp"
176
            android:layout_marginRight="10dp"
192
            android:src="@drawable/icon_setting_route" />
177
            android:src="@drawable/icon_setting_route" />
193
178
194
        <View
179
        <View
223
                    android:layout_alignParentLeft="true"
208
                    android:layout_alignParentLeft="true"
224
                    android:layout_alignParentTop="true"
209
                    android:layout_alignParentTop="true"
225
                    android:layout_marginLeft="24px"
210
                    android:layout_marginLeft="24px"
226
                    android:layout_marginRight="16px"
227
                    android:layout_marginTop="25px"
211
                    android:layout_marginTop="25px"
212
                    android:layout_marginRight="16px"
228
                    android:layout_toLeftOf="@+id/tv_distance"
213
                    android:layout_toLeftOf="@+id/tv_distance"
229
                    android:ellipsize="end"
214
                    android:ellipsize="end"
230
                    android:singleLine="true"
215
                    android:singleLine="true"
236
                    android:id="@+id/tv_distance"
221
                    android:id="@+id/tv_distance"
237
                    android:layout_width="wrap_content"
222
                    android:layout_width="wrap_content"
238
                    android:layout_height="wrap_content"
223
                    android:layout_height="wrap_content"
239
                    android:layout_alignParentRight="true"
240
                    android:layout_alignTop="@+id/tv_route_name"
224
                    android:layout_alignTop="@+id/tv_route_name"
225
                    android:layout_alignParentRight="true"
241
                    android:gravity="right"
226
                    android:gravity="right"
242
                    android:text="300m"
227
                    android:text="300m"
243
                    android:textColor="@color/ui_68"
228
                    android:textColor="@color/ui_68"
247
                    android:layout_width="match_parent"
232
                    android:layout_width="match_parent"
248
                    android:layout_height="wrap_content"
233
                    android:layout_height="wrap_content"
249
                    android:layout_alignParentBottom="true"
234
                    android:layout_alignParentBottom="true"
250
                    android:layout_marginBottom="28px"
251
                    android:layout_marginLeft="24px"
235
                    android:layout_marginLeft="24px"
236
                    android:layout_marginBottom="28px"
252
                    android:orientation="horizontal">
237
                    android:orientation="horizontal">
253
238
254
                    <TextView
239
                    <TextView
303
                android:layout_width="wrap_content"
288
                android:layout_width="wrap_content"
304
                android:layout_height="152px"
289
                android:layout_height="152px"
305
                android:layout_alignParentRight="true"
290
                android:layout_alignParentRight="true"
306
                android:background="@drawable/icon_route_plus">
307
308
                <!--<LinearLayout-->
309
                <!--android:layout_width="wrap_content"-->
310
                <!--android:layout_height="wrap_content"-->
311
                <!--android:orientation="vertical"-->
312
                <!--android:layout_centerInParent="true"-->
313
                <!--android:gravity="center_horizontal">-->
314
315
                <!--<ImageView-->
316
                <!--android:layout_width="wrap_content"-->
317
                <!--android:layout_height="wrap_content"-->
318
                <!--android:src="@drawable/icon_routelogo"/>-->
319
320
                <!--<TextView-->
321
                <!--android:layout_width="wrap_content"-->
322
                <!--android:layout_height="wrap_content"-->
323
                <!--android:text="途经点"-->
324
                <!--android:textSize="10sp"-->
325
                <!--android:textColor="@color/white"-->
326
                <!--android:layout_marginTop="7px"/>-->
327
328
                <!--</LinearLayout>-->
329
330
            </com.zhy.autolayout.AutoRelativeLayout>
291
                android:background="@drawable/icon_route_plus" />
331
292
332
        </com.zhy.autolayout.AutoRelativeLayout>
293
        </com.zhy.autolayout.AutoRelativeLayout>
333
294
334
        <LinearLayout
295
        <LinearLayout
335
            android:layout_width="wrap_content"
336
            android:layout_height="32dp"
337
            android:layout_alignParentBottom="true"
296
            android:id="@+id/shaixuan_btn"
297
            android:layout_width="100dp"
298
            android:layout_height="38dp"
338
            android:layout_alignParentRight="true"
299
            android:layout_alignParentRight="true"
339
            android:layout_marginBottom="10dp"
340
            android:layout_marginRight="16dp"
300
            android:layout_alignParentBottom="true"
301
            android:layout_marginRight="10dp"
302
            android:layout_marginBottom="20dp"
341
            android:background="@drawable/bg_route_highway"
303
            android:background="@drawable/bg_route_highway"
304
            android:gravity="center_vertical"
342
            android:orientation="horizontal">
305
            android:orientation="horizontal">
343
306
344
            <TextView
307
            <ImageView
345
                android:layout_width="wrap_content"
308
                android:layout_width="wrap_content"
346
                android:layout_height="wrap_content"
309
                android:layout_height="wrap_content"
347
                android:layout_gravity="center_vertical"
348
                android:layout_marginLeft="10dp"
310
                android:layout_marginLeft="10dp"
349
                android:text="只看高速站点"
350
                android:textColor="@color/ui_62"
351
                android:textSize="13sp" />
311
                android:src="@drawable/shaixuan_icon_cursor" />
352
312
353
            <Switch
354
                android:id="@+id/switch_highway"
313
            <TextView
314
                android:id="@+id/shaixuan_label"
355
                android:layout_width="wrap_content"
315
                android:layout_width="wrap_content"
356
                android:layout_height="wrap_content"
316
                android:layout_height="wrap_content"
357
                android:layout_gravity="center_vertical"
358
                android:layout_marginLeft="2dp"
359
                android:layout_marginRight="3dp"
360
                android:switchPadding="0dp"
361
                android:theme="@style/mySwitch" />
362
363
317
                android:layout_marginLeft="5dp"
318
                android:text="显示全部"
319
                android:textColor="#222222"
320
                android:textSize="13sp" />
364
        </LinearLayout>
321
        </LinearLayout>
365
322
366
    </RelativeLayout>
323
    </RelativeLayout>
392
            <com.zhy.autolayout.AutoRelativeLayout
349
            <com.zhy.autolayout.AutoRelativeLayout
393
                android:id="@+id/rl_route1"
350
                android:id="@+id/rl_route1"
394
                android:layout_width="0dp"
351
                android:layout_width="0dp"
395
                android:layout_weight="1"
396
                android:layout_height="match_parent"
352
                android:layout_height="match_parent"
353
                android:layout_weight="1"
397
                android:background="@color/white">
354
                android:background="@color/white">
398
355
399
                <com.zhy.autolayout.AutoLinearLayout
356
                <com.zhy.autolayout.AutoLinearLayout
446
            <com.zhy.autolayout.AutoRelativeLayout
403
            <com.zhy.autolayout.AutoRelativeLayout
447
                android:id="@+id/rl_route2"
404
                android:id="@+id/rl_route2"
448
                android:layout_width="0dp"
405
                android:layout_width="0dp"
449
                android:layout_weight="1"
450
                android:layout_height="match_parent"
406
                android:layout_height="match_parent"
407
                android:layout_weight="1"
451
                android:background="@color/white">
408
                android:background="@color/white">
452
409
453
                <com.zhy.autolayout.AutoLinearLayout
410
                <com.zhy.autolayout.AutoLinearLayout
500
            <com.zhy.autolayout.AutoRelativeLayout
457
            <com.zhy.autolayout.AutoRelativeLayout
501
                android:id="@+id/rl_route3"
458
                android:id="@+id/rl_route3"
502
                android:layout_width="0dp"
459
                android:layout_width="0dp"
503
                android:layout_weight="1"
504
                android:layout_height="match_parent"
460
                android:layout_height="match_parent"
461
                android:layout_weight="1"
505
                android:background="@color/white">
462
                android:background="@color/white">
506
463
507
                <com.zhy.autolayout.AutoLinearLayout
464
                <com.zhy.autolayout.AutoLinearLayout
572
        android:id="@+id/ll"
529
        android:id="@+id/ll"
573
        android:layout_width="match_parent"
530
        android:layout_width="match_parent"
574
        android:layout_height="60dp"
531
        android:layout_height="60dp"
575
        android:layout_alignParentBottom="true"
576
        android:layout_alignParentLeft="true"
577
        android:layout_alignParentStart="true"
532
        android:layout_alignParentStart="true"
533
        android:layout_alignParentLeft="true"
534
        android:layout_alignParentBottom="true"
578
        android:background="@color/white"
535
        android:background="@color/white"
579
        android:visibility="visible">
536
        android:visibility="visible">
580
537
659
                android:layout_width="25dp"
616
                android:layout_width="25dp"
660
                android:layout_height="wrap_content"
617
                android:layout_height="wrap_content"
661
                android:layout_above="@+id/view_line"
618
                android:layout_above="@+id/view_line"
662
                android:layout_alignParentRight="true"
663
                android:layout_alignTop="@+id/rela"
619
                android:layout_alignTop="@+id/rela"
620
                android:layout_alignParentRight="true"
664
                android:layout_marginRight="5dp"
621
                android:layout_marginRight="5dp"
665
                android:drawablePadding="3dp"
622
                android:drawablePadding="3dp"
666
                android:gravity="center_horizontal"
623
                android:gravity="center_horizontal"
720
                    android:layout_width="match_parent"
677
                    android:layout_width="match_parent"
721
                    android:layout_height="wrap_content"
678
                    android:layout_height="wrap_content"
722
                    android:layout_marginLeft="15dp"
679
                    android:layout_marginLeft="15dp"
723
                    android:layout_marginRight="15dp"
724
                    android:layout_marginTop="12dp"
680
                    android:layout_marginTop="12dp"
681
                    android:layout_marginRight="15dp"
725
                    android:layout_toLeftOf="@+id/tv_daohang"
682
                    android:layout_toLeftOf="@+id/tv_daohang"
726
                    android:ellipsize="end"
683
                    android:ellipsize="end"
727
                    android:singleLine="true"
684
                    android:singleLine="true"
734
                    android:id="@+id/ll_kuaiman"
691
                    android:id="@+id/ll_kuaiman"
735
                    android:layout_width="match_parent"
692
                    android:layout_width="match_parent"
736
                    android:layout_height="wrap_content"
693
                    android:layout_height="wrap_content"
737
                    android:layout_alignParentLeft="true"
738
                    android:layout_alignParentStart="true"
739
                    android:layout_below="@+id/detail_name"
694
                    android:layout_below="@+id/detail_name"
695
                    android:layout_alignParentStart="true"
696
                    android:layout_alignParentLeft="true"
740
                    android:layout_marginLeft="15dp"
697
                    android:layout_marginLeft="15dp"
741
                    android:layout_marginRight="15dp"
742
                    android:layout_marginTop="12dp"
698
                    android:layout_marginTop="12dp"
699
                    android:layout_marginRight="15dp"
743
                    android:orientation="horizontal">
700
                    android:orientation="horizontal">
744
701
745
                    <TextView
702
                    <TextView
746
                        android:id="@+id/tv_juli"
703
                        android:id="@+id/tv_juli"
747
                        android:layout_width="wrap_content"
704
                        android:layout_width="wrap_content"
748
                        android:layout_height="wrap_content"
705
                        android:layout_height="wrap_content"
749
                        android:layout_alignParentRight="true"
750
                        android:layout_alignTop="@+id/tv_fastNum"
706
                        android:layout_alignTop="@+id/tv_fastNum"
707
                        android:layout_alignParentRight="true"
751
                        android:text="共10个"
708
                        android:text="共10个"
752
                        android:textAppearance="?android:attr/textAppearanceSmall"
709
                        android:textAppearance="?android:attr/textAppearanceSmall"
753
                        android:textColor="@color/hintColor"
710
                        android:textColor="@color/hintColor"
806
                    android:id="@+id/relativeLayout2"
763
                    android:id="@+id/relativeLayout2"
807
                    android:layout_width="match_parent"
764
                    android:layout_width="match_parent"
808
                    android:layout_height="wrap_content"
765
                    android:layout_height="wrap_content"
809
                    android:layout_alignLeft="@+id/ll_kuaiman"
810
                    android:layout_alignStart="@+id/ll_kuaiman"
811
                    android:layout_below="@+id/b_fast"
766
                    android:layout_below="@+id/b_fast"
812
                    android:layout_marginRight="15dp"
813
                    android:layout_marginTop="8dp">
767
                    android:layout_alignStart="@+id/ll_kuaiman"
768
                    android:layout_alignLeft="@+id/ll_kuaiman"
769
                    android:layout_marginTop="8dp"
770
                    android:layout_marginRight="15dp">
814
771
815
772
816
                    <ImageView
773
                    <ImageView
817
                        android:id="@+id/imageView9"
774
                        android:id="@+id/imageView9"
818
                        android:layout_width="wrap_content"
775
                        android:layout_width="wrap_content"
819
                        android:layout_height="wrap_content"
776
                        android:layout_height="wrap_content"
820
                        android:layout_alignParentLeft="true"
821
                        android:layout_alignParentStart="true"
777
                        android:layout_alignParentStart="true"
778
                        android:layout_alignParentLeft="true"
822
                        android:layout_alignParentTop="true"
779
                        android:layout_alignParentTop="true"
823
                        android:layout_marginTop="3dp"
780
                        android:layout_marginTop="3dp"
824
                        android:src="@drawable/icon_paoqian1105" />
781
                        android:src="@drawable/icon_paoqian1105" />
897
                        android:id="@+id/textView28"
854
                        android:id="@+id/textView28"
898
                        android:layout_width="wrap_content"
855
                        android:layout_width="wrap_content"
899
                        android:layout_height="wrap_content"
856
                        android:layout_height="wrap_content"
900
                        android:layout_alignLeft="@+id/textView27"
901
                        android:layout_alignStart="@+id/textView27"
902
                        android:layout_below="@+id/textView27"
857
                        android:layout_below="@+id/textView27"
858
                        android:layout_alignStart="@+id/textView27"
859
                        android:layout_alignLeft="@+id/textView27"
903
                        android:layout_marginTop="4dp"
860
                        android:layout_marginTop="4dp"
904
                        android:ellipsize="end"
861
                        android:ellipsize="end"
905
                        android:singleLine="true"
862
                        android:singleLine="true"
912
                        android:id="@+id/tv_park"
869
                        android:id="@+id/tv_park"
913
                        android:layout_width="match_parent"
870
                        android:layout_width="match_parent"
914
                        android:layout_height="wrap_content"
871
                        android:layout_height="wrap_content"
915
                        android:layout_alignLeft="@+id/tv_charge"
916
                        android:layout_alignStart="@+id/tv_charge"
872
                        android:layout_alignStart="@+id/tv_charge"
873
                        android:layout_alignLeft="@+id/tv_charge"
917
                        android:layout_alignTop="@+id/textView28"
874
                        android:layout_alignTop="@+id/textView28"
918
                        android:ellipsize="marquee"
875
                        android:ellipsize="marquee"
919
                        android:marqueeRepeatLimit="marquee_forever"
876
                        android:marqueeRepeatLimit="marquee_forever"
936
                    android:id="@+id/tv_address"
893
                    android:id="@+id/tv_address"
937
                    android:layout_width="wrap_content"
894
                    android:layout_width="wrap_content"
938
                    android:layout_height="wrap_content"
895
                    android:layout_height="wrap_content"
939
                    android:layout_alignLeft="@+id/relativeLayout2"
940
                    android:layout_alignStart="@+id/relativeLayout2"
941
                    android:layout_below="@+id/v32"
896
                    android:layout_below="@+id/v32"
897
                    android:layout_alignStart="@+id/relativeLayout2"
898
                    android:layout_alignLeft="@+id/relativeLayout2"
942
                    android:layout_marginTop="14dp"
899
                    android:layout_marginTop="14dp"
943
                    android:drawableLeft="@drawable/icon_costway0314"
900
                    android:drawableLeft="@drawable/icon_costway0314"
944
                    android:drawablePadding="8dp"
901
                    android:drawablePadding="8dp"
963
                    android:id="@+id/tv_daohang"
920
                    android:id="@+id/tv_daohang"
964
                    android:layout_width="wrap_content"
921
                    android:layout_width="wrap_content"
965
                    android:layout_height="wrap_content"
922
                    android:layout_height="wrap_content"
966
                    android:layout_alignParentRight="true"
967
                    android:layout_alignTop="@+id/detail_name"
923
                    android:layout_alignTop="@+id/detail_name"
924
                    android:layout_alignParentRight="true"
968
                    android:layout_marginRight="15dp"
925
                    android:layout_marginRight="15dp"
969
                    android:drawableLeft="@drawable/icon_daohang0314"
926
                    android:drawableLeft="@drawable/icon_daohang0314"
970
                    android:drawablePadding="6dp"
927
                    android:drawablePadding="6dp"
1008
                        android:drawableLeft="@drawable/icon_go0314"
965
                        android:drawableLeft="@drawable/icon_go0314"
1009
                        android:drawablePadding="8dp"
966
                        android:drawablePadding="8dp"
1010
                        android:gravity="center"
967
                        android:gravity="center"
1011
                        android:paddingBottom="5dp"
1012
                        android:paddingTop="5dp"
968
                        android:paddingTop="5dp"
969
                        android:paddingBottom="5dp"
1013
                        android:text="去这里"
970
                        android:text="去这里"
1014
                        android:textColor="@color/title_row"
971
                        android:textColor="@color/title_row"
1015
                        android:textSize="16sp"
972
                        android:textSize="16sp"
1021
                    android:id="@+id/line_fenge1"
978
                    android:id="@+id/line_fenge1"
1022
                    android:layout_width="0.5dp"
979
                    android:layout_width="0.5dp"
1023
                    android:layout_height="match_parent"
980
                    android:layout_height="match_parent"
1024
                    android:layout_marginBottom="8dp"
1025
                    android:layout_marginTop="8dp"
981
                    android:layout_marginTop="8dp"
982
                    android:layout_marginBottom="8dp"
1026
                    android:background="#c5c9ce"
983
                    android:background="#c5c9ce"
1027
                    android:visibility="gone" />
984
                    android:visibility="gone" />
1028
985
1040
                        android:drawableLeft="@drawable/icon_details0314"
997
                        android:drawableLeft="@drawable/icon_details0314"
1041
                        android:drawablePadding="8dp"
998
                        android:drawablePadding="8dp"
1042
                        android:gravity="center"
999
                        android:gravity="center"
1043
                        android:paddingBottom="5dp"
1044
                        android:paddingTop="5dp"
1000
                        android:paddingTop="5dp"
1001
                        android:paddingBottom="5dp"
1045
                        android:text="详情"
1002
                        android:text="详情"
1046
                        android:textColor="@color/title_row"
1003
                        android:textColor="@color/title_row"
1047
                        android:textSize="16sp" />
1004
                        android:textSize="16sp" />
1052
                    android:id="@+id/line_fenge"
1009
                    android:id="@+id/line_fenge"
1053
                    android:layout_width="0.5dp"
1010
                    android:layout_width="0.5dp"
1054
                    android:layout_height="match_parent"
1011
                    android:layout_height="match_parent"
1055
                    android:layout_marginBottom="8dp"
1056
                    android:layout_marginTop="8dp"
1012
                    android:layout_marginTop="8dp"
1013
                    android:layout_marginBottom="8dp"
1057
                    android:background="#dddddd" />
1014
                    android:background="#dddddd" />
1058
1015
1059
                <com.zhy.autolayout.AutoRelativeLayout
1016
                <com.zhy.autolayout.AutoRelativeLayout
1076
                            android:drawableLeft="@drawable/icon_comment0314"
1033
                            android:drawableLeft="@drawable/icon_comment0314"
1077
                            android:drawablePadding="8dp"
1034
                            android:drawablePadding="8dp"
1078
                            android:gravity="center"
1035
                            android:gravity="center"
1079
                            android:paddingBottom="5dp"
1080
                            android:paddingTop="5dp"
1036
                            android:paddingTop="5dp"
1037
                            android:paddingBottom="5dp"
1081
                            android:text="评论"
1038
                            android:text="评论"
1082
                            android:textColor="@color/title_row"
1039
                            android:textColor="@color/title_row"
1083
                            android:textSize="16sp" />
1040
                            android:textSize="16sp" />
1104
        android:id="@+id/tv_notice"
1061
        android:id="@+id/tv_notice"
1105
        android:layout_width="match_parent"
1062
        android:layout_width="match_parent"
1106
        android:layout_height="38dp"
1063
        android:layout_height="38dp"
1107
        android:layout_alignParentLeft="true"
1108
        android:layout_alignParentStart="true"
1109
        android:layout_below="@+id/view_title"
1064
        android:layout_below="@+id/view_title"
1065
        android:layout_alignParentStart="true"
1066
        android:layout_alignParentLeft="true"
1110
        android:background="@drawable/bg_notice1105"
1067
        android:background="@drawable/bg_notice1105"
1111
        android:orientation="horizontal"
1068
        android:orientation="horizontal"
1112
        android:visibility="gone">
1069
        android:visibility="gone">
1127
            android:id="@+id/iv_close"
1084
            android:id="@+id/iv_close"
1128
            android:layout_width="wrap_content"
1085
            android:layout_width="wrap_content"
1129
            android:layout_height="match_parent"
1086
            android:layout_height="match_parent"
1087
            android:layout_alignParentTop="true"
1130
            android:layout_alignParentEnd="true"
1088
            android:layout_alignParentEnd="true"
1131
            android:layout_alignParentRight="true"
1089
            android:layout_alignParentRight="true"
1132
            android:layout_alignParentTop="true"
1133
            android:paddingLeft="25px"
1090
            android:paddingLeft="25px"
1134
            android:paddingRight="25px"
1091
            android:paddingRight="25px"
1135
            android:src="@drawable/icon_close1105" />
1092
            android:src="@drawable/icon_close1105" />
1141
        android:id="@+id/rl_yinying"
1098
        android:id="@+id/rl_yinying"
1142
        android:layout_width="match_parent"
1099
        android:layout_width="match_parent"
1143
        android:layout_height="match_parent"
1100
        android:layout_height="match_parent"
1144
        android:layout_alignParentBottom="true"
1145
        android:layout_alignParentTop="true"
1101
        android:layout_alignParentTop="true"
1102
        android:layout_alignParentBottom="true"
1146
        android:background="@drawable/bg_yinying531"
1103
        android:background="@drawable/bg_yinying531"
1147
        android:visibility="gone">
1104
        android:visibility="gone">
1148
1105
1160
                android:layout_height="wrap_content"
1117
                android:layout_height="wrap_content"
1161
                android:layout_gravity="center_horizontal"
1118
                android:layout_gravity="center_horizontal"
1162
                android:layout_marginTop="15dp"
1119
                android:layout_marginTop="15dp"
1163
                android:scaleType="centerCrop"
1164
                android:background="@drawable/bg_route_tujingdian" />
1165
1166
                <TextView
1167
                    android:id="@+id/tv_iknow"
1168
                    android:layout_width="match_parent"
1169
                    android:layout_height="44dp"
1170
                    android:layout_centerInParent="true"
1171
                    android:background="@color/lvse"
1172
                    android:layout_margin="15dp"
1173
                    android:gravity="center"
1174
                    android:text="我知道了"
1175
                    android:textColor="@color/white"
1176
                    android:textSize="16sp" />
1120
                android:background="@drawable/bg_route_tujingdian"
1121
                android:scaleType="centerCrop" />
1177
1122
1123
            <TextView
1124
                android:id="@+id/tv_iknow"
1125
                android:layout_width="match_parent"
1126
                android:layout_height="44dp"
1127
                android:layout_centerInParent="true"
1128
                android:layout_margin="15dp"
1129
                android:background="@color/lvse"
1130
                android:gravity="center"
1131
                android:text="我知道了"
1132
                android:textColor="@color/white"
1133
                android:textSize="16sp" />
1178
1134
1179
1135
1180
        </LinearLayout>
1136
        </LinearLayout>
1217
                android:layout_width="match_parent"
1173
                android:layout_width="match_parent"
1218
                android:layout_height="match_parent"
1174
                android:layout_height="match_parent"
1219
                android:layout_alignParentTop="true"
1175
                android:layout_alignParentTop="true"
1220
                android:background="@drawable/bg_yinying_yuanjiao"/>
1176
                android:background="@drawable/bg_yinying_yuanjiao" />
1221
1177
1222
            <RelativeLayout
1178
            <RelativeLayout
1223
                android:id="@+id/relativeLayout4"
1179
                android:id="@+id/relativeLayout4"
1224
                android:layout_width="match_parent"
1180
                android:layout_width="match_parent"
1225
                android:layout_height="116dp"
1181
                android:layout_height="116dp"
1226
                android:layout_alignParentBottom="true"
1182
                android:layout_alignParentBottom="true"
1227
                android:layout_marginBottom="10dp"
1228
                android:layout_marginLeft="10dp"
1183
                android:layout_marginLeft="10dp"
1229
                android:layout_marginRight="10dp"
1184
                android:layout_marginRight="10dp"
1185
                android:layout_marginBottom="10dp"
1230
                android:background="@drawable/bg_share_text">
1186
                android:background="@drawable/bg_share_text">
1231
1187
1232
                <RelativeLayout
1188
                <RelativeLayout
1278
                <RelativeLayout
1234
                <RelativeLayout
1279
                    android:layout_width="match_parent"
1235
                    android:layout_width="match_parent"
1280
                    android:layout_height="match_parent"
1236
                    android:layout_height="match_parent"
1281
                    android:layout_alignParentBottom="true"
1282
                    android:layout_below="@+id/v_1">
1237
                    android:layout_below="@+id/v_1"
1238
                    android:layout_alignParentBottom="true">
1283
1239
1284
                    <ImageView
1240
                    <ImageView
1285
                        android:id="@+id/iv_1"
1241
                        android:id="@+id/iv_1"
1386
    </LinearLayout>
1342
    </LinearLayout>
1387
1343
1388
1344
1389
1390
    <RelativeLayout
1345
    <RelativeLayout
1391
        android:id="@+id/rl_point"
1346
        android:id="@+id/rl_point"
1392
        android:layout_width="80dp"
1347
        android:layout_width="80dp"

+ 286 - 0
app/src/main/res/layout/fragment_dialog_route_plan_map_screen.xml

1
<?xml version="1.0" encoding="utf-8"?>
2
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    xmlns:app="http://schemas.android.com/apk/res-auto"
4
    xmlns:tools="http://schemas.android.com/tools"
5
    android:layout_width="match_parent"
6
    android:layout_height="match_parent">
7
8
    <android.support.constraint.ConstraintLayout
9
        android:layout_width="0dp"
10
        android:layout_height="240dp"
11
        android:background="#ffffff"
12
        app:layout_constraintBottom_toBottomOf="parent"
13
        app:layout_constraintEnd_toEndOf="parent"
14
        app:layout_constraintStart_toStartOf="parent"
15
        tools:background="#f9e498">
16
17
        <android.support.constraint.ConstraintLayout
18
            android:id="@+id/top_bar"
19
            android:layout_width="match_parent"
20
            android:layout_height="40dp"
21
            app:layout_constraintLeft_toLeftOf="parent"
22
            app:layout_constraintRight_toRightOf="parent"
23
            app:layout_constraintTop_toTopOf="parent"
24
            tools:background="#008272">
25
26
            <TextView
27
                android:layout_width="wrap_content"
28
                android:layout_height="wrap_content"
29
                android:text="站点筛选"
30
                android:textColor="#222222"
31
                android:textSize="16sp"
32
                app:layout_constraintBottom_toBottomOf="parent"
33
                app:layout_constraintLeft_toLeftOf="parent"
34
                app:layout_constraintRight_toRightOf="parent"
35
                app:layout_constraintTop_toTopOf="parent" />
36
37
            <LinearLayout
38
                android:id="@+id/screen_close"
39
                android:layout_width="45dp"
40
                android:layout_height="match_parent"
41
                android:gravity="center"
42
                app:layout_constraintBottom_toBottomOf="parent"
43
                app:layout_constraintRight_toRightOf="parent"
44
                app:layout_constraintTop_toTopOf="parent"
45
                tools:background="#668eaa">
46
47
                <ImageView
48
                    android:layout_width="wrap_content"
49
                    android:layout_height="wrap_content"
50
                    android:src="@drawable/shaixuan_icon_close" />
51
            </LinearLayout>
52
53
54
            <View
55
                android:layout_width="match_parent"
56
                android:layout_height="0.5dp"
57
                android:background="#E6E6E6"
58
                app:layout_constraintBottom_toBottomOf="parent"
59
                app:layout_constraintLeft_toLeftOf="parent"
60
                app:layout_constraintRight_toRightOf="parent" />
61
        </android.support.constraint.ConstraintLayout>
62
63
        <android.support.constraint.ConstraintLayout
64
            android:id="@+id/first_row"
65
            android:layout_width="match_parent"
66
            android:layout_height="90dp"
67
            android:layout_marginLeft="15dp"
68
            android:layout_marginRight="15dp"
69
            app:layout_constraintLeft_toLeftOf="parent"
70
            app:layout_constraintRight_toRightOf="parent"
71
            app:layout_constraintTop_toBottomOf="@+id/top_bar"
72
            tools:background="#d8582b">
73
74
            <!-- 红包站点 -->
75
            <android.support.constraint.ConstraintLayout
76
                android:id="@+id/first_left"
77
                android:layout_width="0dp"
78
                android:layout_height="90dp"
79
                app:layout_constraintBottom_toBottomOf="parent"
80
                app:layout_constraintHorizontal_weight="1"
81
                app:layout_constraintLeft_toLeftOf="parent"
82
                app:layout_constraintRight_toLeftOf="@+id/first_center"
83
                app:layout_constraintTop_toTopOf="parent">
84
85
                <ImageView
86
                    android:id="@+id/first_left_icon"
87
                    android:layout_width="wrap_content"
88
                    android:layout_height="wrap_content"
89
                    android:layout_marginTop="15dp"
90
                    android:src="@drawable/shaixuan_icon_red_paper_normal"
91
                    app:layout_constraintLeft_toLeftOf="parent"
92
                    app:layout_constraintRight_toRightOf="parent"
93
                    app:layout_constraintTop_toTopOf="parent" />
94
95
                <TextView
96
                    android:layout_width="wrap_content"
97
                    android:layout_height="wrap_content"
98
                    android:layout_marginBottom="15dp"
99
                    android:text="红包站点"
100
                    android:textColor="#222222"
101
                    android:textSize="12sp"
102
                    app:layout_constraintBottom_toBottomOf="parent"
103
                    app:layout_constraintLeft_toLeftOf="parent"
104
                    app:layout_constraintRight_toRightOf="parent" />
105
106
                <View
107
                    android:layout_width="0.5dp"
108
                    android:layout_height="match_parent"
109
                    android:layout_marginTop="20dp"
110
                    android:layout_marginBottom="20dp"
111
                    android:background="#e6e6e6"
112
                    app:layout_constraintBottom_toBottomOf="parent"
113
                    app:layout_constraintRight_toRightOf="parent"
114
                    app:layout_constraintTop_toTopOf="parent" />
115
            </android.support.constraint.ConstraintLayout>
116
117
            <!-- 免费停车 -->
118
            <android.support.constraint.ConstraintLayout
119
                android:id="@+id/first_center"
120
                android:layout_width="0dp"
121
                android:layout_height="90dp"
122
                app:layout_constraintBottom_toBottomOf="parent"
123
                app:layout_constraintHorizontal_weight="1"
124
                app:layout_constraintLeft_toRightOf="@+id/first_left"
125
                app:layout_constraintRight_toLeftOf="@+id/first_right"
126
                app:layout_constraintTop_toTopOf="parent"
127
                tools:background="#31577a">
128
129
                <ImageView
130
                    android:id="@+id/first_center_icon"
131
                    android:layout_width="wrap_content"
132
                    android:layout_height="wrap_content"
133
                    android:layout_marginTop="15dp"
134
                    android:src="@drawable/shaixuan_icon_free_park_normal"
135
                    app:layout_constraintLeft_toLeftOf="parent"
136
                    app:layout_constraintRight_toRightOf="parent"
137
                    app:layout_constraintTop_toTopOf="parent" />
138
139
                <TextView
140
                    android:layout_width="wrap_content"
141
                    android:layout_height="wrap_content"
142
                    android:layout_marginBottom="15dp"
143
                    android:text="免费停车"
144
                    android:textColor="#222222"
145
                    android:textSize="12sp"
146
                    app:layout_constraintBottom_toBottomOf="parent"
147
                    app:layout_constraintLeft_toLeftOf="parent"
148
                    app:layout_constraintRight_toRightOf="parent" />
149
150
                <View
151
                    android:layout_width="0.5dp"
152
                    android:layout_height="match_parent"
153
                    android:layout_marginTop="20dp"
154
                    android:layout_marginBottom="20dp"
155
                    android:background="#e6e6e6"
156
                    app:layout_constraintBottom_toBottomOf="parent"
157
                    app:layout_constraintRight_toRightOf="parent"
158
                    app:layout_constraintTop_toTopOf="parent" />
159
            </android.support.constraint.ConstraintLayout>
160
161
            <!-- 快充站点 -->
162
            <android.support.constraint.ConstraintLayout
163
                android:id="@+id/first_right"
164
                android:layout_width="0dp"
165
                android:layout_height="90dp"
166
                app:layout_constraintBottom_toBottomOf="parent"
167
                app:layout_constraintHorizontal_weight="1"
168
                app:layout_constraintLeft_toRightOf="@+id/first_center"
169
                app:layout_constraintRight_toRightOf="parent"
170
                app:layout_constraintTop_toTopOf="parent">
171
172
                <ImageView
173
                    android:id="@+id/first_right_icon"
174
                    android:layout_width="wrap_content"
175
                    android:layout_height="wrap_content"
176
                    android:layout_marginTop="15dp"
177
                    android:src="@drawable/shaixuan_icon_quick_charge_normal"
178
                    app:layout_constraintLeft_toLeftOf="parent"
179
                    app:layout_constraintRight_toRightOf="parent"
180
                    app:layout_constraintTop_toTopOf="parent" />
181
182
                <TextView
183
                    android:layout_width="wrap_content"
184
                    android:layout_height="wrap_content"
185
                    android:layout_marginBottom="15dp"
186
                    android:text="快充站点"
187
                    android:textColor="#222222"
188
                    android:textSize="12sp"
189
                    app:layout_constraintBottom_toBottomOf="parent"
190
                    app:layout_constraintLeft_toLeftOf="parent"
191
                    app:layout_constraintRight_toRightOf="parent" />
192
193
            </android.support.constraint.ConstraintLayout>
194
195
        </android.support.constraint.ConstraintLayout>
196
197
        <android.support.constraint.ConstraintLayout
198
            android:id="@+id/second_row"
199
            android:layout_width="match_parent"
200
            android:layout_height="90dp"
201
            android:layout_marginLeft="15dp"
202
            android:layout_marginRight="15dp"
203
            app:layout_constraintLeft_toLeftOf="parent"
204
            app:layout_constraintRight_toRightOf="parent"
205
            app:layout_constraintTop_toBottomOf="@+id/first_row"
206
            tools:background="#a8bebe">
207
208
            <View
209
                android:layout_width="match_parent"
210
                android:layout_height="0.5dp"
211
                android:background="#e6e6e6"
212
                app:layout_constraintLeft_toLeftOf="parent"
213
                app:layout_constraintRight_toRightOf="parent"
214
                app:layout_constraintTop_toTopOf="parent" />
215
            <!-- 高速站点 -->
216
            <android.support.constraint.ConstraintLayout
217
                android:id="@+id/second_left"
218
                android:layout_width="0dp"
219
                android:layout_height="90dp"
220
                app:layout_constraintBottom_toBottomOf="parent"
221
                app:layout_constraintHorizontal_weight="1"
222
                app:layout_constraintLeft_toLeftOf="parent"
223
                app:layout_constraintRight_toLeftOf="@+id/second_center"
224
                app:layout_constraintTop_toTopOf="parent">
225
226
                <ImageView
227
                    android:id="@+id/second_left_icon"
228
                    android:layout_width="wrap_content"
229
                    android:layout_height="wrap_content"
230
                    android:layout_marginTop="15dp"
231
                    android:src="@drawable/shaixuan_icon_gaosu_normal"
232
                    app:layout_constraintLeft_toLeftOf="parent"
233
                    app:layout_constraintRight_toRightOf="parent"
234
                    app:layout_constraintTop_toTopOf="parent" />
235
236
                <TextView
237
                    android:layout_width="wrap_content"
238
                    android:layout_height="wrap_content"
239
                    android:layout_marginBottom="15dp"
240
                    android:text="高速站点"
241
                    android:textColor="#222222"
242
                    android:textSize="12sp"
243
                    app:layout_constraintBottom_toBottomOf="parent"
244
                    app:layout_constraintLeft_toLeftOf="parent"
245
                    app:layout_constraintRight_toRightOf="parent" />
246
247
                <View
248
                    android:layout_width="0.5dp"
249
                    android:layout_height="match_parent"
250
                    android:layout_marginTop="20dp"
251
                    android:layout_marginBottom="20dp"
252
                    android:background="#e6e6e6"
253
                    app:layout_constraintBottom_toBottomOf="parent"
254
                    app:layout_constraintRight_toRightOf="parent"
255
                    app:layout_constraintTop_toTopOf="parent" />
256
            </android.support.constraint.ConstraintLayout>
257
258
            <android.support.constraint.ConstraintLayout
259
                android:id="@+id/second_center"
260
                android:layout_width="0dp"
261
                android:layout_height="90dp"
262
                app:layout_constraintBottom_toBottomOf="parent"
263
                app:layout_constraintHorizontal_weight="1"
264
                app:layout_constraintLeft_toRightOf="@+id/second_left"
265
                app:layout_constraintRight_toLeftOf="@+id/second_right"
266
                app:layout_constraintTop_toTopOf="parent"
267
                tools:background="#31577a">
268
269
            </android.support.constraint.ConstraintLayout>
270
271
            <android.support.constraint.ConstraintLayout
272
                android:id="@+id/second_right"
273
                android:layout_width="0dp"
274
                android:layout_height="90dp"
275
                app:layout_constraintBottom_toBottomOf="parent"
276
                app:layout_constraintHorizontal_weight="1"
277
                app:layout_constraintLeft_toRightOf="@+id/second_center"
278
                app:layout_constraintRight_toRightOf="parent"
279
                app:layout_constraintTop_toTopOf="parent">
280
281
            </android.support.constraint.ConstraintLayout>
282
283
        </android.support.constraint.ConstraintLayout>
284
285
    </android.support.constraint.ConstraintLayout>
286
</android.support.constraint.ConstraintLayout>