huyuguo лет назад: 4
Родитель
Сommit
23ee57cce4

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

@ -34,6 +34,8 @@ public class PrivateZhaungListActivity extends Activity implements View.OnClickL
34 34
    public static PrivateZhuangListAdapter privateZhuangListAdapter;
35 35
    int i = 0;
36 36
37
    private ArrayList<JSONObject> zhanList = new ArrayList<JSONObject>();
38
37 39
    @Override
38 40
    protected void onCreate(Bundle savedInstanceState) {
39 41
        super.onCreate(savedInstanceState);
@ -41,6 +43,9 @@ public class PrivateZhaungListActivity extends Activity implements View.OnClickL
41 43
        BarColorUtil.initStatusBarColor(PrivateZhaungListActivity.this);
42 44
43 45
        initViews();
46
47
        privateZhuangListAdapter = new PrivateZhuangListAdapter(zhanList, MainApplication.context);
48
        listview.setAdapter(privateZhuangListAdapter);
44 49
    }
45 50
46 51
    private void initViews() {
@ -63,48 +68,44 @@ public class PrivateZhaungListActivity extends Activity implements View.OnClickL
63 68
        } catch (Exception e) {
64 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 111
    @Override

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

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

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

@ -79,26 +79,22 @@ public class PrivateZhuangListAdapter extends BaseAdapter {
79 79
        if (convertView != null) {
80 80
            holder = (ViewHolder) convertView.getTag();
81 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 85
        if (holder == null) {
87 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 91
            holder.item_slow = (TextView) convertView.findViewById(R.id.item_slow);
96 92
            holder.item_control = (TextView) convertView.findViewById(R.id.item_control);
97 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 95
            holder.item_picnum = (TextView) convertView.findViewById(R.id.item_picnum);
101 96
            holder.item_pic = (ImageView) convertView.findViewById(R.id.item_pic);
97
            holder.reason = convertView.findViewById(R.id.reason);
102 98
        }
103 99
104 100
        if (holder != null && convertView != null) {
@ -218,7 +214,6 @@ public class PrivateZhuangListAdapter extends BaseAdapter {
218 214
                    holder.item_edit.setOnClickListener(new View.OnClickListener() {
219 215
                        @Override
220 216
                        public void onClick(View v) {
221
222 217
                            Intent intent = new Intent(finalConvertView.getContext(), PrivateZhuangInfoActivity.class);
223 218
                            try {
224 219
                                intent.putExtra("id", datas.get(position).getString("id"));
@ -254,7 +249,6 @@ public class PrivateZhuangListAdapter extends BaseAdapter {
254 249
                    holder.item_control.setOnClickListener(new View.OnClickListener() {
255 250
                        @Override
256 251
                        public void onClick(View v) {
257
258 252
                            new com.electric.chargingpile.view.AlertDialog(finalConvertView2.getContext()).builder()
259 253
                                    .setMsg("是否下线您的充电桩")
260 254
                                    .setPositiveButton("下线", new View.OnClickListener() {
@ -358,23 +352,26 @@ public class PrivateZhuangListAdapter extends BaseAdapter {
358 352
                        }
359 353
                    });
360 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 365
                holder.item_fast.setText(datas.get(position).getString("fast_num") + "个");
365 366
                holder.item_slow.setText(datas.get(position).getString("slow_num") + "个");
366 367
                holder.item_zhan_address.setText(datas.get(position).getString("zhan_address"));
367
//                Log.e("pic===",datas.get(position).getString("pic"));
368 368
                holder.item_picnum.setText(datas.get(position).getString("pic_counts"));
369 369
370 370
                if (!datas.get(position).getString("pic").equals("")) {
371 371
                    JSONArray jsonArray = new JSONArray(datas.get(position).getString("pic"));
372 372
                    List<Pic> listPic = JsonUtils.parseToObjectList(datas.get(position).getString("pic"), Pic.class);
373
//                    Log.e("pic.size===", listPic.size() + "");
374 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,33 +384,27 @@ public class PrivateZhuangListAdapter extends BaseAdapter {
387 384
    }
388 385
389 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 388
        ImageView item_pic;
392 389
    }
393 390
394 391
    private void changeStatus(String status, String zhan_id) {
395 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,44 +418,37 @@ public class PrivateZhuangListAdapter extends BaseAdapter {
427 418
        } catch (Exception e) {
428 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,6 +1,5 @@
1 1
<?xml version="1.0" encoding="utf-8"?>
2 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 3
    xmlns:tools="http://schemas.android.com/tools"
5 4
    android:id="@+id/activity_private_zhaung_list"
6 5
    android:layout_width="match_parent"
@ -23,8 +22,8 @@
23 22
            android:layout_centerVertical="true"
24 23
            android:contentDescription="@null"
25 24
            android:paddingLeft="44px"
26
            android:paddingRight="44px"
27 25
            android:paddingTop="4dp"
26
            android:paddingRight="44px"
28 27
            android:paddingBottom="4dp"
29 28
            android:src="@drawable/icon_lvback1119" />
30 29
@ -39,22 +38,15 @@
39 38
40 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 41
    <ListView
42
        android:id="@+id/listview"
50 43
        android:layout_width="match_parent"
51 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 47
        android:divider="@color/activity_bgcolor"
55 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 51
    <TextView
60 52
        android:id="@+id/tv_submit"
@ -62,11 +54,9 @@
62 54
        android:layout_height="127px"
63 55
        android:layout_alignParentBottom="true"
64 56
        android:background="@color/lvse"
57
        android:gravity="center"
65 58
        android:text="添加新站点"
66
        android:textSize="15sp"
67 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,9 +273,8 @@
273 273
                    android:layout_marginRight="44px"
274 274
                    android:layout_weight="5"
275 275
                    android:background="@color/white"
276
                    android:editable="true"
277 276
                    android:gravity="center|right"
278
                    android:hint="请以地名或建筑命名"
277
                    android:hint="请以小区名或具体位置命名"
279 278
                    android:singleLine="true"
280 279
                    android:text=""
281 280
                    android:textColor="@color/ui_62"
@ -341,7 +340,7 @@
341 340
                    android:drawablePadding="20px"
342 341
                    android:ellipsize="end"
343 342
                    android:gravity="center|right"
344
                    android:hint="请选择"
343
                    android:hint="请选择(可精确到具体车位)"
345 344
                    android:singleLine="true"
346 345
                    android:text=""
347 346
                    android:textColor="@color/ui_62"

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

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