Browse Source

拍照权限修改

huyuguo 5 years ago
parent
commit
6e0146e953

+ 8 - 0
app/src/main/java/com/electric/chargingpile/activity/AlterOneActivity.java

43
import android.widget.TextView;
43
import android.widget.TextView;
44
import android.widget.Toast;
44
import android.widget.Toast;
45

45

46
import androidx.annotation.NonNull;
47

46
import com.electric.chargingpile.R;
48
import com.electric.chargingpile.R;
47
import com.electric.chargingpile.application.MainApplication;
49
import com.electric.chargingpile.application.MainApplication;
48
import com.electric.chargingpile.data.Zhan;
50
import com.electric.chargingpile.data.Zhan;
940
    }
942
    }
941

943

942
    @Override
944
    @Override
945
    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
946
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);
947
        EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
948
    }
949

950
    @Override
943
    public void onPermissionsGranted(int requestCode, List<String> perms) {
951
    public void onPermissionsGranted(int requestCode, List<String> perms) {
944

952

945
    }
953
    }

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

3118
3118
3119
    private boolean isPermissionOK() {
3119
    private boolean isPermissionOK() {
3120
        return EasyPermissions.hasPermissions(this,
3120
        return EasyPermissions.hasPermissions(this,
3121
                Manifest.permission.CAMERA,
3121
                Manifest.permission.WRITE_EXTERNAL_STORAGE,
3122
                Manifest.permission.WRITE_EXTERNAL_STORAGE,
3122
                Manifest.permission.READ_EXTERNAL_STORAGE
3123
                Manifest.permission.READ_EXTERNAL_STORAGE
3123
        );
3124
        );

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

47
import android.widget.Toast;
47
import android.widget.Toast;
48
import android.widget.ToggleButton;
48
import android.widget.ToggleButton;
49
49
50
import androidx.annotation.NonNull;
50
import androidx.annotation.Nullable;
51
import androidx.annotation.Nullable;
51
import androidx.constraintlayout.widget.ConstraintLayout;
52
import androidx.constraintlayout.widget.ConstraintLayout;
52
53
395
                .choose(MimeType.of(MimeType.JPEG, MimeType.PNG, MimeType.GIF))
396
                .choose(MimeType.of(MimeType.JPEG, MimeType.PNG, MimeType.GIF))
396
                .showSingleMediaType(true)
397
                .showSingleMediaType(true)
397
                .countable(true)
398
                .countable(true)
398
                .maxSelectable(PIC_NUM - Bimp.tempSelectBitmap.size())
399
                .maxSelectable(1)
399
                .capture(true)
400
                .capture(true)
400
                .captureStrategy(new CaptureStrategy(true, "com.electric.chargingpile.provider"))
401
                .captureStrategy(new CaptureStrategy(true, "com.electric.chargingpile.provider"))
401
                .imageEngine(new GlideEngine())
402
                .imageEngine(new GlideEngine())
1049
    }
1050
    }
1050
1051
1051
    @Override
1052
    @Override
1053
    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
1054
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);
1055
        EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
1056
    }
1057
1058
    @Override
1052
    public void onPermissionsGranted(int requestCode, List<String> perms) {
1059
    public void onPermissionsGranted(int requestCode, List<String> perms) {
1053
1060
1054
    }
1061
    }

+ 12 - 75
app/src/main/java/com/electric/chargingpile/activity/ZhanCommentActivity.java

42
import android.widget.TextView;
42
import android.widget.TextView;
43
import android.widget.Toast;
43
import android.widget.Toast;
44
44
45
import androidx.annotation.NonNull;
46
45
import com.blankj.utilcode.util.CacheUtils;
47
import com.blankj.utilcode.util.CacheUtils;
46
import com.electric.chargingpile.R;
48
import com.electric.chargingpile.R;
47
import com.electric.chargingpile.application.MainApplication;
49
import com.electric.chargingpile.application.MainApplication;
216
        relativeLayout.setOnClickListener(new View.OnClickListener() {
218
        relativeLayout.setOnClickListener(new View.OnClickListener() {
217
            @Override
219
            @Override
218
            public void onClick(View v) {
220
            public void onClick(View v) {
219
//                Toast.makeText(getContext(),"!!!",Toast.LENGTH_SHORT).show();
220
//                ((NewZhanDetailsActivity) getApplicationContext()).hideKeyboard(ZhanCommentActivity.et_commet);
221
221
222
            }
222
            }
223
        });
223
        });
