Browse Source

代码修改

huyuguo 4 years ago
parent
commit
e3e960f2f7

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

192
        submit_btn.setOnClickListener(this);
192
        submit_btn.setOnClickListener(this);
193
193
194
        if (edit) {
194
        if (edit) {
195
            nav_title.setText("更新车主认证");
195
            Gson gson = new Gson();
196
            Gson gson = new Gson();
196
            CarModelEvent event = new CarModelEvent(gson.fromJson(carOwnerCertificateBean.getChexing(), CarModelEntity.class));
197
            CarModelEvent event = new CarModelEvent(gson.fromJson(carOwnerCertificateBean.getChexing(), CarModelEntity.class));
197
            onCarModelMessage(event);
198
            onCarModelMessage(event);
225
                driving_license_type_first.setCompoundDrawables(selected, null, null, null);
226
                driving_license_type_first.setCompoundDrawables(selected, null, null, null);
226
                driving_license_type_second.setCompoundDrawables(normal, null, null, null);
227
                driving_license_type_second.setCompoundDrawables(normal, null, null, null);
227
                driving_license_type_third.setCompoundDrawables(normal, null, null, null);
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
                driving_license_type_first.setCompoundDrawables(normal, null, null, null);
231
                driving_license_type_first.setCompoundDrawables(normal, null, null, null);
231
                driving_license_type_second.setCompoundDrawables(selected, null, null, null);
232
                driving_license_type_second.setCompoundDrawables(selected, null, null, null);
232
                driving_license_type_third.setCompoundDrawables(normal, null, null, null);
233
                driving_license_type_third.setCompoundDrawables(normal, null, null, null);
236
                driving_license_type_second.setCompoundDrawables(normal, null, null, null);
237
                driving_license_type_second.setCompoundDrawables(normal, null, null, null);
237
                driving_license_type_third.setCompoundDrawables(selected, null, null, null);
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
                driving_license_type_third.setCompoundDrawables(normal, null, null, null);
306
                driving_license_type_third.setCompoundDrawables(normal, null, null, null);
304
                break;
307
                break;
305
            case R.id.driving_license_type_second:
308
            case R.id.driving_license_type_second:
306
                drivingLicenseType = "营";
309
                drivingLicenseType = "营";
307
                driving_license_type_first.setCompoundDrawables(normal, null, null, null);
310
                driving_license_type_first.setCompoundDrawables(normal, null, null, null);
308
                driving_license_type_second.setCompoundDrawables(selected, null, null, null);
311
                driving_license_type_second.setCompoundDrawables(selected, null, null, null);
309
                driving_license_type_third.setCompoundDrawables(normal, null, null, null);
312
                driving_license_type_third.setCompoundDrawables(normal, null, null, null);

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

192
192
193
    private void getitem(String sms) {
193
    private void getitem(String sms) {
194
194
195
196
        long appTime1 = System.currentTimeMillis() / 1000;
195
        long appTime1 = System.currentTimeMillis() / 1000;
197
        Log.i("appTime(long)---", appTime1 + "");
196
        Log.i("appTime(long)---", appTime1 + "");
198
        long updatetime = appTime1 - MainMapActivity.cha - 3;
197
        long updatetime = appTime1 - MainMapActivity.cha - 3;

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

28
import com.electric.chargingpile.data.RankinglistRefreshEvent;
28
import com.electric.chargingpile.data.RankinglistRefreshEvent;
29
import com.electric.chargingpile.fragment.ZhanCommentFragment;
29
import com.electric.chargingpile.fragment.ZhanCommentFragment;
30
import com.electric.chargingpile.util.BarColorUtil;
30
import com.electric.chargingpile.util.BarColorUtil;
31
import com.electric.chargingpile.util.CarTypeUtil;
31
import com.electric.chargingpile.util.DES3;
32
import com.electric.chargingpile.util.DES3;
32
import com.electric.chargingpile.util.JsonUtils;
33
import com.electric.chargingpile.util.JsonUtils;
33
import com.electric.chargingpile.util.LoadingDialog;
34
import com.electric.chargingpile.util.LoadingDialog;
75
    private TextView tv_point;
76
    private TextView tv_point;
76
    private RelativeLayout rl_point;
77
    private RelativeLayout rl_point;
77
    private android.view.animation.Animation animation;
78
    private android.view.animation.Animation animation;
79
    private ImageView certified_icon;
78
80
79
    @Override
81
    @Override
80
    protected void onCreate(Bundle savedInstanceState) {
82
    protected void onCreate(Bundle savedInstanceState) {
109
        tv_preply = (TextView) findViewById(R.id.tv_preply);
111
        tv_preply = (TextView) findViewById(R.id.tv_preply);
110
        tv_preply.setOnClickListener(this);
112
        tv_preply.setOnClickListener(this);
111
        tv_pcar = (TextView) findViewById(R.id.tv_pcar);
113
        tv_pcar = (TextView) findViewById(R.id.tv_pcar);
114
        certified_icon = (ImageView)findViewById(R.id.certified_icon);
112
        fl_ptag = (TagFlowLayout) findViewById(R.id.fl_ptag);
115
        fl_ptag = (TagFlowLayout) findViewById(R.id.fl_ptag);
113
        iv_commentPic = (ImageView) findViewById(R.id.iv_commentPic);
116
        iv_commentPic = (ImageView) findViewById(R.id.iv_commentPic);
114
        iv_pgrade = (ImageView) findViewById(R.id.iv_pgrade);
117
        iv_pgrade = (ImageView) findViewById(R.id.iv_pgrade);
245
            }
248
            }
246
            tv_pcontext.setText(ss);
249
            tv_pcontext.setText(ss);
247
        }
250
        }
251
252
248
        //设置车型
253
        //设置车型
249
        String hascar = JsonUtils.getKeyResult(data, "hascar");
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
        } else {
261
        } else {
258
            tv_pcar.setText(name0 + name1);
262
            certified_icon.setVisibility(View.GONE);
259
        }
263
        }
