tificateListHolder(View itemView) { 187
            super(itemView);
188
            master_pic = itemView.findViewById(R.id.master_pic);
189
            name = itemView.findViewById(R.id.name);
190
            detail_name = itemView.findViewById(R.id.detail_name);
191
            status = itemView.findViewById(R.id.status);
192
            add_time = itemView.findViewById(R.id.add_time);
193
            main = itemView.findViewById(R.id.main);
194
            set_main = itemView.findViewById(R.id.set_main);
195
            failure_reason = itemView.findViewById(R.id.failure_reason);
196
            delete = itemView.findViewById(R.id.delete);
197
            edit = itemView.findViewById(R.id.edit);
198
            left_line = itemView.findViewById(R.id.left_line);
199
            right_line = itemView.findViewById(R.id.right_line);
200
        }
201
202
        @Override
203
        public void onClick(View view) {
204
            if (recyclerItemTypeClickListener != null) {
205
                recyclerItemTypeClickListener.onItemClickListener(getLayoutPosition(), 1);
206
            }
207
        }
208
    }
209
210
    RecyclerItemTypeClickListener recyclerItemTypeClickListener;
211
212
    public void setRecyclerItemTypeClickListener(RecyclerItemTypeClickListener recyclerItemTypeClickListener) {
213
        this.recyclerItemTypeClickListener = recyclerItemTypeClickListener;
214
    }
215
}
216
217
218

+ 0 - 1
app/src/main/java/com/electric/chargingpile/adapter/TopicAdapter.java

@ -100,7 +100,6 @@ public class TopicAdapter extends RecyclerView.Adapter<TopicAdapter.ItemViewHold
100 100
            mItemTopicName = (TextView) itemView.findViewById(R.id.item_topic_name);
101 101
            mItemTopicRl = (RelativeLayout) itemView.findViewById(R.id.item_topic_rl);
102 102
            mItemTopicRl.setOnClickListener(this);
103
104 103
        }
105 104
106 105
        @Override

+ 122 - 0
app/src/main/java/com/electric/chargingpile/data/CarOwnerCertificateBean.java

@ -0,0 +1,122 @@
1
package com.electric.chargingpile.data;
2
3
import java.io.Serializable;
4
5
public class CarOwnerCertificateBean implements Serializable {
6
    private int id;
7
    private String plate_number;
8
    private String engine_number;
9
    private String license_img1;
10
    private String chexing;
11
    private String regdate;
12
    private String cartype;
13
    private int status;
14
    private int main;
15
    private String addTime;
16
    private String errmsg;
17
18
    public int getId() {
19
        return id;
20
    }
21
22
    public void setId(int id) {
23
        this.id = id;
24
    }
25
26
    public String getPlate_number() {
27
        return plate_number;
28
    }
29
30
    public void setPlate_number(String plate_number) {
31
        this.plate_number = plate_number;
32
    }
33
34
    public String getEngine_number() {
35
        return engine_number;
36
    }
37
38
    public void setEngine_number(String engine_number) {
39
        this.engine_number = engine_number;
40
    }
41
42
    public String getLicense_img1() {
43
        return license_img1;
44
    }
45
46
    public void setLicense_img1(String license_img1) {
47
        this.license_img1 = license_img1;
48
    }
49
50
    public String getChexing() {
51
        return chexing;
52
    }
53
54
    public void setChexing(String chexing) {
55
        this.chexing = chexing;
56
    }
57
58
    public String getRegdate() {
59
        return regdate;
60
    }
61
62
    public void setRegdate(String regdate) {
63
        this.regdate = regdate;
64
    }
65
66
    public String getCartype() {
67
        return cartype;
68
    }
69
70
    public void setCartype(String cartype) {
71
        this.cartype = cartype;
72
    }
73
74
    public int getStatus() {
75
        return status;
76
    }
77
78
    public void setStatus(int status) {
79
        this.status = status;
80
    }
81
82
    public int getMain() {
83
        return main;
84
    }
85
86
    public void setMain(int main) {
87
        this.main = main;
88
    }
89
90
    public String getAddTime() {
91
        return addTime;
92
    }
93
94
    public void setAddTime(String addTime) {
95
        this.addTime = addTime;
96
    }
97
98
    public String getErrmsg() {
99
        return errmsg;
100
    }
101
102
    public void setErrmsg(String errmsg) {
103
        this.errmsg = errmsg;
104
    }
105
106
    @Override
107
    public String toString() {
108
        return "CarOwnerCertificateBean{" +
109
                "id=" + id +
110
                ", plate_number='" + plate_number + '\'' +
111
                ", engine_number='" + engine_number + '\'' +
112
                ", license_img1='" + license_img1 + '\'' +
113
                ", chexing='" + chexing + '\'' +
114
                ", regdate='" + regdate + '\'' +
115
                ", cartype='" + cartype + '\'' +
116
                ", status=" + status +
117
                ", main=" + main +
118
                ", addTime='" + addTime + '\'' +
119
                ", errmsg='" + errmsg + '\'' +
120
                '}';
121
    }
122
}

