Pārlūkot izejas kodu

私人桩管理修改完成

huyuguo 4 gadi atpakaļ
vecāks
revīzija
23ee57cce4

+ 40 - 39
app/src/main/java/com/electric/chargingpile/activity/PrivateZhaungListActivity.java

34
    public static PrivateZhuangListAdapter privateZhuangListAdapter;
34
    public static PrivateZhuangListAdapter privateZhuangListAdapter;
35
    int i = 0;
35
    int i = 0;
36
36
37
    private ArrayList<JSONObject> zhanList = new ArrayList<JSONObject>();
38
37
    @Override
39
    @Override
38
    protected void onCreate(Bundle savedInstanceState) {
40
    protected void onCreate(Bundle savedInstanceState) {
39
        super.onCreate(savedInstanceState);
41
        super.onCreate(savedInstanceState);
41
        BarColorUtil.initStatusBarColor(PrivateZhaungListActivity.this);
43
        BarColorUtil.initStatusBarColor(PrivateZhaungListActivity.this);
42
44
43
        initViews();
45
        initViews();
46
47
        privateZhuangListAdapter = new PrivateZhuangListAdapter(zhanList, MainApplication.context);
48
        listview.setAdapter(privateZhuangListAdapter);
44
    }
49
    }
45
50
46
    private void initViews() {
51
    private void initViews() {
63
        } catch (Exception e) {
68
        } catch (Exception e) {
64
            e.printStackTrace();
69
            e.printStackTrace();
65
        }
70
        }
66
        OkHttpUtils.get()
67
                .url(url)
68
                .build()
69
                .execute(new StringCallback() {
70
                    @Override
71
                    public void onError(Call call, Exception e) {
72
71
        OkHttpUtils.get().url(url).build().execute(new StringCallback() {
72
            @Override
73
            public void onError(Call call, Exception e) {
74
                e.printStackTrace();
75
            }
76
77
            @Override
78
            public void onResponse(String response) {
79
                String code = JsonUtils.getKeyResult(response, "code");
80
                if ("200".equals(code)) {
81
                    String list = JsonUtils.getKeyResult(response, "list");
82
                    ArrayList<JSONObject> datas = new ArrayList<JSONObject>();
83
                    JSONArray jsonArray = null;
84
                    try {
85
                        jsonArray = new JSONArray(list);
86
                    } catch (JSONException e) {
87
                        e.printStackTrace();
73
                    }
88
                    }
89
                    for (int j = 0; j < jsonArray.length(); j++) {
90
                        JSONObject jsonObject4 = (JSONObject) jsonArray.opt(j);
91
                        datas.add(jsonObject4);
92
                    }
93
94
                    if (datas.size() > 0) {
95
                        zhanList.addAll(datas);
96
                        privateZhuangListAdapter.notifyDataSetChanged();
74
97
75
                    @Override
76
                    public void onResponse(String response) {
77
                        String code = JsonUtils.getKeyResult(response, "code");
78
                        if ("200".equals(code)) {
79
                            String list = JsonUtils.getKeyResult(response, "list");
80
                            ArrayList<JSONObject> datas = new ArrayList<JSONObject>();
81
                            JSONArray jsonArray = null;
82
                            try {
83
                                jsonArray = new JSONArray(list);
84
                            } catch (JSONException e) {
85
                                e.printStackTrace();
86
                            }
87
                            datas.clear();
88
                            for (int j = 0; j < jsonArray.length(); j++) {
89
                                JSONObject jsonObject4 = (JSONObject) jsonArray
90
                                        .opt(j);
91
                                datas.add(jsonObject4);
92
                            }
93
94
                            if (datas.size() > 0) {
95
                                privateZhuangListAdapter = new PrivateZhuangListAdapter(datas, MainApplication.context);
96
                                listview.setAdapter(privateZhuangListAdapter);
97
                            } else {
98
                                Intent intent = new Intent(getApplicationContext(), PrivateZhuangInfoActivity.class);
99
                                intent.putExtra("tag", "add");
100
                                startActivity(intent);
101
                                overridePendingTransition(0, 0);
102
                                finish();
103
                            }
104
105
                        }
98
                    } else {
99
                        Intent intent = new Intent(getApplicationContext(), PrivateZhuangInfoActivity.class);
100
                        intent.putExtra("tag", "add");
101
                        startActivity(intent);
102
                        overridePendingTransition(0, 0);
103
                        finish();
106
                    }
104
                    }
107
                });
105
106
                }
107
            }
108
        });