264
260
        //设置标签
265
        //设置标签
261
        String tag = JsonUtils.getKeyResult(data, "tag");
266
        String tag = JsonUtils.getKeyResult(data, "tag");
262
        if (tag != null) {
267
        if (tag != null) {

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

9
import android.content.pm.PackageManager;
9
import android.content.pm.PackageManager;
10
import android.graphics.Bitmap;
10
import android.graphics.Bitmap;
11
import android.graphics.drawable.Drawable;
11
import android.graphics.drawable.Drawable;
12
import android.net.Uri;
12
import android.os.Build;
13
import android.os.Build;
13
import android.os.Bundle;
14
import android.os.Bundle;
14
import android.os.Environment;
15
import android.os.Environment;
16
import android.os.Message;
17
import android.os.Message;
17

18

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

23

46
import com.electric.chargingpile.util.DES3;
48
import com.electric.chargingpile.util.DES3;
47
import com.electric.chargingpile.util.JsonUtils;
49
import com.electric.chargingpile.util.JsonUtils;
48
import com.electric.chargingpile.util.OkHttpUtil;
50
import com.electric.chargingpile.util.OkHttpUtil;
51
import com.electric.chargingpile.view.AlertDialogTwo;
49
import com.electric.chargingpile.view.ViewPagerAdapter;
52
import com.electric.chargingpile.view.ViewPagerAdapter;
50
import com.google.gson.Gson;
53
import com.google.gson.Gson;
51
import com.google.gson.reflect.TypeToken;
54
import com.google.gson.reflect.TypeToken;
307

310

308
            viewPager.setAdapter(new ViewPagerAdapter(views));
311
            viewPager.setAdapter(new ViewPagerAdapter(views));
309
            viewPager.setCurrentItem(0);
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
    public void getVersion() {
355
    public void getVersion() {
314
        try {
356
        try {
315
            PackageManager manager = getApplication().getPackageManager();
357
            PackageManager manager = getApplication().getPackageManager();

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

156
        LogUtils.getConfig().setLogSwitch(true);
156
        LogUtils.getConfig().setLogSwitch(true);
157

157

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

161

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

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