+ 55 - 8
app/src/main/java/com/electric/chargingpile/entity/CarSeriesEntity.java

@ -4,18 +4,25 @@ public class CarSeriesEntity {
4 4
    private String brandId;
5 5
    private String brandName;
6 6
    private String companyId;
7
    private String companyName;
7 8
    private String seriesId;
8 9
    private String seriesName;
10
    private String salePrice;
9 11
    private String icon;
12
    private String masterPic;
13
    private String maxSalePrice;
14
    private String minSalePrice;
10 15
11
    public CarSeriesEntity(String brandId, String brandName, String companyId, String seriesId, String seriesName, String icon) {
12
        this.brandId = brandId;
13
        this.brandName = brandName;
14
        this.companyId = companyId;
15
        this.seriesId = seriesId;
16
        this.seriesName = seriesName;
17
        this.icon = icon;
18
    }
16
//    public CarSeriesEntity(String brandId, String brandName, String companyId, String companyName, String seriesId, String seriesName, String salePrice, String icon) {
17
//        this.brandId = brandId;
18
//        this.brandName = brandName;
19
//        this.companyId = companyId;
20
//        this.companyName = companyName;
21
//        this.seriesId = seriesId;
22
//        this.seriesName = seriesName;
23
//        this.salePrice = salePrice;
24
//        this.icon = icon;
25
//    }
19 26
20 27
    public String getBrandId() {
21 28
        return brandId;
@ -41,6 +48,14 @@ public class CarSeriesEntity {
41 48
        this.companyId = companyId;
42 49
    }
43 50
51
    public String getCompanyName() {
52
        return companyName;
53
    }
54
55
    public void setCompanyName(String companyName) {
56
        this.companyName = companyName;
57
    }
58
44 59
    public String getSeriesId() {
45 60
        return seriesId;
46 61
    }
@ -57,6 +72,14 @@ public class CarSeriesEntity {
57 72
        this.seriesName = seriesName;
58 73
    }
59 74
75
    public String getSalePrice() {
76
        return salePrice;
77
    }
78
79
    public void setSalePrice(String salePrice) {
80
        this.salePrice = salePrice;
81
    }
82
60 83
    public String getIcon() {
61 84
        return icon;
62 85
    }
@ -64,4 +87,28 @@ public class CarSeriesEntity {
64 87
    public void setIcon(String icon) {
65 88
        this.icon = icon;
66 89
    }
90
91
    public String getMasterPic() {
92
        return masterPic;
93
    }
94
95
    public void setMasterPic(String masterPic) {
96
        this.masterPic = masterPic;
97
    }
98
99
    public String getMaxSalePrice() {
100
        return maxSalePrice;
101
    }
102
103
    public void setMaxSalePrice(String maxSalePrice) {
104
        this.maxSalePrice = maxSalePrice;
105
    }
106
107
    public String getMinSalePrice() {
108
        return minSalePrice;
109
    }
110
111
    public void setMinSalePrice(String minSalePrice) {
112
        this.minSalePrice = minSalePrice;
113
    }
67 114
}

+ 74 - 0
app/src/main/res/layout/activity_car_owner_certificate_list.xml

@ -0,0 +1,74 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<androidx.constraintlayout.widget.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
    android:background="#F2F6F9"
8
    tools:context=".activity.CarOwnerCertificateListActivity">
9
10
    <androidx.constraintlayout.widget.ConstraintLayout
11
        android:id="@+id/nav_bar"
12
        android:layout_width="match_parent"
13
        android:layout_height="44dp"
14
        android:background="@color/white"
15
        app:layout_constraintTop_toTopOf="parent">
16
17
        <TextView
18
            android:id="@+id/nav_title"
19
            android:layout_width="match_parent"
20
            android:layout_height="match_parent"
21
            android:gravity="center"
22
            android:text="车主认证列表"
23
            android:textColor="#444444"
24
            android:textSize="16sp" />
25
26
        <ImageView
27
            android:id="@+id/iv_back"
28
            android:layout_width="wrap_content"
29
            android:layout_height="match_parent"
30
            android:layout_alignParentLeft="true"
31
            android:layout_centerVertical="true"
32
            android:contentDescription="@null"
33
            android:paddingLeft="15dp"
34
            android:paddingRight="15dp"
35
            android:src="@drawable/icon_lvback1119"
36
            app:layout_constraintLeft_toLeftOf="parent" />
37
38
        <TextView
39
            android:id="@+id/add"
40
            android:layout_width="60dp"
41
            android:layout_height="match_parent"
42
            android:gravity="center"
43
            android:text="添加"
44
            android:textColor="#030303"
45
            android:textSize="15sp"
46
            app:layout_constraintRight_toRightOf="parent" />
47
48
        <View
49
            android:layout_width="match_parent"
50
            android:layout_height="0.5dp"
51
            android:background="@color/ui_titleline"
52
            app:layout_constraintBottom_toBottomOf="parent" />
53
54
    </androidx.constraintlayout.widget.ConstraintLayout>
55
56
    <androidx.recyclerview.widget.RecyclerView
57
        android:id="@+id/recycler_view"
58
        android:layout_width="match_parent"
59
        android:layout_height="0dp"
60
        app:layout_constraintBottom_toBottomOf="parent"
61
        app:layout_constraintTop_toBottomOf="@+id/nav_bar" />
62
63
    <TextView
64
        android:id="@+id/no_data"
65
        android:layout_width="match_parent"
66
        android:layout_height="match_parent"
67
        android:gravity="center"
68
        android:text="暂无认证信息"
69
        android:textColor="#cccccc"
70
        android:textSize="15sp"
71
        android:visibility="gone"
72
        tools:visibility="visible" />
73
74
</androidx.constraintlayout.widget.ConstraintLayout>

+ 4 - 3
app/src/main/res/layout/adapter_child_car_model.xml

@ -16,7 +16,7 @@
16 16
        app:layout_constraintTop_toTopOf="parent" />
17 17
18 18
    <ImageView
19
        android:id="@+id/ster_picon"
19
        android:id="@+id/master_pster_pic"
20 20
        android:layout_width="120dp"
21 21
        android:layout_height="80dp"
22 22
        android:scaleType="fitCenter"
@ -34,7 +34,7 @@
34 34
        android:layout_marginTop="27dp"
35 35
        android:textColor="#FF222222"
36 36
        android:textSize="14sp"
37
        app:layout_constraintLeft_toRightOf="@+id/ster_picon"
37
        app:layout_constraintLeft_toRightOf="@+id/master_pster_pic"
38 38
        app:layout_constraintTop_toTopOf="parent"
39 39
        tools:text="奥迪" />
40 40
@ -45,9 +45,10 @@
45 45
        android:layout_marginBottom="28dp"
46 46
        android:orientation="horizontal"
47 47
        app:layout_constraintBottom_toBottomOf="parent"
48
        app:layout_constraintLeft_toRightOf="@+id/ster_picon">
48
        app:layout_constraintLeft_toRightOf="@+id/master_pster_pic">
49 49
50 50
        <TextView
51
            android:id="@+id/sale_price"
51 52
            android:layout_width="wrap_content"
52 53
            android:layout_height="wrap_content"
53 54
            android:textColor="#FFE02020"

+ 167 - 0
app/src/main/res/layout/item_car_owner_certificate.xml

@ -0,0 +1,167 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    xmlns:tools="http://schemas.android.com/tools"
4
    android:layout_width="match_parent"
5
    android:layout_height="wrap_content"
6
    android:background="@color/white"
7
    android:orientation="vertical">
8
9
    <LinearLayout
10
        android:layout_width="match_parent"
11
        android:layout_height="wrap_content"
12
        android:paddingLeft="10dp"
13
        android:paddingTop="20dp"
14
        android:paddingRight="15dp"
15
        android:paddingBottom="5dp">
16
17
        <ImageView
18
            android:id="@+id/master_pic"
19
            android:layout_width="120dp"
20
            android:layout_height="80dp"
21
            android:layout_marginBottom="15dp"
22
            tools:background="@color/red" />
23
24
        <LinearLayout
25
            android:layout_width="match_parent"
26
            android:layout_height="wrap_content"
27
            android:orientation="vertical">
28
29
            <LinearLayout
30
                android:layout_width="match_parent"
31
                android:layout_height="wrap_content">
32
33
                <TextView
34
                    android:id="@+id/name"
35
                    android:layout_width="wrap_content"
36
                    android:layout_height="wrap_content"
37
                    android:textColor="#222222"
38
                    android:textSize="14sp"
39
                    tools:text="阿尔法·罗密欧" />
40
41
                <TextView
42
                    android:layout_width="wrap_content"
43
                    android:layout_height="wrap_content"
44
                    android:layout_weight="1" />
45
46
                <TextView
47
                    android:id="@+id/status"
48
                    android:layout_width="wrap_content"
49
                    android:layout_height="match_parent"
50
                    android:gravity="center"
51
                    android:textSize="12sp"
52
                    tools:text="审核中" />
53
            </LinearLayout>
54
55
            <TextView
56
                android:id="@+id/detail_name"
57
                android:layout_width="match_parent"
58
                android:layout_height="match_parent"
59
                android:layout_marginTop="5dp"
60
                android:textColor="#0D1120"
61
                android:textSize="14sp"
62
                tools:text="2020款 420KM 运动版" />
63
64
            <LinearLayout
65
                android:layout_width="match_parent"
66
                android:layout_height="37dp"
67
                android:orientation="horizontal"
68
                tools:background="#ff0099">
69
70
                <TextView
71
                    android:id="@+id/add_time"
72
                    android:layout_width="wrap_content"
73
                    android:layout_height="match_parent"
74
                    android:gravity="center_vertical"
75
                    android:textColor="#9393A5"
76
                    android:textSize="12sp"
77
                    tools:text="2020.10.20" />
78
79
                <TextView
80
                    android:layout_width="wrap_content"
81
                    android:layout_height="wrap_content"
82
                    android:layout_weight="1" />
83
84
                <TextView
85
                    android:id="@+id/main"
86
                    android:layout_width="wrap_content"
87
                    android:layout_height="match_parent"
88
                    android:gravity="center_vertical"
89
                    android:text="主车型"
90
                    android:textColor="#0D1120"
91
                    android:textSize="12sp"
92
                    android:visibility="gone"
93
                    tools:visibility="visible" />
94
95
                <TextView
96
                    android:id="@+id/delete"
97
                    android:layout_width="wrap_content"
98
                    android:layout_height="match_parent"
99
                    android:gravity="center_vertical"
100
                    android:paddingRight="5dp"
101
                    android:text="删除"
102
                    android:textColor="#0D1120"
103
                    android:textSize="12sp"
104
                    android:visibility="gone"
105
                    tools:visibility="visible" />
106
107
                <View
108
                    android:id="@+id/left_line"
109
                    android:layout_width="1dp"
110
                    android:layout_height="match_parent"
111
                    android:layout_marginTop="12dp"
112
                    android:layout_marginBottom="12dp"
113
                    android:background="#979797" />
114
115
                <TextView
116
                    android:id="@+id/edit"
117
                    android:layout_width="wrap_content"
118
                    android:layout_height="match_parent"
119
                    android:gravity="center_vertical"
120
                    android:paddingRight="5dp"
121
                    android:paddingLeft="5dp"
122
                    android:text="编辑"
123
                    android:textColor="#0D1120"
124
                    android:textSize="12sp"
125
                    android:visibility="gone"
126
                    tools:visibility="visible" />
127
128
                <View
129
                    android:id="@+id/right_line"
130
                    android:layout_width="1dp"
131
                    android:layout_height="match_parent"
132
                    android:layout_marginTop="12dp"
133
                    android:layout_marginBottom="12dp"
134
                    android:background="#979797" />
135
136
                <TextView
137
                    android:id="@+id/set_main"
138
                    android:layout_width="wrap_content"
139
                    android:layout_height="match_parent"
140
                    android:gravity="center_vertical"
141
                    android:paddingLeft="5dp"
142
                    android:text="设为主车型"
143
                    android:textColor="#0D1120"
144
                    android:textSize="12sp"
145
                    android:visibility="gone"
146
                    tools:visibility="visible" />
147
148
            </LinearLayout>
149
150
            <TextView
151
                android:id="@+id/failure_reason"
152
                android:layout_width="match_parent"
153
                android:layout_height="wrap_content"
154
                android:layout_marginBottom="5dp"
155
                android:text="失败原因:不拉不拉"
156
                android:textColor="#E02020"
157
                android:textSize="12sp"
158
                android:visibility="gone"
159
                tools:visibility="visible" />
160
        </LinearLayout>
161
    </LinearLayout>
162
163
    <View
164
        android:layout_width="match_parent"
165
        android:layout_height="1dp"
166
        android:background="@color/lineColor" />
167
</LinearLayout>

buy-a4-paper-in-bulk6908/6321609 - Gogs: Go Git Service

This repository is empty, please come back later!

Accedi - Gogs: Go Git Service

Accedi