224
224
225
225
226
//        RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(
227
//                ViewGroup.LayoutParams.WRAP_CONTENT,
228
//                ViewGroup.LayoutParams.WRAP_CONTENT);// 设置布局管理器参数
229
//        params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);//
230
//        params.addRule(RelativeLayout.CENTER_HORIZONTAL);
231
//        params.setMargins(0, 0, 0, 230);
232
//        tv_point.setGravity(Gravity.CENTER);
233
//        tv_point.setVisibility(View.GONE);
234
//        // 设置放置规则
235
//        relativeLayout.addView(tv_point, params);
236
//        tv_point.startAnimation(animation);
237
        rl_huodong = (RelativeLayout) findViewById(R.id.rl_huodong);
226
        rl_huodong = (RelativeLayout) findViewById(R.id.rl_huodong);
238
        tv_grade = (TextView) findViewById(R.id.tv_grade);
227
        tv_grade = (TextView) findViewById(R.id.tv_grade);
239
        tv_huodong = (TextView) findViewById(R.id.tv_huodong);
228
        tv_huodong = (TextView) findViewById(R.id.tv_huodong);
259
248
260
            @Override
249
            @Override
261
            public void onTextChanged(CharSequence s, int start, int before, int count) {
250
            public void onTextChanged(CharSequence s, int start, int before, int count) {
262
//                if (et_pinglun.getText().toString().equals("")){
263
//                    tv_make_sure.setBackgroundResource(R.color.huise);
264
//                    tv_make_sure.setEnabled(false);
265
//                }else {
266
//                    tv_make_sure.setBackgroundResource(R.color.lvse);
267
//                    tv_make_sure.setEnabled(true);
268
//                }
269
            }
251
            }
270
252
271
            @Override
253
            @Override