108
    }
109
    }
109
110
110
    @Override
111
    @Override

+ 0 - 1
app/src/main/java/com/electric/chargingpile/activity/PrivateZhuangInfoActivity.java

216
                case 2:
216
                case 2:
217
                    Toast.makeText(PrivateZhuangInfoActivity.this, "提交信息成功,感谢您的分享", Toast.LENGTH_SHORT).show();
217
                    Toast.makeText(PrivateZhuangInfoActivity.this, "提交信息成功,感谢您的分享", Toast.LENGTH_SHORT).show();
218
                    dismissDialog();
218
                    dismissDialog();
219
                    startActivity(new Intent(getApplicationContext(), PrivateZhaungListActivity.class));
220
                    finish();
219
                    finish();
221
                    break;
220
                    break;
222
                case 3:
221
                case 3:

+ 57 - 73
app/src/main/java/com/electric/chargingpile/adapter/PrivateZhuangListAdapter.java

79
        if (convertView != null) {
79
        if (convertView != null) {
80
            holder = (ViewHolder) convertView.getTag();
80
            holder = (ViewHolder) convertView.getTag();
81
        } else {
81
        } else {
82
            convertView = LayoutInflater.from(parent.getContext()).inflate(
83
                    R.layout.item_private_zhuang_list, null);
82
            convertView = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_private_zhuang_list, null);
84
        }
83
        }
85
84
86
        if (holder == null) {
85
        if (holder == null) {
87
            holder = new ViewHolder();
86
            holder = new ViewHolder();
88
87
89
            holder.item_zhan_name = (TextView) convertView
90
                    .findViewById(R.id.item_zhan_name);
91
            holder.item_status = (TextView) convertView
92
                    .findViewById(R.id.item_status);
93
            holder.item_fast = (TextView) convertView
94
                    .findViewById(R.id.item_fast);
88
            holder.item_zhan_name = (TextView) convertView.findViewById(R.id.item_zhan_name);
89
            holder.item_status = (TextView) convertView.findViewById(R.id.item_status);
90
            holder.item_fast = (TextView) convertView.findViewById(R.id.item_fast);
95
            holder.item_slow = (TextView) convertView.findViewById(R.id.item_slow);
91
            holder.item_slow = (TextView) convertView.findViewById(R.id.item_slow);
96
            holder.item_control = (TextView) convertView.findViewById(R.id.item_control);
92
            holder.item_control = (TextView) convertView.findViewById(R.id.item_control);
97
            holder.item_edit = (TextView) convertView.findViewById(R.id.item_edit);
93
            holder.item_edit = (TextView) convertView.findViewById(R.id.item_edit);
98
            holder.item_zhan_address = (TextView) convertView
99
                    .findViewById(R.id.item_zhan_address);
94
            holder.item_zhan_address = (TextView) convertView.findViewById(R.id.item_zhan_address);
100
            holder.item_picnum = (TextView) convertView.findViewById(R.id.item_picnum);
95
            holder.item_picnum = (TextView) convertView.findViewById(R.id.item_picnum);
101
            holder.item_pic = (ImageView) convertView.findViewById(R.id.item_pic);
96
            holder.item_pic = (ImageView) convertView.findViewById(R.id.item_pic);
97
            holder.reason = convertView.findViewById(R.id.reason);
102
        }
98
        }
