huyuguo vor 4 Jahren
Ursprung
Commit
e3e960f2f7

+ 6 - 3
app/src/main/java/com/electric/chargingpile/activity/CarOwnerCertificateActivity.java

@ -192,6 +192,7 @@ public class CarOwnerCertificateActivity extends AppCompatActivity implements Vi
192 192
        submit_btn.setOnClickListener(this);
193 193
194 194
        if (edit) {
195
            nav_title.setText("更新车主认证");
195 196
            Gson gson = new Gson();
196 197
            CarModelEvent event = new CarModelEvent(gson.fromJson(carOwnerCertificateBean.getChexing(), CarModelEntity.class));
197 198
            onCarModelMessage(event);
@ -225,8 +226,8 @@ public class CarOwnerCertificateActivity extends AppCompatActivity implements Vi
225 226
                driving_license_type_first.setCompoundDrawables(selected, null, null, null);
226 227
                driving_license_type_second.setCompoundDrawables(normal, null, null, null);
227 228
                driving_license_type_third.setCompoundDrawables(normal, null, null, null);
228
            } else if ("营".equals(carOwnerCertificateBean.getCartype())) {
229
                drivingLicenseType = "营";
229
            } else if ("营".equals(carOwnerCertificateBean.getCartype())) {
230
                drivingLicenseType = "营";
230 231
                driving_license_type_first.setCompoundDrawables(normal, null, null, null);
231 232
                driving_license_type_second.setCompoundDrawables(selected, null, null, null);
232 233
                driving_license_type_third.setCompoundDrawables(normal, null, null, null);
@ -236,6 +237,8 @@ public class CarOwnerCertificateActivity extends AppCompatActivity implements Vi
236 237
                driving_license_type_second.setCompoundDrawables(normal, null, null, null);
237 238
                driving_license_type_third.setCompoundDrawables(selected, null, null, null);
238 239
            }
240
        } else {
241
            nav_title.setText("车主认证");
239 242
        }
240 243
    }
241 244
@ -303,7 +306,7 @@ public class CarOwnerCertificateActivity extends AppCompatActivity implements Vi
303 306
                driving_license_type_third.setCompoundDrawables(normal, null, null, null);
304 307
                break;
305 308
            case R.id.driving_license_type_second:
306
                drivingLicenseType = "营";
309
                drivingLicenseType = "营";
307 310
                driving_license_type_first.setCompoundDrawables(normal, null, null, null);
308 311
                driving_license_type_second.setCompoundDrawables(selected, null, null, null);
309 312
                driving_license_type_third.setCompoundDrawables(normal, null, null, null);

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

@ -192,7 +192,6 @@ public class ChargingCoinsActivity extends AutoLayoutActivity implements View.On
192 192
193 193
    private void getitem(String sms) {
194 194
195
196 195
        long appTime1 = System.currentTimeMillis() / 1000;
197 196
        Log.i("appTime(long)---", appTime1 + "");
198 197
        long updatetime = appTime1 - MainMapActivity.cha - 3;

+ 13 - 8
app/src/main/java/com/electric/chargingpile/activity/SingleCommentActivity.java

@ -28,6 +28,7 @@ import com.electric.chargingpile.data.MyOtto;
28 28
import com.electric.chargingpile.data.RankinglistRefreshEvent;
29 29
import com.electric.chargingpile.fragment.ZhanCommentFragment;
30 30
import com.electric.chargingpile.util.BarColorUtil;
31
import com.electric.chargingpile.util.CarTypeUtil;
31 32
import com.electric.chargingpile.util.DES3;
32 33
import com.electric.chargingpile.util.JsonUtils;
33 34
import com.electric.chargingpile.util.LoadingDialog;
@ -75,6 +76,7 @@ public class SingleCommentActivity extends Activity implements View.OnClickListe
75 76
    private TextView tv_point;
76 77
    private RelativeLayout rl_point;
77 78
    private android.view.animation.Animation animation;
79
    private ImageView certified_icon;
78 80
79 81
    @Override
80 82
    protected void onCreate(Bundle savedInstanceState) {
@ -109,6 +111,7 @@ public class SingleCommentActivity extends Activity implements View.OnClickListe
109 111
        tv_preply = (TextView) findViewById(R.id.tv_preply);
110 112
        tv_preply.setOnClickListener(this);
111 113
        tv_pcar = (TextView) findViewById(R.id.tv_pcar);
114
        certified_icon = (ImageView)findViewById(R.id.certified_icon);
112 115
        fl_ptag = (TagFlowLayout) findViewById(R.id.fl_ptag);
113 116
        iv_commentPic = (ImageView) findViewById(R.id.iv_commentPic);
114 117
        iv_pgrade = (ImageView) findViewById(R.id.iv_pgrade);
@ -245,18 +248,20 @@ public class SingleCommentActivity extends Activity implements View.OnClickListe
245 248
            }
246 249
            tv_pcontext.setText(ss);
247 250
        }