281
                } else {
263
                } else {
282
                    Log.e("edit===", et_pinglun.getText().toString());
264
                    Log.e("edit===", et_pinglun.getText().toString());
283
                    if (et_pinglun.getText().toString().equals("#" + MainApplication.huodonglabel + "# ")) {
265
                    if (et_pinglun.getText().toString().equals("#" + MainApplication.huodonglabel + "# ")) {
284
//                        tv_make_sure.setBackgroundResource(R.color.huise);
285
//                        tv_make_sure.setEnabled(false);
286
                        if (!star_level.equals("") && !select_s.equals("")) {
266
                        if (!star_level.equals("") && !select_s.equals("")) {
287
                            tv_make_sure.setTextColor(getResources().getColor(R.color.lvse));
267
                            tv_make_sure.setTextColor(getResources().getColor(R.color.lvse));
288
                            tv_make_sure.setEnabled(true);
268
                            tv_make_sure.setEnabled(true);
332
                    }
312
                    }
333
                } else {
313
                } else {
334
                    if (et_pinglun.getText().toString().equals("#" + MainApplication.huodonglabel + "# ")) {
314
                    if (et_pinglun.getText().toString().equals("#" + MainApplication.huodonglabel + "# ")) {
335
//                        tv_make_sure.setBackgroundResource(R.color.huise);
336
//                        tv_make_sure.setEnabled(false);
337
                        if (!star_level.equals("") && !select_s.equals("")) {
315
                        if (!star_level.equals("") && !select_s.equals("")) {
338
                            tv_make_sure.setTextColor(getResources().getColor(R.color.lvse));
316
                            tv_make_sure.setTextColor(getResources().getColor(R.color.lvse));
339
                            tv_make_sure.setEnabled(true);
317
                            tv_make_sure.setEnabled(true);
476
454
477
455
478
        final RelativeLayout parent = (RelativeLayout) view.findViewById(R.id.parent);
456
        final RelativeLayout parent = (RelativeLayout) view.findViewById(R.id.parent);
479
        Button bt1 = (Button) view
480
                .findViewById(R.id.item_popupwindows_camera);
481
        Button bt2 = (Button) view
482
                .findViewById(R.id.item_popupwindows_Photo);
483
        Button bt3 = (Button) view
484
                .findViewById(R.id.item_popupwindows_cancel);
457
        Button bt1 = (Button) view.findViewById(R.id.item_popupwindows_camera);
458
        Button bt2 = (Button) view.findViewById(R.id.item_popupwindows_Photo);
459
        Button bt3 = (Button) view.findViewById(R.id.item_popupwindows_cancel);
485
        parent.setOnClickListener(new View.OnClickListener() {
460
        parent.setOnClickListener(new View.OnClickListener() {
486
461
487
            @Override
462
            @Override
494
        bt1.setOnClickListener(new View.OnClickListener() {
469
        bt1.setOnClickListener(new View.OnClickListener() {
495
            public void onClick(View v) {
470
            public void onClick(View v) {
496
                photo();
471
                photo();
497
//                saveFullImage();
498
                pop.dismiss();
472
                pop.dismiss();
499
//                Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
500
//                ((Activity) mContext).startActivityForResult(intent, 2);
501
                ll_popup.clearAnimation();
473
                ll_popup.clearAnimation();
502
            }
474
            }
503
        });
475
        });
504
        bt2.setOnClickListener(new View.OnClickListener() {
476
        bt2.setOnClickListener(new View.OnClickListener() {
505
            public void onClick(View v) {
477
            public void onClick(View v) {
506
                Intent intent = new Intent(ZhanCommentActivity.this,
507
                        AlbumActivityComment.class);
478
                Intent intent = new Intent(ZhanCommentActivity.this, AlbumActivityComment.class);
508
                startActivity(intent);
479
                startActivity(intent);
509
                overridePendingTransition(R.anim.activity_translate_in, R.anim.activity_translate_out);
480
                overridePendingTransition(R.anim.activity_translate_in, R.anim.activity_translate_out);
510
//                startActivityForResult(intent, 1);
511
                pop.dismiss();
481
                pop.dismiss();
512
                ll_popup.clearAnimation();
482
                ll_popup.clearAnimation();
513
            }
483
            }
643
        long updatetime = appTime1 - MainMapActivity.cha - 1;
613
        long updatetime = appTime1 - MainMapActivity.cha - 1;
644
        Log.i("updatetime(long)---", updatetime + "");
614
        Log.i("updatetime(long)---", updatetime + "");
645
        Log.i("cha---", MainMapActivity.cha + "");
615
        Log.i("cha---", MainMapActivity.cha + "");
646
//        String token = String.valueOf(updatetime);
647
//        Log.i("token---", token);
648
        for (int i = 0; i < Bimp.tempSelectBitmap.size(); i++) {
616
        for (int i = 0; i < Bimp.tempSelectBitmap.size(); i++) {
649
            try {
617
            try {
650
                bm = imageZoom(Bimp.tempSelectBitmap.get(i).getBitmap());
618
                bm = imageZoom(Bimp.tempSelectBitmap.get(i).getBitmap());
709
                if (select_s.contains(stringArr[position])) {
677
                if (select_s.contains(stringArr[position])) {
710
                    String s = stringArr[position] + ",";
678
                    String s = stringArr[position] + ",";
711
                    select_s = select_s.replaceAll(s, "");
679
                    select_s = select_s.replaceAll(s, "");
712
//                    Log.e("select===",select_s);
713
                } else {
680
                } else {
714
                    select_s += stringArr[position] + ",";
681
                    select_s += stringArr[position] + ",";
715
                }
682
                }
716
//                if (!select_s.equals("")) {
717
//                    select_s = select_s.substring(0, select_s.length() - 1);
718
//                }
719
                Log.e("select===", select_s);
683
                Log.e("select===", select_s);
720
684
721
685
729
                    }
693
                    }
730
                } else {
694
                } else {
731
                    if (et_pinglun.getText().toString().equals("#" + MainApplication.huodonglabel + "# ")) {
695
                    if (et_pinglun.getText().toString().equals("#" + MainApplication.huodonglabel + "# ")) {
732
//                        tv_make_sure.setBackgroundResource(R.color.huise);
733
//                        tv_make_sure.setEnabled(false);
734
                        if (!star_level.equals("") && !select_s.equals("")) {
696
                        if (!star_level.equals("") && !select_s.equals("")) {
735
                            tv_make_sure.setTextColor(getResources().getColor(R.color.lvse));
697
                            tv_make_sure.setTextColor(getResources().getColor(R.color.lvse));
736
                            tv_make_sure.setEnabled(true);
698
                            tv_make_sure.setEnabled(true);
756
718
757
    private void addComment(String fileUrl, String thumUrl) throws Exception {
719
    private void addComment(String fileUrl, String thumUrl) throws Exception {
758
        long appTime1 = System.currentTimeMillis() / 1000;
720
        long appTime1 = System.currentTimeMillis() / 1000;
759
//        Log.i("appTime(long)---", appTime1 + "");
760
        long updatetime = appTime1 - MainMapActivity.cha - 2;
721
        long updatetime = appTime1 - MainMapActivity.cha - 2;
761
//        Log.i("updatetime(long)---", updatetime + "");
762
//        Log.i("cha---", MainMapActivity.cha + "");
763
        String token = String.valueOf(updatetime);
722
        String token = String.valueOf(updatetime);
764
//        Log.e("commentType==",commentType+"");
765
766
        String childCommentUrl = "";
723
        String childCommentUrl = "";
767
        if (commentsBean != null) {
724
        if (commentsBean != null) {
768
            childCommentUrl = "&parentid=" + commentsBean.getId() + "&puserid=" + commentsBean.getUserid();
725
            childCommentUrl = "&parentid=" + commentsBean.getId() + "&puserid=" + commentsBean.getUserid();
798
755
799
                            submitPF(data);
756
                            submitPF(data);
800
                            dialog.cancel();
757
                            dialog.cancel();
801
//                            Toast.makeText(getApplicationContext(),"评论成功",Toast.LENGTH_SHORT).show();
802
//                                    new Handler().postDelayed(new Runnable() {
803
//                                        public void run() {
804
//                                            finish();
805
//                                        }
806
//                                    }, 1000);
807
                            if (!plusScore.equals("")) {
758
                            if (!plusScore.equals("")) {
808
                                tv_point.setText(plusScore);
759
                                tv_point.setText(plusScore);
809
                                rl_point.setVisibility(View.VISIBLE);
760
                                rl_point.setVisibility(View.VISIBLE);
826
                                    }
777
                                    }
827
                                }, 1500);
778
                                }, 1500);
828
                            }
779
                            }
829
//                            ZhanCommentActivity.relativeLayout.setVisibility(View.VISIBLE);
830
//                            ZhanCommentActivity.textView.setVisibility(View.VISIBLE);
831
//                            ZhanCommentActivity.textView.startAnimation(ZhanCommentActivity.animation);
832
//                            new Handler().postDelayed(new Runnable() {
833
//                                public void run() {
834
//                                    ZhanCommentActivity.textView.setVisibility(View.GONE);
835
//                                    MyOtto.getInstance().post(new RankinglistRefreshEvent());
836
//                                    finish();
837
//                                }
838
//                            }, 1500);
839
//                                    Toast.makeText(getApplicationContext(),"评论成功",Toast.LENGTH_SHORT).show();
840
//                                    CommentFragment.relativeLayout.setVisibility(View.VISIBLE);
841
//                                    CommentFragment.textView.setVisibility(View.VISIBLE);
842
//                                    CommentFragment.textView.startAnimation(CommentFragment.animation);
843
//                                    new Handler().postDelayed(new Runnable() {
844
//                                        public void run() {
845
//                                            CommentFragment.textView.setVisibility(View.GONE);
846
//                                        }
847
//                                    }, 2000);
848
                            NewZhanDetailsActivity.reFreshUi();
780
                            NewZhanDetailsActivity.reFreshUi();
849
850
                        } else {
781
                        } else {
851
                            ToastUtil.showToast(getApplicationContext(), rtnMsg, Toast.LENGTH_SHORT);
782
                            ToastUtil.showToast(getApplicationContext(), rtnMsg, Toast.LENGTH_SHORT);
852
                        }
783
                        }
935
    }
866
    }
936
867
937
    @Override
868
    @Override
869
    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
870
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);
871
        EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);
872
    }
873
874
    @Override
938
    public void onPermissionsGranted(int requestCode, List<String> perms) {
875
    public void onPermissionsGranted(int requestCode, List<String> perms) {
939
876
940
    }
877
    }

+ 67 - 80
app/src/main/res/layout/activity_zhan_comment.xml

1
<?xml version="1.0" encoding="utf-8"?>
1
<?xml version="1.0" encoding="utf-8"?>
2
<com.zhy.autolayout.AutoRelativeLayout
3
    xmlns:android="http://schemas.android.com/apk/res/android"
2
<com.zhy.autolayout.AutoRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
4
    xmlns:app="http://schemas.android.com/apk/res-auto"
3
    xmlns:app="http://schemas.android.com/apk/res-auto"
5
    xmlns:tools="http://schemas.android.com/tools"
4
    xmlns:tools="http://schemas.android.com/tools"
6
    xmlns:zhy="http://schemas.android.com/apk/res-auto"
5
    xmlns:zhy="http://schemas.android.com/apk/res-auto"
12
11
13
    <View
12
    <View
14
        android:id="@+id/view_title"
13
        android:id="@+id/view_title"
15
        android:layout_height="0.5dp"
16
        android:layout_width="match_parent"
14
        android:layout_width="match_parent"
17
        android:background="@color/ui_line"
18
        android:layout_below="@+id/rl_title"/>
15
        android:layout_height="0.5dp"
16
        android:layout_below="@+id/rl_title"
17
        android:background="@color/ui_line" />
19
18
20
    <ImageView
19
    <ImageView
21
        android:id="@+id/iv_hongbao"
20
        android:id="@+id/iv_hongbao"
23
        android:layout_height="wrap_content"
22
        android:layout_height="wrap_content"
24
        android:layout_alignParentBottom="true"
23
        android:layout_alignParentBottom="true"
25
        android:layout_centerHorizontal="true"
24
        android:layout_centerHorizontal="true"
25
        android:layout_marginBottom="56px"
26
        android:src="@drawable/icon_hongbao"
26
        android:src="@drawable/icon_hongbao"
27
        android:visibility="gone"
28
        android:layout_marginBottom="56px" />
27
        android:visibility="gone" />
29
28
30
    <com.zhy.autolayout.AutoRelativeLayout
29
    <com.zhy.autolayout.AutoRelativeLayout
31
        android:id="@+id/rl_title"
30
        android:id="@+id/rl_title"
32
        android:layout_width="match_parent"
31
        android:layout_width="match_parent"
33
        android:layout_height="130px"
32
        android:layout_height="130px"
34
        android:background="@color/title_background"
35
        android:layout_alignParentTop="true"
33
        android:layout_alignParentStart="true"
36
        android:layout_alignParentLeft="true"
34
        android:layout_alignParentLeft="true"
37
        android:layout_alignParentStart="true">
35
        android:layout_alignParentTop="true"
36
        android:background="@color/title_background">
38
37
39
        <TextView
38
        <TextView
40
            android:id="@+id/tv_zhan_name"
39
            android:id="@+id/tv_zhan_name"
52
            android:layout_alignParentLeft="true"
51
            android:layout_alignParentLeft="true"
53
            android:layout_centerVertical="true"
52
            android:layout_centerVertical="true"
54
            android:contentDescription="@null"
53
            android:contentDescription="@null"
55
            android:paddingBottom="4dp"
56
            android:paddingLeft="44px"
54
            android:paddingLeft="44px"
57
            android:paddingRight="44px"
58
            android:paddingTop="4dp"
55
            android:paddingTop="4dp"
56
            android:paddingRight="44px"
57
            android:paddingBottom="4dp"
59
            android:src="@drawable/icon_lvback1119" />
58
            android:src="@drawable/icon_lvback1119" />
60
59
61
        <TextView
60
        <TextView
62
            android:id="@+id/tv_make_sure"
61
            android:id="@+id/tv_make_sure"
63
            android:layout_width="wrap_content"
62
            android:layout_width="wrap_content"
64
            android:layout_height="match_parent"
63
            android:layout_height="match_parent"
64
            android:layout_alignParentRight="true"
65
            android:gravity="center"
65
            android:gravity="center"
66
            android:paddingLeft="15dp"
66
            android:paddingLeft="15dp"
67
            android:paddingRight="15dp"
67
            android:paddingRight="15dp"
68
            android:text="发表"
68
            android:text="发表"
69
            android:textColor="@color/lvse"
69
            android:textColor="@color/lvse"
70
            android:textSize="15sp"
71
            android:layout_alignParentRight="true" />
70
            android:textSize="15sp" />
72
    </com.zhy.autolayout.AutoRelativeLayout>
71
    </com.zhy.autolayout.AutoRelativeLayout>
73
72
74
    <com.electric.chargingpile.view.ObservableScrollView
73
    <com.electric.chargingpile.view.ObservableScrollView
75
        android:layout_width="match_parent"
74
        android:layout_width="match_parent"
76
        android:layout_height="wrap_content"
75
        android:layout_height="wrap_content"
77
        android:layout_below="@+id/view_title"
76
        android:layout_below="@+id/view_title"
78
        android:layout_alignParentLeft="true"
79
        android:layout_alignParentStart="true">
77
        android:layout_alignParentStart="true"
78
        android:layout_alignParentLeft="true">
80
79
81
        <com.zhy.autolayout.AutoLinearLayout
80
        <com.zhy.autolayout.AutoLinearLayout
82
            android:id="@+id/ll_pingfen"
81
            android:id="@+id/ll_pingfen"
83
            android:layout_width="match_parent"
82
            android:layout_width="match_parent"
84
            android:layout_height="wrap_content"
83
            android:layout_height="wrap_content"
84
            android:layout_alignParentStart="true"
85
            android:layout_alignParentLeft="true"
86
            android:background="@color/white"
85
            android:focusable="true"
87
            android:focusable="true"
86
            android:focusableInTouchMode="true"
88
            android:focusableInTouchMode="true"
87
            android:orientation="vertical"
88
            android:background="@color/white"
89
            android:layout_alignParentLeft="true"
90
            android:layout_alignParentStart="true">
89
            android:orientation="vertical">
91
90
92
            <RelativeLayout
91
            <RelativeLayout
93
                android:layout_width="match_parent"
92
                android:layout_width="match_parent"
94
                android:layout_height="58dp">
93
                android:layout_height="58dp">
95
94
96
                <TextView
95
                <TextView
96
                    android:id="@+id/textView33"
97
                    android:layout_width="wrap_content"
97
                    android:layout_width="wrap_content"
98
                    android:layout_height="wrap_content"
98
                    android:layout_height="wrap_content"
99
                    android:layout_centerVertical="true"
99
                    android:layout_gravity="center_horizontal"
100
                    android:layout_gravity="center_horizontal"
100
                    android:textColor="@color/ui_62"
101
                    android:textSize="14sp"
102
                    android:layout_marginLeft="15dp"
101
                    android:layout_marginLeft="15dp"
103
                    android:layout_centerVertical="true"
104
                    android:text="充电体验"
102
                    android:text="充电体验"
105
                    android:id="@+id/textView33" />
103
                    android:textColor="@color/ui_62"
104
                    android:textSize="14sp" />
106
105
107
                <com.electric.chargingpile.view.RatingBarView
106
                <com.electric.chargingpile.view.RatingBarView
108
                    android:id="@+id/custom_ratingbar"
107
                    android:id="@+id/custom_ratingbar"
109
                    android:layout_width="wrap_content"
108
                    android:layout_width="wrap_content"
110
                    android:layout_height="wrap_content"
109
                    android:layout_height="wrap_content"
110
                    android:layout_centerVertical="true"
111
                    android:layout_gravity="center_horizontal"
111
                    android:layout_gravity="center_horizontal"
112
                    android:layout_marginLeft="21dp"
113
                    android:layout_toRightOf="@+id/textView33"
112
                    android:stepSize="1"
114
                    android:stepSize="1"
113
                    android:layout_centerVertical="true"
114
                    app:starCount="5"
115
                    app:starCount="5"
115
                    app:starEmpty="@drawable/icon_star_empty"
116
                    app:starEmpty="@drawable/icon_star_empty"
116
                    app:starFill="@drawable/icon_star_full"
117
                    app:starFill="@drawable/icon_star_full"
117
                    app:starImageSize="24dp"
118
                    android:layout_toRightOf="@+id/textView33"
119
                    android:layout_marginLeft="21dp" />
118
                    app:starImageSize="24dp" />
120
119
121
                <TextView
120
                <TextView
122
                    android:id="@+id/tv_grade"
121
                    android:id="@+id/tv_grade"
123
                    android:layout_width="wrap_content"
122
                    android:layout_width="wrap_content"
124
                    android:layout_height="wrap_content"
123
                    android:layout_height="wrap_content"
125
                    android:layout_centerVertical="true"
124
                    android:layout_centerVertical="true"
126
                    android:layout_toRightOf="@+id/custom_ratingbar"
127
                    android:layout_marginLeft="20dp"
125
                    android:layout_marginLeft="20dp"
126
                    android:layout_toRightOf="@+id/custom_ratingbar"
127
                    android:text=""
128
                    android:textColor="#ffa900"
128
                    android:textColor="#ffa900"
129
                    android:textSize="20sp"
130
                    android:text=""/>
129
                    android:textSize="20sp" />
131
130
132
            </RelativeLayout>
131
            </RelativeLayout>
133
132
137
                android:layout_height="wrap_content"
136
                android:layout_height="wrap_content"
138
                android:layout_marginLeft="15dp"
137
                android:layout_marginLeft="15dp"
139
                android:layout_marginRight="15dp"
138
                android:layout_marginRight="15dp"
140
                app:paddingStart="0dp"
141
                app:paddingEnd="0dp"
139
                android:visibility="visible"
142
                app:gravity="left"
140
                app:gravity="left"
143
                zhy:max_select="-1"
144
                android:visibility="visible">
141
                app:paddingEnd="0dp"
142
                app:paddingStart="0dp"
143
                zhy:max_select="-1">
145
144
146
            </com.zhy.view.flowlayout.TagFlowLayout>
145
            </com.zhy.view.flowlayout.TagFlowLayout>
147
146
151
                android:layout_height="wrap_content">
150
                android:layout_height="wrap_content">
152
151
153
                <TextView
152
                <TextView
153
                    android:id="@+id/tv_huodong"
154
                    android:layout_width="wrap_content"
154
                    android:layout_width="wrap_content"
155
                    android:layout_height="wrap_content"
155
                    android:layout_height="wrap_content"
156
                    android:layout_centerVertical="true"
156
                    android:layout_centerVertical="true"
157
                    android:textColor="@color/ui_62"
158
                    android:textSize="14sp"
159
                    android:layout_marginLeft="15dp"
157
                    android:layout_marginLeft="15dp"
160
                    android:text="活动标签"
158
                    android:text="活动标签"
161
                    android:id="@+id/tv_huodong"/>
159
                    android:textColor="@color/ui_62"
160
                    android:textSize="14sp" />
162
161
163
                <com.zhy.view.flowlayout.TagFlowLayout
162
                <com.zhy.view.flowlayout.TagFlowLayout
164
                    android:id="@+id/id_flowlayout_activity"
163
                    android:id="@+id/id_flowlayout_activity"
176
            <View
175
            <View
177
                android:layout_width="match_parent"
176
                android:layout_width="match_parent"
178
                android:layout_height="0.5dp"
177
                android:layout_height="0.5dp"
179
                android:background="@color/Line"
180
                android:layout_marginLeft="15dp"
178
                android:layout_marginLeft="15dp"
181
                android:layout_marginTop="15dp"/>
179
                android:layout_marginTop="15dp"
180
                android:background="@color/Line" />
182
181
183
            <com.electric.chargingpile.view.REditText
182
            <com.electric.chargingpile.view.REditText
184
                android:id="@+id/et_pinglun"
183
                android:id="@+id/et_pinglun"
185
                android:layout_width="match_parent"
184
                android:layout_width="match_parent"
186
                android:layout_height="85dp"
185
                android:layout_height="85dp"
186
                android:layout_marginBottom="7dp"
187
                android:background="@color/white"
188
                android:gravity="left|top"
189
                android:hint="对本次充电感受如何?跟其他车友分享一下吧~"
187
                android:paddingLeft="15dp"
190
                android:paddingLeft="15dp"
188
                android:paddingRight="15dp"
189
                android:paddingTop="12dp"
191
                android:paddingTop="12dp"
192
                android:paddingRight="15dp"
190
                android:paddingBottom="12dp"
193
                android:paddingBottom="12dp"
191
                android:background="@color/white"
192
                android:hint="对本次充电感受如何?跟其他车友分享一下吧~"
193
                android:textColorHint="@color/ui_68"
194
                android:textColor="@color/ui_62"
194
                android:textColor="@color/ui_62"
195
                android:textColorHint="@color/ui_68"
195
                android:textSize="13sp"
196
                android:textSize="13sp"
196
                android:gravity="left|top"
197
                android:visibility="visible"
198
                android:layout_marginBottom="7dp"/>
197
                android:visibility="visible" />
199
198
200
            <GridView
199
            <GridView
201
                android:id="@+id/noScrollgridview"
200
                android:id="@+id/noScrollgridview"
206
                android:horizontalSpacing="3dp"
205
                android:horizontalSpacing="3dp"
207
                android:numColumns="3"
206
                android:numColumns="3"
208
                android:scrollbars="none"
207
                android:scrollbars="none"
209
                android:verticalSpacing="5dp" >
210
            </GridView>
208
                android:verticalSpacing="5dp"></GridView>
211
209
212
            <View
210
            <View
213
                android:layout_width="match_parent"
211
                android:layout_width="match_parent"
214
                android:layout_height="0.5dp"
212
                android:layout_height="0.5dp"
215
                android:background="@color/Line"
216
                android:layout_marginTop="15dp"/>
213
                android:layout_marginTop="15dp"
214
                android:background="@color/Line" />
217
215
218
        </com.zhy.autolayout.AutoLinearLayout>
216
        </com.zhy.autolayout.AutoLinearLayout>
219
217
223
        android:id="@+id/tv_one"
221
        android:id="@+id/tv_one"
224
        android:layout_width="wrap_content"
222
        android:layout_width="wrap_content"
225
        android:layout_height="wrap_content"
223
        android:layout_height="wrap_content"
224
        android:layout_alignParentBottom="true"
225
        android:layout_centerHorizontal="true"
226
        android:layout_gravity="center"
226
        android:layout_gravity="center"
227
        android:layout_marginBottom="51dp"
228
        android:background="@drawable/icon_5point"
227
        android:gravity="center"
229
        android:gravity="center"
228
        android:padding="5dp"
230
        android:padding="5dp"
229
        android:scaleType="fitXY"
231
        android:scaleType="fitXY"
230
        android:background="@drawable/icon_5point"
231
        android:textColor="#000000"
232
        android:textColor="#000000"
232
        android:visibility="gone"
233
        android:layout_marginBottom="51dp"
234
        android:layout_alignParentBottom="true"
235
        android:layout_centerHorizontal="true" />
233
        android:visibility="gone" />
236
234
237
235
238
    <RelativeLayout
236
    <RelativeLayout
239
        android:id="@+id/rl_point"
237
        android:id="@+id/rl_point"
240
        android:layout_width="80dp"
238
        android:layout_width="80dp"
241
        android:layout_height="80dp"
239
        android:layout_height="80dp"
242
        android:layout_marginBottom="50dp"
243
        android:layout_centerHorizontal="true"
244
        android:layout_alignParentBottom="true"
240
        android:layout_alignParentBottom="true"
245
        android:visibility="gone"
246
        android:background="@drawable/icon_point_bg">
241
        android:layout_centerHorizontal="true"
242
        android:layout_marginBottom="50dp"
243
        android:background="@drawable/icon_point_bg"
244
        android:visibility="gone">
247
245
248
        <LinearLayout
246
        <LinearLayout
249
            android:layout_width="wrap_content"
247
            android:layout_width="wrap_content"
250
            android:layout_height="wrap_content"
248
            android:layout_height="wrap_content"
251
            android:orientation="vertical"
252
            android:layout_centerInParent="true">
249
            android:layout_centerInParent="true"
250
            android:orientation="vertical">
253
251
254
            <LinearLayout
252
            <LinearLayout
255
                android:layout_width="wrap_content"
253
                android:layout_width="wrap_content"
260
                    android:layout_width="wrap_content"
258
                    android:layout_width="wrap_content"
261
                    android:layout_height="wrap_content"
259
                    android:layout_height="wrap_content"
262
                    android:text="+"
260
                    android:text="+"
263
                    android:textSize="16sp"
264
                    android:textColor="@color/white"/>
261
                    android:textColor="@color/white"
262
                    android:textSize="16sp" />
265
263
266
                <TextView
264
                <TextView
267
                    android:id="@+id/tv_point"
265
                    android:id="@+id/tv_point"
268
                    android:layout_width="wrap_content"
266
                    android:layout_width="wrap_content"
269
                    android:layout_height="wrap_content"
267
                    android:layout_height="wrap_content"
270
                    android:text="20"
271
                    android:textSize="19sp"
272
                    android:layout_marginLeft="2dp"
268
                    android:layout_marginLeft="2dp"
273
                    android:textColor="@color/white"/>
274
275
269
                    android:text="20"
270
                    android:textColor="@color/white"
271
                    android:textSize="19sp" />
276
            </LinearLayout>
272
            </LinearLayout>
277
278
            <TextView
273
            <TextView
279
                android:layout_width="wrap_content"
274
                android:layout_width="wrap_content"
280
                android:layout_height="wrap_content"
275
                android:layout_height="wrap_content"
281
                android:layout_gravity="center_horizontal"
276
                android:layout_gravity="center_horizontal"
277
                android:layout_marginTop="2dp"
282
                android:text="充电币"
278
                android:text="充电币"
283
                android:textSize="13sp"
284
                android:textColor="@color/white"
279
                android:textColor="@color/white"
285
                android:layout_marginTop="2dp"/>
286
287
280
                android:textSize="13sp" />
288
        </LinearLayout>
281
        </LinearLayout>
289
290
291
292
    </RelativeLayout>
282
    </RelativeLayout>
293
294
295
296
</com.zhy.autolayout.AutoRelativeLayout>
283
</com.zhy.autolayout.AutoRelativeLayout>