103
99
104
        if (holder != null && convertView != null) {
100
        if (holder != null && convertView != null) {
218
                    holder.item_edit.setOnClickListener(new View.OnClickListener() {
214
                    holder.item_edit.setOnClickListener(new View.OnClickListener() {
219
                        @Override
215
                        @Override
220
                        public void onClick(View v) {
216
                        public void onClick(View v) {
221
222
                            Intent intent = new Intent(finalConvertView.getContext(), PrivateZhuangInfoActivity.class);
217
                            Intent intent = new Intent(finalConvertView.getContext(), PrivateZhuangInfoActivity.class);
223
                            try {
218
                            try {
224
                                intent.putExtra("id", datas.get(position).getString("id"));
219
                                intent.putExtra("id", datas.get(position).getString("id"));
254
                    holder.item_control.setOnClickListener(new View.OnClickListener() {
249
                    holder.item_control.setOnClickListener(new View.OnClickListener() {
255
                        @Override
250
                        @Override
256
                        public void onClick(View v) {
251
                        public void onClick(View v) {
257
258
                            new com.electric.chargingpile.view.AlertDialog(finalConvertView2.getContext()).builder()
252
                            new com.electric.chargingpile.view.AlertDialog(finalConvertView2.getContext()).builder()
259
                                    .setMsg("是否下线您的充电桩")
253
                                    .setMsg("是否下线您的充电桩")
260
                                    .setPositiveButton("下线", new View.OnClickListener() {
254
                                    .setPositiveButton("下线", new View.OnClickListener() {
358
                        }
352
                        }
359
                    });
353
                    });
360
                    holder.item_control.setVisibility(View.GONE);
354
                    holder.item_control.setVisibility(View.GONE);
361
                }
362
355
356
                    String deny_inf = datas.get(position).getString("deny_inf");
357
                    if ("".equals(deny_inf)) {
358
                        holder.reason.setVisibility(View.GONE);
359
                    } else {
360
                        holder.reason.setVisibility(View.VISIBLE);
361
                        holder.reason.setText("原因:" + deny_inf);
362
                    }
363
                }
363
364
364
                holder.item_fast.setText(datas.get(position).getString("fast_num") + "个");
365
                holder.item_fast.setText(datas.get(position).getString("fast_num") + "个");
365
                holder.item_slow.setText(datas.get(position).getString("slow_num") + "个");
366
                holder.item_slow.setText(datas.get(position).getString("slow_num") + "个");
366
                holder.item_zhan_address.setText(datas.get(position).getString("zhan_address"));
367
                holder.item_zhan_address.setText(datas.get(position).getString("zhan_address"));
367
//                Log.e("pic===",datas.get(position).getString("pic"));
368
                holder.item_picnum.setText(datas.get(position).getString("pic_counts"));
368
                holder.item_picnum.setText(datas.get(position).getString("pic_counts"));
369
369
370
                if (!datas.get(position).getString("pic").equals("")) {
370
                if (!datas.get(position).getString("pic").equals("")) {
371
                    JSONArray jsonArray = new JSONArray(datas.get(position).getString("pic"));
371
                    JSONArray jsonArray = new JSONArray(datas.get(position).getString("pic"));
372
                    List<Pic> listPic = JsonUtils.parseToObjectList(datas.get(position).getString("pic"), Pic.class);
372
                    List<Pic> listPic = JsonUtils.parseToObjectList(datas.get(position).getString("pic"), Pic.class);
373
//                    Log.e("pic.size===", listPic.size() + "");
374
                    if (listPic.size() > 0) {
373
                    if (listPic.size() > 0) {
375
                        Picasso.with(MainApplication.context)
376
                                .load(MainApplication.url + "/zhannew/uploadfile/" + listPic.get(0).getUrl())
377
                                .into(holder.item_pic);
374
                        Picasso.with(MainApplication.context).load(MainApplication.url + "/zhannew/uploadfile/" + listPic.get(0).getUrl()).into(holder.item_pic);
378
                    }
375
                    }
379
                }
376
                }
380
377
387
    }
384
    }
388
385
389
    private class ViewHolder {
386
    private class ViewHolder {
390
        TextView item_zhan_name, item_status, item_fast, item_slow, item_zhan_address, item_control, item_picnum, item_edit;
387
        TextView item_zhan_name, item_status, item_fast, item_slow, item_zhan_address, item_control, item_picnum, item_edit, reason;
391
        ImageView item_pic;
388
        ImageView item_pic;
392
    }
389
    }
393
390
394
    private void changeStatus(String status, String zhan_id) {
391
    private void changeStatus(String status, String zhan_id) {
395
        String url = MainApplication.url + "/zhannew/basic/web/index.php/applist/setstatus?id=" + zhan_id + "&status=" + status + "&user_id=" + MainApplication.userId;
392
        String url = MainApplication.url + "/zhannew/basic/web/index.php/applist/setstatus?id=" + zhan_id + "&status=" + status + "&user_id=" + MainApplication.userId;
396
//        Log.e("changeStatus==",url);
397
        OkHttpUtils.get()
398
                .url(url)
399
                .build()
400
                .execute(new StringCallback() {
401
                    @Override
402
                    public void onError(Call call, Exception e) {
403
404
                    }
393
        OkHttpUtils.get().url(url).build().execute(new StringCallback() {
394
            @Override
395
            public void onError(Call call, Exception e) {
396
                e.printStackTrace();
397
            }
405
398
406
                    @Override
407
                    public void onResponse(String response) {
408
//                        Log.e(TAG, "onResponse: "+response );
409
                        String code = JsonUtils.getKeyResult(response, "code");
410
//                        Log.e("code===", code);
411
                        if (code.equals("200")) {
412
                            getListData();
413
                            notifyDataSetChanged();
414
                        }
415
                    }
416
                });
399
            @Override
400
            public void onResponse(String response) {
401
                String code = JsonUtils.getKeyResult(response, "code");
402
                if (code.equals("200")) {
403
                    getListData();
404
                    notifyDataSetChanged();
405
                }
406
            }
407
        });
417
408
418
    }
409
    }
419
410
427
        } catch (Exception e) {
418
        } catch (Exception e) {
428
            e.printStackTrace();
419
            e.printStackTrace();
429
        }
420
        }
430
        OkHttpUtils.get()
431
                .url(url)
432
                .build()
433
                .execute(new StringCallback() {
434
                    @Override
435
                    public void onError(Call call, Exception e) {
421
        OkHttpUtils.get().url(url).build().execute(new StringCallback() {
422
            @Override
423
            public void onError(Call call, Exception e) {
424
                e.printStackTrace();
425
            }
436
426
427
            @Override
428
            public void onResponse(String response) {
429
                String code = JsonUtils.getKeyResult(response, "code");
430
                if (code.equals("200")) {
431
                    String list = JsonUtils.getKeyResult(response, "list");
432
                    ArrayList<JSONObject> datas = new ArrayList<JSONObject>();
433
                    JSONArray jsonArray = null;
434
                    try {
435
                        jsonArray = new JSONArray(list);
436
                    } catch (JSONException e) {
437
                        e.printStackTrace();
438
                    }
439
                    datas.clear();
440
                    for (int j = 0; j < jsonArray.length(); j++) {
441
                        JSONObject jsonObject4 = (JSONObject) jsonArray.opt(j);
442
                        datas.add(jsonObject4);
437
                    }
443
                    }
438
444
439
                    @Override
440
                    public void onResponse(String response) {
441
//                        Log.e("response===",response);
442
                        String code = JsonUtils.getKeyResult(response, "code");
443
                        if (code.equals("200")) {
444
                            String list = JsonUtils.getKeyResult(response, "list");
445
                            ArrayList<JSONObject> datas = new ArrayList<JSONObject>();
446
                            JSONArray jsonArray = null;
447
                            try {
448
                                jsonArray = new JSONArray(list);
449
                            } catch (JSONException e) {
450
                                e.printStackTrace();
451
                            }
452
                            datas.clear();
453
                            for (int j = 0; j < jsonArray.length(); j++) {
454
                                JSONObject jsonObject4 = (JSONObject) jsonArray
455
                                        .opt(j);
456
                                datas.add(jsonObject4);
457
                            }
458
459
                            if (datas.size() > 0) {
460
//                                Toast.makeText(this,datas.size()+"",Toast.LENGTH_SHORT).show();
461
                                PrivateZhaungListActivity.privateZhuangListAdapter = new PrivateZhuangListAdapter(datas, MainApplication.context);
462
                                PrivateZhaungListActivity.listview.setAdapter(PrivateZhaungListActivity.privateZhuangListAdapter);
463
                            }
464
465
                        }
445
                    if (datas.size() > 0) {
446
                        PrivateZhaungListActivity.privateZhuangListAdapter = new PrivateZhuangListAdapter(datas, MainApplication.context);
447
                        PrivateZhaungListActivity.listview.setAdapter(PrivateZhaungListActivity.privateZhuangListAdapter);
466
                    }
448
                    }
467
                });
449
                }
450
            }
451
        });
468
    }
452
    }
469
453
470
}
454
}

+ 8 - 18
app/src/main/res/layout/activity_private_zhaung_list.xml

1
<?xml version="1.0" encoding="utf-8"?>
1
<?xml version="1.0" encoding="utf-8"?>
2
<com.zhy.autolayout.AutoRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2
<com.zhy.autolayout.AutoRelativeLayout 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"
3
    xmlns:tools="http://schemas.android.com/tools"
5
    android:id="@+id/activity_private_zhaung_list"
4
    android:id="@+id/activity_private_zhaung_list"
6
    android:layout_width="match_parent"
5
    android:layout_width="match_parent"
23
            android:layout_centerVertical="true"
22
            android:layout_centerVertical="true"
24
            android:contentDescription="@null"
23
            android:contentDescription="@null"
25
            android:paddingLeft="44px"
24
            android:paddingLeft="44px"
26
            android:paddingRight="44px"
27
            android:paddingTop="4dp"
25
            android:paddingTop="4dp"
26
            android:paddingRight="44px"
28
            android:paddingBottom="4dp"
27
            android:paddingBottom="4dp"
29
            android:src="@drawable/icon_lvback1119" />
28
            android:src="@drawable/icon_lvback1119" />
30
29
39
38
40
    </com.zhy.autolayout.AutoRelativeLayout>
39
    </com.zhy.autolayout.AutoRelativeLayout>
41
40
42
    <!--<View-->
43
        <!--android:id="@+id/v_title"-->
44
        <!--android:layout_width="match_parent"-->
45
        <!--android:layout_height="0.5dp"-->
46
        <!--android:background="@color/ui_line"-->
47
        <!--android:layout_below="@+id/rl_titleBar"/>-->
48
49
    <ListView
41
    <ListView
42
        android:id="@+id/listview"
50
        android:layout_width="match_parent"
43
        android:layout_width="match_parent"
51
        android:layout_height="match_parent"
44
        android:layout_height="match_parent"
52
        android:visibility="visible"
53
        android:id="@+id/listview"
45
        android:layout_above="@+id/tv_submit"
46
        android:layout_below="@+id/rl_titleBar"
54
        android:divider="@color/activity_bgcolor"
47
        android:divider="@color/activity_bgcolor"
55
        android:dividerHeight="10dp"
48
        android:dividerHeight="10dp"
56
        android:layout_below="@+id/rl_titleBar"
57
        android:layout_above="@+id/tv_submit"/>
49
        android:visibility="visible" />
58
50
59
    <TextView
51
    <TextView
60
        android:id="@+id/tv_submit"
52
        android:id="@+id/tv_submit"
62
        android:layout_height="127px"
54
        android:layout_height="127px"
63
        android:layout_alignParentBottom="true"
55
        android:layout_alignParentBottom="true"
64
        android:background="@color/lvse"
56
        android:background="@color/lvse"
57
        android:gravity="center"
65
        android:text="添加新站点"
58
        android:text="添加新站点"
66
        android:textSize="15sp"
67
        android:textColor="@color/white"
59
        android:textColor="@color/white"
68
        android:gravity="center"/>
69
70
60
        android:textSize="15sp" />
71
61
72
</com.zhy.autolayout.AutoRelativeLayout>
62
</com.zhy.autolayout.AutoRelativeLayout>

+ 2 - 3
app/src/main/res/layout/activity_private_zhuang_info.xml

273
                    android:layout_marginRight="44px"
273
                    android:layout_marginRight="44px"
274
                    android:layout_weight="5"
274
                    android:layout_weight="5"
275
                    android:background="@color/white"
275
                    android:background="@color/white"
276
                    android:editable="true"
277
                    android:gravity="center|right"
276
                    android:gravity="center|right"
278
                    android:hint="请以地名或建筑命名"
277
                    android:hint="请以小区名或具体位置命名"
279
                    android:singleLine="true"
278
                    android:singleLine="true"
280
                    android:text=""
279
                    android:text=""
281
                    android:textColor="@color/ui_62"
280
                    android:textColor="@color/ui_62"
341
                    android:drawablePadding="20px"
340
                    android:drawablePadding="20px"
342
                    android:ellipsize="end"
341
                    android:ellipsize="end"
343
                    android:gravity="center|right"
342
                    android:gravity="center|right"
344
                    android:hint="请选择"
343
                    android:hint="请选择(可精确到具体车位)"
345
                    android:singleLine="true"
344
                    android:singleLine="true"
346
                    android:text=""
345
                    android:text=""
347
                    android:textColor="@color/ui_62"
346
                    android:textColor="@color/ui_62"

+ 70 - 61
app/src/main/res/layout/item_private_zhuang_list.xml

1
<?xml version="1.0" encoding="utf-8"?>
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    xmlns:tools="http://schemas.android.com/tools"
3
    android:layout_width="match_parent"
4
    android:layout_width="match_parent"
4
    android:layout_height="wrap_content"
5
    android:layout_height="wrap_content"
5
    android:background="@color/white">
6
    android:background="@color/white">
8
        android:id="@+id/view3"
9
        android:id="@+id/view3"
9
        android:layout_width="match_parent"
10
        android:layout_width="match_parent"
10
        android:layout_height="0.5dp"
11
        android:layout_height="0.5dp"
11
        android:background="@color/ui_line"
12
        android:layout_alignParentTop="true" />
12
        android:layout_alignParentTop="true"
13
        android:background="@color/ui_line" />
13
14
14
    <RelativeLayout
15
    <RelativeLayout
15
        android:id="@+id/rl_img"
16
        android:id="@+id/rl_img"
16
        android:background="@drawable/bg_zhijiaohuibian"
17
        android:layout_width="100dp"
17
        android:layout_width="100dp"
18
        android:layout_height="71dp"
18
        android:layout_height="71dp"
19
        android:layout_below="@+id/view3"
19
        android:layout_below="@+id/view3"
20
        android:layout_marginTop="16dp"
21
        android:layout_marginLeft="16dp"
20
        android:layout_marginLeft="16dp"
21
        android:layout_marginTop="16dp"
22
        android:layout_marginRight="13dp"
22
        android:layout_marginBottom="15dp"
23
        android:layout_marginBottom="15dp"
23
        android:layout_marginRight="13dp">
24
        android:background="@drawable/bg_zhijiaohuibian">
24
25
25
        <ImageView
26
        <ImageView
26
            android:id="@+id/item_pic"
27
            android:id="@+id/item_pic"
28
            android:layout_height="match_parent" />
29
            android:layout_height="match_parent" />
29
30
30
        <TextView
31
        <TextView
31
            android:text="0"
32
            android:textSize="8sp"
33
            android:gravity="center"
34
            android:textColor="@color/white"
35
            android:background="@drawable/bg_yinying531"
32
            android:id="@+id/item_picnum"
36
            android:layout_width="58px"
33
            android:layout_width="58px"
37
            android:layout_height="35px"
34
            android:layout_height="35px"
38
            android:layout_alignBottom="@+id/item_pic"
39
            android:layout_alignRight="@+id/item_pic"
40
            android:layout_alignEnd="@+id/item_pic"
35
            android:layout_alignEnd="@+id/item_pic"
41
            android:id="@+id/item_picnum" />
36
            android:layout_alignRight="@+id/item_pic"
37
            android:layout_alignBottom="@+id/item_pic"
38
            android:background="@drawable/bg_yinying531"
39
            android:gravity="center"
40
            android:text="0"
41
            android:textColor="@color/white"
42
            android:textSize="8sp" />
42
43
43
44
44
    </RelativeLayout>
45
    </RelativeLayout>
45
46
46
47
47
48
49
50
51
    <LinearLayout
48
    <LinearLayout
52
        android:layout_width="match_parent"
49
        android:layout_width="match_parent"
53
        android:layout_height="match_parent"
50
        android:layout_height="match_parent"
54
        android:orientation="vertical"
51
        android:layout_alignTop="@+id/rl_img"
52
        android:layout_alignBottom="@+id/rl_img"
55
        android:layout_marginRight="16dp"
53
        android:layout_marginRight="16dp"
56
        android:layout_toRightOf="@+id/rl_img"
54
        android:layout_toRightOf="@+id/rl_img"
57
        android:layout_alignBottom="@+id/rl_img"
58
        android:layout_alignTop="@+id/rl_img">
55
        android:orientation="vertical">
59
56
60
        <RelativeLayout
57
        <RelativeLayout
61
            android:layout_width="match_parent"
58
            android:layout_width="match_parent"
66
                android:id="@+id/item_zhan_name"
63
                android:id="@+id/item_zhan_name"
67
                android:layout_width="wrap_content"
64
                android:layout_width="wrap_content"
68
                android:layout_height="match_parent"
65
                android:layout_height="match_parent"
69
                android:textSize="14sp"
70
                android:layout_alignParentTop="true"
71
                android:layout_alignParentLeft="true"
66
                android:layout_alignParentLeft="true"
67
                android:layout_alignParentTop="true"
72
                android:text="我的私人充电桩"
68
                android:text="我的私人充电桩"
73
                android:textColor="@color/ui_62"/>
69
                android:textColor="@color/ui_62"
70
                android:textSize="14sp" />
74
71
75
            <TextView
72
            <TextView
76
                android:id="@+id/item_status"
73
                android:id="@+id/item_status"
77
                android:layout_width="wrap_content"
74
                android:layout_width="wrap_content"
78
                android:layout_height="match_parent"
75
                android:layout_height="match_parent"
79
                android:textSize="13sp"
80
                android:layout_alignParentTop="true"
76
                android:layout_alignParentTop="true"
81
                android:layout_alignParentRight="true"
77
                android:layout_alignParentRight="true"
82
                android:text="审核中"
78
                android:text="审核中"
83
                android:textColor="@color/lvse"/>
84
79
                android:textColor="@color/lvse"
80
                android:textSize="13sp" />
85
81
86
82
87
        </RelativeLayout>
83
        </RelativeLayout>
96
                android:id="@+id/item_fast"
92
                android:id="@+id/item_fast"
97
                android:layout_width="wrap_content"
93
                android:layout_width="wrap_content"
98
                android:layout_height="wrap_content"
94
                android:layout_height="wrap_content"
95
                android:layout_alignParentLeft="true"
99
                android:drawableLeft="@drawable/icon_paokuai1105"
96
                android:drawableLeft="@drawable/icon_paokuai1105"
100
                android:drawablePadding="8dp"
97
                android:drawablePadding="8dp"
101
                android:gravity="center"
98
                android:gravity="center"
102
                android:text="0个"
99
                android:text="0个"
103
                android:textColor="@color/ui_65"
100
                android:textColor="@color/ui_65"
104
                android:layout_alignParentLeft="true"
105
                android:textSize="14sp"
101
                android:textSize="14sp"
106
                android:visibility="visible"/>
102
                android:visibility="visible" />
107
103
108
            <TextView
104
            <TextView
109
                android:id="@+id/item_slow"
105
                android:id="@+id/item_slow"
111
                android:layout_height="wrap_content"
107
                android:layout_height="wrap_content"
112
                android:layout_alignParentTop="true"
108
                android:layout_alignParentTop="true"
113
                android:layout_marginLeft="16dp"
109
                android:layout_marginLeft="16dp"
110
                android:layout_toRightOf="@+id/item_fast"
114
                android:drawableLeft="@drawable/icon_paoman1105"
111
                android:drawableLeft="@drawable/icon_paoman1105"
115
                android:drawablePadding="8dp"
112
                android:drawablePadding="8dp"
116
                android:gravity="center"
113
                android:gravity="center"
117
                android:text="3个"
114
                android:text="3个"
118
                android:textColor="@color/ui_65"
115
                android:textColor="@color/ui_65"
119
                android:layout_toRightOf="@+id/item_fast"
120
                android:textSize="14sp"
116
                android:textSize="14sp"
121
                android:visibility="visible"/>
117
                android:visibility="visible" />
122
118
123
        </LinearLayout>
119
        </LinearLayout>
124
120
127
            android:layout_width="match_parent"
123
            android:layout_width="match_parent"
128
            android:layout_height="0dp"
124
            android:layout_height="0dp"
129
            android:layout_weight="1"
125
            android:layout_weight="1"
130
            android:textColor="@color/ui_68"
131
            android:textSize="12sp"
132
            android:text="朝阳区酒仙桥中路阳光878地下停车场"
133
            android:singleLine="true"
134
            android:ellipsize="end"
126
            android:ellipsize="end"
135
            android:gravity="bottom"/>
127
            android:gravity="bottom"
128
            android:singleLine="true"
129
            android:text="朝阳区酒仙桥中路阳光878地下停车场"
130
            android:textColor="@color/ui_68"
131
            android:textSize="12sp" />
136
    </LinearLayout>
132
    </LinearLayout>
137
    
133
138
    <View
134
    <View
139
        android:id="@+id/view1"
135
        android:id="@+id/view1"
140
        android:layout_width="match_parent"
136
        android:layout_width="match_parent"
141
        android:layout_height="0.5dp"
137
        android:layout_height="0.5dp"
142
        android:background="@color/ui_line"
138
        android:layout_below="@+id/rl_img"
143
        android:layout_marginLeft="16dp"
139
        android:layout_marginLeft="16dp"
144
        android:layout_below="@+id/rl_img"/>
140
        android:background="@color/ui_line" />
145
141
146
    <RelativeLayout
142
    <LinearLayout
147
        android:id="@+id/rl_operation"
143
        android:id="@+id/rl_operation"
148
        android:layout_width="match_parent"
144
        android:layout_width="match_parent"
149
        android:layout_height="41dp"
145
        android:layout_height="wrap_content"
150
        android:layout_below="@+id/view1"
146
        android:layout_below="@+id/view1"
151
        android:background="@color/white">
147
        android:gravity="center_vertical"
148
        android:orientation="horizontal">
149
150
        <TextView
151
            android:id="@+id/reason"
152
            android:layout_width="0dp"
153
            android:layout_height="wrap_content"
154
            android:layout_marginLeft="16dp"
155
            android:layout_marginTop="7dp"
156
            android:layout_marginBottom="7dp"
157
            android:layout_weight="1"
158
            android:textColor="#E02020"
159
            android:textSize="12sp"
160
            tools:text="原因:上传的图片不够清晰" />
152
161
153
        <LinearLayout
162
        <LinearLayout
154
            android:layout_width="wrap_content"
163
            android:layout_width="wrap_content"
155
            android:layout_height="match_parent"
156
            android:orientation="horizontal"
157
            android:layout_alignParentRight="true"
158
            android:layout_marginRight="16dp">
164
            android:layout_height="wrap_content"
165
            android:layout_marginRight="16dp"
166
            android:orientation="horizontal">
159
167
160
            <TextView
168
            <TextView
161
                android:id="@+id/item_edit"
169
                android:id="@+id/item_edit"
162
                android:layout_width="79dp"
170
                android:layout_width="79dp"
163
                android:layout_height="match_parent"
171
                android:layout_height="wrap_content"
172
                android:layout_marginLeft="16dp"
164
                android:layout_marginTop="7dp"
173
                android:layout_marginTop="7dp"
165
                android:layout_marginBottom="7dp"
174
                android:layout_marginBottom="7dp"
166
                android:background="@drawable/bg_zhijiaolvbian"
175
                android:background="@drawable/bg_zhijiaolvbian"
167
                android:textColor="@color/lvse"
168
                android:textSize="14sp"
176
                android:gravity="center"
177
                android:paddingTop="5dp"
178
                android:paddingBottom="5dp"
169
                android:text="编辑"
179
                android:text="编辑"
170
                android:gravity="center"/>
180
                android:textColor="@color/lvse"
181
                android:textSize="14sp" />
171
182
172
            <TextView
183
            <TextView
173
                android:id="@+id/item_control"
184
                android:id="@+id/item_control"
174
                android:layout_width="79dp"
185
                android:layout_width="79dp"
175
                android:layout_height="match_parent"
186
                android:layout_height="wrap_content"
187
                android:layout_marginLeft="11dp"
176
                android:layout_marginTop="7dp"
188
                android:layout_marginTop="7dp"
177
                android:layout_marginBottom="7dp"
189
                android:layout_marginBottom="7dp"
178
                android:layout_marginLeft="11dp"
179
                android:background="@drawable/bg_zhijiaolvbian"
190
                android:background="@drawable/bg_zhijiaolvbian"
191
                android:gravity="center"
192
                android:paddingTop="5dp"
193
                android:paddingBottom="5dp"
194
                android:text=""
180
                android:textColor="@color/lvse"
195
                android:textColor="@color/lvse"
181
                android:textSize="14sp"
196
                android:textSize="14sp"
182
                android:text=""
183
                android:gravity="center"
184
                android:visibility="visible"/>
185
197
                android:visibility="visible" />
186
198
187
199
188
        </LinearLayout>
200
        </LinearLayout>
189
201
190
191
192
193
    </RelativeLayout>
202
    </LinearLayout>
194
203
195
    <View
204
    <View
196
        android:id="@+id/view2"
205
        android:id="@+id/view2"
197
        android:layout_width="match_parent"
206
        android:layout_width="match_parent"
198
        android:layout_height="0.5dp"
207
        android:layout_height="0.5dp"
199
        android:background="@color/ui_line"
200
        android:layout_below="@+id/rl_operation"/>
208
        android:layout_below="@+id/rl_operation"
209
        android:background="@color/ui_line" />
201
210
202
</RelativeLayout>
211
</RelativeLayout>