251
252
248 253
        //设置车型
249 254
        String hascar = JsonUtils.getKeyResult(data, "hascar");
250
        String[] strarray = hascar.split("\\$\\$");
251
        if (strarray.length > 1) {
252
            name0 = strarray[0];//江淮
253
            name1 = strarray[1];//iEV3
254
        }
255
        if (hascar == null || hascar.equals("") || hascar.equals("null") || hascar.equals("品牌$$车型") || hascar.equals("null$$null") || hascar.equals("nullnull")) {
256
            tv_pcar.setText("");
255
        tv_pcar.setText(CarTypeUtil.getCarType(hascar));
256
257
        String isCertifiedOwner = JsonUtils.getKeyResult(data, "is_certified_owner");
258
259
        if ("1".equals(isCertifiedOwner)) {
260
            certified_icon.setVisibility(View.VISIBLE);
257 261
        } else {
258
            tv_pcar.setText(name0 + name1);
262
            certified_icon.setVisibility(View.GONE);
259 263
        }
264
260 265
        //设置标签
261 266
        String tag = JsonUtils.getKeyResult(data, "tag");
262 267
        if (tag != null) {

+ 42 - 0
app/src/main/java/com/electric/chargingpile/activity/WelcomeActivity.java

@ -9,6 +9,7 @@ import android.content.pm.PackageInfo;
9 9
import android.content.pm.PackageManager;
10 10
import android.graphics.Bitmap;
11 11
import android.graphics.drawable.Drawable;
12
import android.net.Uri;
12 13
import android.os.Build;
13 14
import android.os.Bundle;
14 15
import android.os.Environment;
@ -16,6 +17,7 @@ import android.os.Handler;
16 17
import android.os.Message;
17 18

18 19
import androidx.annotation.NonNull;
20
import androidx.core.app.NotificationManagerCompat;
19 21
import androidx.viewpager.widget.ViewPager;
20 22
import androidx.appcompat.app.AlertDialog;
21 23

@ -46,6 +48,7 @@ import com.electric.chargingpile.util.BarColorUtil;
46 48
import com.electric.chargingpile.util.DES3;
47 49
import com.electric.chargingpile.util.JsonUtils;
48 50
import com.electric.chargingpile.util.OkHttpUtil;
51
import com.electric.chargingpile.view.AlertDialogTwo;
49 52
import com.electric.chargingpile.view.ViewPagerAdapter;
50 53
import com.google.gson.Gson;
51 54
import com.google.gson.reflect.TypeToken;
@ -307,9 +310,48 @@ public class WelcomeActivity extends Activity implements OnClickListener, EasyPe
307 310

308 311
            viewPager.setAdapter(new ViewPagerAdapter(views));
309 312
            viewPager.setCurrentItem(0);
313

314
            if (!NotificationManagerCompat.from(WelcomeActivity.this).areNotificationsEnabled()) {
315
                openNotification();
316
            }
310 317
        }
311 318
    }
312 319

320
    private void openNotification() {
321

322
        AlertDialog.Builder builder = new AlertDialog.Builder(WelcomeActivity.this);
323
        builder.setTitle("\"充电桩\"想给您发送通知");
324
        builder.setMessage("\"通知\"可能包括提醒、声音和图标标记。这些可以在\"设置\"中配置。");
325
        builder.setCancelable(false);
326
        builder.setPositiveButton("允许", new DialogInterface.OnClickListener() {
327
            @Override
328
            public void onClick(DialogInterface dialog, int which) {
329
                Intent localIntent = new Intent();
330
                localIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
331
                if (Build.VERSION.SDK_INT >= 9) {
332
                    localIntent.setAction("android.settings.APPLICATION_DETAILS_SETTINGS");
333
                    localIntent.setData(Uri.fromParts("package", WelcomeActivity.this.getPackageName(), null));
334
                } else if (Build.VERSION.SDK_INT <= 8) {
335
                    localIntent.setAction(Intent.ACTION_VIEW);
336

337
                    localIntent.setClassName("com.android.settings", "com.android.settings.InstalledAppDetails");
338

339
                    localIntent.putExtra("com.android.settings.ApplicationPkgName", WelcomeActivity.this.getPackageName());
340
                }
341
                startActivity(localIntent);
342
                dialog.dismiss();
343
            }
344
        });
345

346
        builder.setNegativeButton("不允许", new DialogInterface.OnClickListener() {
347
            @Override
348
            public void onClick(DialogInterface dialog, int which) {
349
                dialog.dismiss();
350
            }
351
        });
352
        builder.show();
353
    }
354

313 355
    public void getVersion() {
314 356
        try {
315 357
            PackageManager manager = getApplication().getPackageManager();

+ 1 - 1
app/src/main/java/com/electric/chargingpile/application/MainApplication.java

@ -156,7 +156,7 @@ public class MainApplication extends MultiDexApplication {
156 156
        LogUtils.getConfig().setLogSwitch(true);
157 157

158 158
        //极光
159
        JPushInterface.setDebugMode(true);
159
        JPushInterface.setDebugMode(false);
160 160
        JPushInterface.init(this);
161 161

162 162
        CrashReport.initCrashReport(getApplicationContext(), "900010422", BuildConfig.DEBUG);

+ 161 - 158
app/src/main/res/layout/activity_single_comment.xml

@ -1,8 +1,8 @@
1 1
<?xml version="1.0" encoding="utf-8"?>
2 2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    xmlns:app="http://schemas.android.com/apk/res-auto"
3 4
    xmlns:tools="http://schemas.android.com/tools"
4 5
    xmlns:zhy="http://schemas.android.com/tools"
5
    xmlns:app="http://schemas.android.com/apk/res-auto"
6 6
    android:id="@+id/activity_single_comment"
7 7
    android:layout_width="match_parent"
8 8
    android:layout_height="match_parent"
@ -13,10 +13,10 @@
13 13
        android:id="@+id/rl_title"
14 14
        android:layout_width="match_parent"
15 15
        android:layout_height="130px"
16
        android:background="@color/title_background"
17
        android:layout_alignParentTop="true"
16
        android:layout_alignParentStart="true"
18 17
        android:layout_alignParentLeft="true"
19
        android:layout_alignParentStart="true">
18
        android:layout_alignParentTop="true"
19
        android:background="@color/title_background">
20 20
21 21
        <TextView
22 22
            android:id="@+id/tv_zhan_name"
@ -34,39 +34,39 @@
34 34
            android:layout_alignParentLeft="true"
35 35
            android:layout_centerVertical="true"
36 36
            android:contentDescription="@null"
37
            android:paddingBottom="4dp"
38 37
            android:paddingLeft="44px"
39
            android:paddingRight="44px"
40 38
            android:paddingTop="4dp"
39
            android:paddingRight="44px"
40
            android:paddingBottom="4dp"
41 41
            android:src="@drawable/icon_lvback1119" />
42 42
43 43
        <TextView
44 44
            android:id="@+id/tv_make_sure"
45 45
            android:layout_width="wrap_content"
46 46
            android:layout_height="match_parent"
47
            android:layout_alignParentRight="true"
47 48
            android:gravity="center"
48 49
            android:paddingLeft="15dp"
49 50
            android:paddingRight="15dp"
50 51
            android:text="发表"
51 52
            android:textColor="@color/lvse"
52 53
            android:textSize="15sp"
53
            android:layout_alignParentRight="true"
54
            android:visibility="gone"/>
54
            android:visibility="gone" />
55 55
    </com.zhy.autolayout.AutoRelativeLayout>
56 56
57 57
    <View
58 58
        android:id="@+id/view"
59 59
        android:layout_width="match_parent"
60 60
        android:layout_height="0.5dp"
61
        android:background="@color/ui_titleline"
62
        android:layout_below="@id/rl_title"/>
61
        android:layout_below="@id/rl_title"
62
        android:background="@color/ui_titleline" />
63 63
64 64
    <com.electric.chargingpile.view.CustomScrollView
65 65
        android:id="@+id/scrollView"
66 66
        android:layout_width="match_parent"
67 67
        android:layout_height="match_parent"
68
        android:layout_below="@id/view"
69
        android:layout_above="@+id/ll_comment">
68
        android:layout_above="@+id/ll_comment"
69
        android:layout_below="@id/view">
70 70
71 71
        <LinearLayout
72 72
            android:id="@+id/ll_parent"
@ -79,92 +79,102 @@
79 79
                android:layout_width="match_parent"
80 80
                android:layout_height="match_parent"
81 81
                android:background="@color/bg_row">
82
                
82
83 83
                <RelativeLayout
84 84
                    android:id="@+id/rl_icon"
85 85
                    android:layout_width="35dp"
86 86
                    android:layout_height="35dp"
87
                    android:layout_alignParentTop="true"
88
                    android:layout_alignParentLeft="true"
89 87
                    android:layout_alignParentStart="true"
90
                    android:layout_marginTop="12dp"
91
                    android:layout_marginLeft="15dp">
88
                    android:layout_alignParentLeft="true"
89
                    android:layout_alignParentTop="true"
90
                    android:layout_marginLeft="15dp"
91
                    android:layout_marginTop="12dp">
92 92
93 93
                    <com.electric.chargingpile.view.CircleImageView
94
                        android:id="@+id/iv_picon"
94 95
                        android:layout_width="35dp"
95 96
                        android:layout_height="35dp"
96
                        android:id="@+id/iv_picon"
97
                        app:border_color="@color/white"
98 97
                        android:layout_gravity="center_vertical"
99
                        android:src="@drawable/icon_touxiang0128"/>
98
                        android:src="@drawable/icon_touxiang0128"
99
                        app:border_color="@color/white" />
100 100
101 101
                    <ImageView
102 102
                        android:id="@+id/iv_level_img"
103 103
                        android:layout_width="15dp"
104 104
                        android:layout_height="15dp"
105
                        android:layout_alignParentBottom="true"
106
                        android:layout_alignParentRight="true"/>
105
                        android:layout_alignParentRight="true"
106
                        android:layout_alignParentBottom="true" />
107 107
108 108
109 109
                </RelativeLayout>
110 110
111 111
112
113 112
                <TextView
113
                    android:id="@+id/tv_pname"
114 114
                    android:layout_width="wrap_content"
115 115
                    android:layout_height="wrap_content"
116
                    android:textAppearance="?android:attr/textAppearanceSmall"
117
                    android:text=""
118
                    android:textSize="13sp"
119
                    android:id="@+id/tv_pname"
120
                    android:textColor="@color/ui_65"
121
                    android:maxEms="8"
122
                    android:ellipsize="end"
123
                    android:singleLine="true"
124
                    android:layout_marginLeft="10dp"
125
                    android:layout_gravity="center_vertical"
126 116
                    android:layout_alignTop="@+id/rl_icon"
117
                    android:layout_gravity="center_vertical"
118
                    android:layout_marginLeft="10dp"
119
                    android:layout_toEndOf="@+id/rl_icon"
127 120
                    android:layout_toRightOf="@+id/rl_icon"
128
                    android:layout_toEndOf="@+id/rl_icon" />
121
                    android:ellipsize="end"
122
                    android:maxEms="8"
123
                    android:singleLine="true"
124
                    tools:text="gin"
125
                    android:textAppearance="?android:attr/textAppearanceSmall"
126
                    android:textColor="@color/ui_65"
127
                    android:textSize="13sp" />
128
                <ImageView
129
                    android:id="@+id/certified_icon"
130
                    android:layout_width="18dp"
131
                    android:layout_height="18dp"
132
                    android:layout_marginLeft="5dp"
133
                    tools:visibility="visible"
134
                    android:visibility="gone"
135
                    android:layout_marginTop="2dp"
136
                    android:layout_toRightOf="@+id/tv_pname"
137
                    android:layout_alignTop="@+id/tv_pname"
138
                    android:src="@drawable/certified_icon" />
129 139
130 140
                <TextView
141
                    android:id="@+id/tv_pcar"
131 142
                    android:layout_width="wrap_content"
132 143
                    android:layout_height="wrap_content"
144
                    android:layout_alignTop="@+id/tv_pname"
145
                    android:layout_gravity="center_vertical"
146
                    android:layout_marginLeft="5dp"
147
                    android:layout_toEndOf="@+id/certified_icon"
148
                    android:layout_toRightOf="@+id/certified_icon"
149
                    tools:text="丰田CR-V"
133 150
                    android:textAppearance="?android:attr/textAppearanceSmall"
134
                    android:text=""
135
                    android:textSize="13sp"
136 151
                    android:textColor="#888888"
137
                    android:id="@+id/tv_pcar"
138
                    android:layout_marginLeft="5dp"
139
                    android:layout_gravity="center_vertical"
140
                    android:layout_alignTop="@+id/tv_pname"
141
                    android:layout_toRightOf="@+id/tv_pname"
142
                    android:layout_toEndOf="@+id/tv_pname" />
152
                    android:textSize="13sp" />
143 153
144 154
                <ImageView
155
                    android:id="@+id/iv_pgrade"
145 156
                    android:layout_width="wrap_content"
146 157
                    android:layout_height="wrap_content"
147
                    android:textAppearance="?android:attr/textAppearanceSmall"
148
                    android:id="@+id/iv_pgrade"
149
                    android:layout_gravity="center_vertical"
150 158
                    android:layout_alignTop="@+id/tv_pname"
151 159
                    android:layout_alignParentRight="true"
160
                    android:layout_gravity="center_vertical"
152 161
                    android:layout_marginRight="15dp"
153
                    android:src="@drawable/icon_5xing"/>
162
                    android:src="@drawable/icon_5xing"
163
                    android:textAppearance="?android:attr/textAppearanceSmall" />
154 164
155 165
                <TextView
166
                    android:id="@+id/tv_pcontext"
156 167
                    android:layout_width="wrap_content"
157 168
                    android:layout_height="wrap_content"
158
                    android:textAppearance="?android:attr/textAppearanceSmall"
159
                    android:text=""
160
                    android:id="@+id/tv_pcontext"
161
                    android:textSize="15sp"
162
                    android:layout_marginTop="10dp"
163
                    android:layout_marginRight="15dp"
164 169
                    android:layout_below="@+id/tv_pname"
165
                    android:layout_alignLeft="@+id/tv_pname"
166 170
                    android:layout_alignStart="@+id/tv_pname"
167
                    android:visibility="visible"/>
171
                    android:layout_alignLeft="@+id/tv_pname"
172
                    android:layout_marginTop="10dp"
173
                    android:layout_marginRight="15dp"
174
                    android:text=""
175
                    android:textAppearance="?android:attr/textAppearanceSmall"
176
                    android:textSize="15sp"
177
                    android:visibility="visible" />
168 178
169 179
                <com.zhy.view.flowlayout.TagFlowLayout
170 180
                    android:id="@+id/fl_ptag"
@ -173,45 +183,45 @@
173 183
                    android:layout_below="@+id/tv_pcontext"
174 184
                    android:layout_alignLeft="@+id/tv_pcontext"
175 185
                    android:layout_marginTop="10dp"
176
                    zhy:max_select="-1"
177
                    android:visibility="visible"/>
186
                    android:visibility="visible"
187
                    zhy:max_select="-1" />
178 188
179 189
                <ImageView
190
                    android:id="@+id/iv_commentPic"
180 191
                    android:layout_width="65dp"
181 192
                    android:layout_height="65dp"
182
                    android:id="@+id/iv_commentPic"
183
                    android:layout_marginTop="10dp"
184 193
                    android:layout_below="@+id/fl_ptag"
194
                    android:layout_alignLeft="@+id/tv_pcontext"
195
                    android:layout_marginTop="10dp"
185 196
                    android:scaleType="centerCrop"
186
                    android:visibility="gone"
187
                    android:layout_alignLeft="@+id/tv_pcontext"/>
197
                    android:visibility="gone" />
188 198
189 199
                <TextView
200
                    android:id="@+id/tv_ptime"
190 201
                    android:layout_width="wrap_content"
191 202
                    android:layout_height="wrap_content"
192
                    android:textAppearance="?android:attr/textAppearanceSmall"
193
                    android:text=""
194
                    android:textSize="12sp"
195
                    android:textColor="#c8c8c8"
196
                    android:id="@+id/tv_ptime"
197
                    android:layout_marginTop="10dp"
198
                    android:layout_marginBottom="8dp"
199 203
                    android:layout_below="@+id/iv_commentPic"
204
                    android:layout_alignStart="@+id/tv_pcontext"
200 205
                    android:layout_alignLeft="@+id/tv_pcontext"
201
                    android:layout_alignStart="@+id/tv_pcontext" />
206
                    android:layout_marginTop="10dp"
207
                    android:layout_marginBottom="8dp"
208
                    android:text=""
209
                    android:textAppearance="?android:attr/textAppearanceSmall"
210
                    android:textColor="#c8c8c8"
211
                    android:textSize="12sp" />
202 212
203 213
                <TextView
204 214
                    android:id="@+id/tv_pdelete"
205 215
                    android:layout_width="wrap_content"
206 216
                    android:layout_height="wrap_content"
207
                    android:layout_toRightOf="@+id/tv_ptime"
208 217
                    android:layout_alignTop="@+id/tv_ptime"
218
                    android:layout_toRightOf="@+id/tv_ptime"
209 219
                    android:paddingLeft="12dp"
210 220
                    android:paddingRight="12dp"
211 221
                    android:text="删除"
222
                    android:textColor="@color/ui_68"
212 223
                    android:textSize="12sp"
213
                    android:visibility="gone"
214
                    android:textColor="@color/ui_68"/>
224
                    android:visibility="gone" />
215 225
216 226
217 227
                <LinearLayout
@ -220,113 +230,113 @@
220 230
                    android:layout_height="wrap_content"
221 231
                    android:layout_below="@+id/iv_commentPic"
222 232
                    android:layout_toLeftOf="@+id/tv_preply"
223
                    android:paddingRight="13dp"
233
                    android:paddingLeft="10dp"
224 234
                    android:paddingTop="10dp"
225
                    android:paddingBottom="8dp"
226
                    android:paddingLeft="10dp">
235
                    android:paddingRight="13dp"
236
                    android:paddingBottom="8dp">
227 237
228 238
                    <ImageView
239
                        android:id="@+id/iv_pzan"
229 240
                        android:layout_width="wrap_content"
230 241
                        android:layout_height="wrap_content"
231
                        android:id="@+id/iv_pzan"
232 242
                        android:layout_gravity="center"
233
                        android:src="@drawable/icon_comment_zan"/>
243
                        android:src="@drawable/icon_comment_zan" />
234 244
235 245
                    <TextView
246
                        android:id="@+id/tv_pzan"
236 247
                        android:layout_width="wrap_content"
237 248
                        android:layout_height="wrap_content"
238
                        android:textAppearance="?android:attr/textAppearanceSmall"
249
                        android:layout_marginLeft="8dp"
250
                        android:gravity="center"
239 251
                        android:text="0"
240
                        android:textSize="12sp"
252
                        android:textAppearance="?android:attr/textAppearanceSmall"
241 253
                        android:textColor="@color/ui_68"
242
                        android:id="@+id/tv_pzan"
243
                        android:visibility="visible"
244
                        android:layout_marginLeft="8dp"
245
                        android:gravity="center" />
254
                        android:textSize="12sp"
255
                        android:visibility="visible" />
246 256
247 257
                </LinearLayout>
248 258
249 259
250 260
                <TextView
261
                    android:id="@+id/tv_preply"
251 262
                    android:layout_width="wrap_content"
252 263
                    android:layout_height="wrap_content"
253
                    android:textAppearance="?android:attr/textAppearanceSmall"
254
                    android:text="回复"
255
                    android:textSize="12sp"
256
                    android:textColor="#2fb3ff"
257
                    android:id="@+id/tv_preply"
258
                    android:visibility="visible"
259 264
                    android:layout_below="@+id/iv_commentPic"
260
                    android:layout_alignRight="@+id/tv_pcontext"
261 265
                    android:layout_alignEnd="@+id/tv_pcontext"
266
                    android:layout_alignRight="@+id/tv_pcontext"
262 267
                    android:layout_alignParentRight="true"
263
                    android:paddingRight="15dp"
264
                    android:paddingTop="10dp"
265 268
                    android:paddingLeft="12dp"
266
                    android:paddingBottom="8dp"/>
269
                    android:paddingTop="10dp"
270
                    android:paddingRight="15dp"
271
                    android:paddingBottom="8dp"
272
                    android:text="回复"
273
                    android:textAppearance="?android:attr/textAppearanceSmall"
274
                    android:textColor="#2fb3ff"
275
                    android:textSize="12sp"
276
                    android:visibility="visible" />
267 277
268 278
269 279
                <TextView
280
                    android:id="@+id/tv_childName"
270 281
                    android:layout_width="wrap_content"
271 282
                    android:layout_height="wrap_content"
272
                    android:textAppearance="?android:attr/textAppearanceSmall"
273
                    android:text="IEV5车主"
274
                    android:layout_marginTop="10dp"
275
                    android:id="@+id/tv_childName"
276 283
                    android:layout_below="@+id/tv_ptime"
277
                    android:layout_alignLeft="@+id/tv_ptime"
278 284
                    android:layout_alignStart="@+id/tv_ptime"
279
                    android:visibility="gone"/>
285
                    android:layout_alignLeft="@+id/tv_ptime"
286
                    android:layout_marginTop="10dp"
287
                    android:text="IEV5车主"
288
                    android:textAppearance="?android:attr/textAppearanceSmall"
289
                    android:visibility="gone" />
280 290
281 291
                <TextView
292
                    android:id="@+id/textView14"
282 293
                    android:layout_width="wrap_content"
283 294
                    android:layout_height="wrap_content"
284
                    android:textAppearance="?android:attr/textAppearanceSmall"
285
                    android:text="回复"
286
                    android:id="@+id/textView14"
287
                    android:layout_marginLeft="8dp"
288 295
                    android:layout_alignBaseline="@+id/tv_childName"
289 296
                    android:layout_alignBottom="@+id/tv_childName"
297
                    android:layout_marginLeft="8dp"
290 298
                    android:layout_toRightOf="@+id/tv_childName"
291
                    android:visibility="gone"/>
299
                    android:text="回复"
300
                    android:textAppearance="?android:attr/textAppearanceSmall"
301
                    android:visibility="gone" />
292 302
293 303
                <TextView
304
                    android:id="@+id/tv_parentName"
294 305
                    android:layout_width="wrap_content"
295 306
                    android:layout_height="wrap_content"
296
                    android:textAppearance="?android:attr/textAppearanceSmall"
297
                    android:text="EV200车主:"
298
                    android:id="@+id/tv_parentName"
299
                    android:layout_marginLeft="8dp"
300 307
                    android:layout_alignBottom="@+id/textView14"
301
                    android:layout_toRightOf="@+id/textView14"
308
                    android:layout_marginLeft="8dp"
302 309
                    android:layout_toEndOf="@+id/textView14"
303
                    android:visibility="gone"/>
310
                    android:layout_toRightOf="@+id/textView14"
311
                    android:text="EV200车主:"
312
                    android:textAppearance="?android:attr/textAppearanceSmall"
313
                    android:visibility="gone" />
304 314
305 315
                <TextView
316
                    android:id="@+id/tv_commentDetail"
306 317
                    android:layout_width="wrap_content"
307 318
                    android:layout_height="wrap_content"
308
                    android:textAppearance="?android:attr/textAppearanceSmall"
309
                    android:text="有故障!"
310
                    android:id="@+id/tv_commentDetail"
311 319
                    android:layout_alignBottom="@+id/tv_parentName"
312
                    android:layout_toRightOf="@+id/tv_parentName"
313
                    android:layout_toEndOf="@+id/tv_parentName"
314 320
                    android:layout_marginLeft="8dp"
315
                    android:visibility="gone"/>
321
                    android:layout_toEndOf="@+id/tv_parentName"
322
                    android:layout_toRightOf="@+id/tv_parentName"
323
                    android:text="有故障!"
324
                    android:textAppearance="?android:attr/textAppearanceSmall"
325
                    android:visibility="gone" />
316 326
317 327
                <com.electric.chargingpile.view.MyListView
318 328
                    android:id="@+id/lv_scomment"
319 329
                    android:layout_width="match_parent"
320 330
                    android:layout_height="wrap_content"
321
                    android:divider="#dddddd"
322
                    android:dividerHeight="0.5dp"
323 331
                    android:layout_below="@+id/tv_ptime"
324
                    android:background="#fafafa"
325
                    android:scrollbars="none"
326 332
                    android:layout_alignLeft="@+id/tv_ptime"
327
                    android:paddingLeft="15dp"
328 333
                    android:layout_marginRight="15dp"
329
                    android:layout_marginBottom="15dp"/>
334
                    android:layout_marginBottom="15dp"
335
                    android:background="#fafafa"
336
                    android:divider="#dddddd"
337
                    android:dividerHeight="0.5dp"
338
                    android:paddingLeft="15dp"
339
                    android:scrollbars="none" />
330 340
331 341
                <TextView
332 342
                    android:id="@+id/tv_more"
@ -335,15 +345,12 @@
335 345
                    android:layout_below="@+id/lv_scomment"
336 346
                    android:layout_alignLeft="@+id/lv_scomment"
337 347
                    android:layout_alignRight="@+id/lv_scomment"
348
                    android:background="@drawable/bg_03"
349
                    android:gravity="center"
338 350
                    android:text="查看剩余*条评论 >"
339 351
                    android:textColor="@color/lvse"
340
                    android:gravity="center"
341
                    android:background="@drawable/bg_03"
342 352
                    android:textSize="14sp"
343
                    android:visibility="gone"/>
344
345
346
353
                    android:visibility="gone" />
347 354
348 355
349 356
                <!--<LinearLayout-->
@ -391,9 +398,9 @@
391 398
392 399
                    android:layout_width="match_parent"
393 400
                    android:layout_height="0.5dp"
394
                    android:background="@color/Line"
395 401
                    android:layout_below="@+id/tv_ptime"
396
                    android:visibility="gone"/>
402
                    android:background="@color/Line"
403
                    android:visibility="gone" />
397 404
398 405
            </RelativeLayout>
399 406
@ -455,7 +462,6 @@
455 462
            <!--android:visibility="gone"/>-->
456 463
457 464
458
459 465
            <!--<TextView-->
460 466
            <!--android:layout_width="wrap_content"-->
461 467
            <!--android:layout_height="wrap_content"-->
@ -471,8 +477,6 @@
471 477
            <!--android:layout_alignStart="@+id/tv_carType_son" />-->
472 478
473 479
474
475
476 480
            <!--<TextView-->
477 481
            <!--android:layout_width="wrap_content"-->
478 482
            <!--android:layout_height="wrap_content"-->
@ -583,10 +587,10 @@
583 587
                android:id="@+id/vvv"
584 588
                android:layout_width="match_parent"
585 589
                android:layout_height="0.5dp"
586
                android:background="@color/Line"
587 590
                android:layout_below="@+id/lv_scomment"
588 591
                android:layout_marginTop="10dp"
589
                android:visibility="gone"/>
592
                android:background="@color/Line"
593
                android:visibility="gone" />
590 594
591 595
592 596
        </LinearLayout>
@ -597,15 +601,15 @@
597 601
        android:id="@+id/ll_comment"
598 602
        android:layout_width="match_parent"
599 603
        android:layout_height="45dp"
600
        android:orientation="vertical"
601 604
        android:layout_alignParentBottom="true"
605
        android:orientation="vertical"
602 606
        android:visibility="visible">
603 607
604 608
        <View
605 609
            android:layout_width="match_parent"
606 610
            android:layout_height="0.5dp"
607 611
            android:background="@color/Line"
608
            android:visibility="visible"/>
612
            android:visibility="visible" />
609 613
610 614
        <RelativeLayout
611 615
            android:layout_width="match_parent"
@ -617,18 +621,18 @@
617 621
                android:id="@+id/et_commet"
618 622
                android:layout_width="match_parent"
619 623
                android:layout_height="match_parent"
620
                android:layout_alignParentLeft="true"
621 624
                android:layout_alignParentStart="true"
625
                android:layout_alignParentLeft="true"
622 626
                android:layout_centerVertical="true"
623
                android:layout_marginBottom="7dp"
624 627
                android:layout_marginLeft="15dp"
625
                android:layout_toLeftOf="@+id/tv_submit"
626 628
                android:layout_marginTop="7dp"
629
                android:layout_marginBottom="7dp"
630
                android:layout_toLeftOf="@+id/tv_submit"
627 631
                android:background="@drawable/textview_style"
628 632
                android:hint="说点什么吧..."
629
                android:paddingBottom="3dp"
630 633
                android:paddingLeft="12dp"
631 634
                android:paddingTop="3dp"
635
                android:paddingBottom="3dp"
632 636
                android:textColorHint="#c8c8c8"
633 637
                android:textSize="15sp" />
634 638
@ -636,16 +640,16 @@
636 640
                android:id="@+id/tv_submit"
637 641
                android:layout_width="wrap_content"
638 642
                android:layout_height="match_parent"
639
                android:paddingLeft="12dp"
640
                android:paddingRight="15dp"
641 643
                android:layout_alignParentEnd="true"
642 644
                android:layout_alignParentRight="true"
643 645
                android:layout_centerVertical="true"
644 646
                android:layout_gravity="center"
645 647
                android:gravity="center"
648
                android:paddingLeft="12dp"
649
                android:paddingRight="15dp"
646 650
                android:text="发表"
647
                android:textSize="15sp"
648
                android:textColor="@color/lvse"/>
651
                android:textColor="@color/lvse"
652
                android:textSize="15sp" />
649 653
650 654
        </RelativeLayout>
651 655
@ -656,17 +660,17 @@
656 660
        android:layout_width="80dp"
657 661
        android:layout_height="80dp"
658 662
        android:layout_alignBottom="@+id/sv"
659
        android:layout_marginBottom="50dp"
660
        android:layout_centerHorizontal="true"
661 663
        android:layout_alignParentBottom="true"
662
        android:visibility="gone"
663
        android:background="@drawable/icon_point_bg">
664
        android:layout_centerHorizontal="true"
665
        android:layout_marginBottom="50dp"
666
        android:background="@drawable/icon_point_bg"
667
        android:visibility="gone">
664 668
665 669
        <LinearLayout
666 670
            android:layout_width="wrap_content"
667 671
            android:layout_height="wrap_content"
668
            android:orientation="vertical"
669
            android:layout_centerInParent="true">
672
            android:layout_centerInParent="true"
673
            android:orientation="vertical">
670 674
671 675
            <LinearLayout
672 676
                android:layout_width="wrap_content"
@ -677,17 +681,17 @@
677 681
                    android:layout_width="wrap_content"
678 682
                    android:layout_height="wrap_content"
679 683
                    android:text="+"
680
                    android:textSize="16sp"
681
                    android:textColor="@color/white"/>
684
                    android:textColor="@color/white"
685
                    android:textSize="16sp" />
682 686
683 687
                <TextView
684 688
                    android:id="@+id/tv_point"
685 689
                    android:layout_width="wrap_content"
686 690
                    android:layout_height="wrap_content"
687
                    android:text="20"
688
                    android:textSize="19sp"
689 691
                    android:layout_marginLeft="2dp"
690
                    android:textColor="@color/white"/>
692
                    android:text="20"
693
                    android:textColor="@color/white"
694
                    android:textSize="19sp" />
691 695
692 696
693 697
            </LinearLayout>
@ -696,16 +700,15 @@
696 700
                android:layout_width="wrap_content"
697 701
                android:layout_height="wrap_content"
698 702
                android:layout_gravity="center_horizontal"
703
                android:layout_marginTop="2dp"
699 704
                android:text="充电币"
700
                android:textSize="13sp"
701 705
                android:textColor="@color/white"
702
                android:layout_marginTop="2dp"/>
706
                android:textSize="13sp" />
703 707
704 708
705 709
        </LinearLayout>
706 710
707 711
708
709 712
    </RelativeLayout>
710 713
711 714
</RelativeLayout>