浏览代码

拍照权限修改

huyuguo 4 年之前
父节点
当前提交
6e0146e953

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

@ -43,6 +43,8 @@ import android.widget.RelativeLayout;
43 43
import android.widget.TextView;
44 44
import android.widget.Toast;
45 45

46
import androidx.annotation.NonNull;
47

46 48
import com.electric.chargingpile.R;
47 49
import com.electric.chargingpile.application.MainApplication;
48 50
import com.electric.chargingpile.data.Zhan;
@ -940,6 +942,12 @@ public class AlterOneActivity extends Activity implements View.OnClickListener,
940 942
    }
941 943

942 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 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,6 +3118,7 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
3118 3118
3119 3119
    private boolean isPermissionOK() {
3120 3120
        return EasyPermissions.hasPermissions(this,
3121
                Manifest.permission.CAMERA,
3121 3122
                Manifest.permission.WRITE_EXTERNAL_STORAGE,
3122 3123
                Manifest.permission.READ_EXTERNAL_STORAGE
3123 3124
        );

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

@ -47,6 +47,7 @@ import android.widget.TimePicker;
47 47
import android.widget.Toast;
48 48
import android.widget.ToggleButton;
49 49
50
import androidx.annotation.NonNull;
50 51
import androidx.annotation.Nullable;
51 52
import androidx.constraintlayout.widget.ConstraintLayout;
52 53
@ -395,7 +396,7 @@ public class PrivateZhuangInfoActivity extends Activity implements View.OnClickL
395 396
                .choose(MimeType.of(MimeType.JPEG, MimeType.PNG, MimeType.GIF))
396 397
                .showSingleMediaType(true)
397 398
                .countable(true)
398
                .maxSelectable(PIC_NUM - Bimp.tempSelectBitmap.size())
399
                .maxSelectable(1)
399 400
                .capture(true)
400 401
                .captureStrategy(new CaptureStrategy(true, "com.electric.chargingpile.provider"))
401 402
                .imageEngine(new GlideEngine())
@ -1049,6 +1050,12 @@ public class PrivateZhuangInfoActivity extends Activity implements View.OnClickL
1049 1050
    }
1050 1051
1051 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 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,6 +42,8 @@ import android.widget.RelativeLayout;
42 42
import android.widget.TextView;
43 43
import android.widget.Toast;
44 44
45
import androidx.annotation.NonNull;
46
45 47
import com.blankj.utilcode.util.CacheUtils;
46 48
import com.electric.chargingpile.R;
47 49
import com.electric.chargingpile.application.MainApplication;
@ -216,24 +218,11 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
216 218
        relativeLayout.setOnClickListener(new View.OnClickListener() {
217 219
            @Override
218 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 226
        rl_huodong = (RelativeLayout) findViewById(R.id.rl_huodong);
238 227
        tv_grade = (TextView) findViewById(R.id.tv_grade);
239 228
        tv_huodong = (TextView) findViewById(R.id.tv_huodong);
@ -259,13 +248,6 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
259 248
260 249
            @Override
261 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 253
            @Override
@ -281,8 +263,6 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
281 263
                } else {
282 264
                    Log.e("edit===", et_pinglun.getText().toString());
283 265
                    if (et_pinglun.getText().toString().equals("#" + MainApplication.huodonglabel + "# ")) {
284
//                        tv_make_sure.setBackgroundResource(R.color.huise);
285
//                        tv_make_sure.setEnabled(false);
286 266
                        if (!star_level.equals("") && !select_s.equals("")) {
287 267
                            tv_make_sure.setTextColor(getResources().getColor(R.color.lvse));
288 268
                            tv_make_sure.setEnabled(true);
@ -332,8 +312,6 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
332 312
                    }
333 313
                } else {
334 314
                    if (et_pinglun.getText().toString().equals("#" + MainApplication.huodonglabel + "# ")) {
335
//                        tv_make_sure.setBackgroundResource(R.color.huise);
336
//                        tv_make_sure.setEnabled(false);
337 315
                        if (!star_level.equals("") && !select_s.equals("")) {
338 316
                            tv_make_sure.setTextColor(getResources().getColor(R.color.lvse));
339 317
                            tv_make_sure.setEnabled(true);
@ -476,12 +454,9 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
476 454
477 455
478 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 460
        parent.setOnClickListener(new View.OnClickListener() {
486 461
487 462
            @Override
@ -494,20 +469,15 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
494 469
        bt1.setOnClickListener(new View.OnClickListener() {
495 470
            public void onClick(View v) {
496 471
                photo();
497
//                saveFullImage();
498 472
                pop.dismiss();
499
//                Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
500
//                ((Activity) mContext).startActivityForResult(intent, 2);
501 473
                ll_popup.clearAnimation();
502 474
            }
503 475
        });
504 476
        bt2.setOnClickListener(new View.OnClickListener() {
505 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 479
                startActivity(intent);
509 480
                overridePendingTransition(R.anim.activity_translate_in, R.anim.activity_translate_out);
510
//                startActivityForResult(intent, 1);
511 481
                pop.dismiss();
512 482
                ll_popup.clearAnimation();
513 483
            }
@ -643,8 +613,6 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
643 613
        long updatetime = appTime1 - MainMapActivity.cha - 1;
644 614
        Log.i("updatetime(long)---", updatetime + "");
645 615
        Log.i("cha---", MainMapActivity.cha + "");
646
//        String token = String.valueOf(updatetime);
647
//        Log.i("token---", token);
648 616
        for (int i = 0; i < Bimp.tempSelectBitmap.size(); i++) {
649 617
            try {
650 618
                bm = imageZoom(Bimp.tempSelectBitmap.get(i).getBitmap());
@ -709,13 +677,9 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
709 677
                if (select_s.contains(stringArr[position])) {
710 678
                    String s = stringArr[position] + ",";
711 679
                    select_s = select_s.replaceAll(s, "");
712
//                    Log.e("select===",select_s);
713 680
                } else {
714 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 683
                Log.e("select===", select_s);
720 684
721 685
@ -729,8 +693,6 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
729 693
                    }
730 694
                } else {
731 695
                    if (et_pinglun.getText().toString().equals("#" + MainApplication.huodonglabel + "# ")) {
732
//                        tv_make_sure.setBackgroundResource(R.color.huise);
733
//                        tv_make_sure.setEnabled(false);
734 696
                        if (!star_level.equals("") && !select_s.equals("")) {
735 697
                            tv_make_sure.setTextColor(getResources().getColor(R.color.lvse));
736 698
                            tv_make_sure.setEnabled(true);
@ -756,13 +718,8 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
756 718
757 719
    private void addComment(String fileUrl, String thumUrl) throws Exception {
758 720
        long appTime1 = System.currentTimeMillis() / 1000;
759
//        Log.i("appTime(long)---", appTime1 + "");
760 721
        long updatetime = appTime1 - MainMapActivity.cha - 2;
761
//        Log.i("updatetime(long)---", updatetime + "");
762
//        Log.i("cha---", MainMapActivity.cha + "");
763 722
        String token = String.valueOf(updatetime);
764
//        Log.e("commentType==",commentType+"");
765
766 723
        String childCommentUrl = "";
767 724
        if (commentsBean != null) {
768 725
            childCommentUrl = "&parentid=" + commentsBean.getId() + "&puserid=" + commentsBean.getUserid();
@ -798,12 +755,6 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
798 755
799 756
                            submitPF(data);
800 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 758
                            if (!plusScore.equals("")) {
808 759
                                tv_point.setText(plusScore);
809 760
                                rl_point.setVisibility(View.VISIBLE);
@ -826,27 +777,7 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
826 777
                                    }
827 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 780
                            NewZhanDetailsActivity.reFreshUi();
849
850 781
                        } else {
851 782
                            ToastUtil.showToast(getApplicationContext(), rtnMsg, Toast.LENGTH_SHORT);
852 783
                        }
@ -935,6 +866,12 @@ public class ZhanCommentActivity extends Activity implements View.OnClickListene
935 866
    }
936 867
937 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 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,6 +1,5 @@
1 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 3
    xmlns:app="http://schemas.android.com/apk/res-auto"
5 4
    xmlns:tools="http://schemas.android.com/tools"
6 5
    xmlns:zhy="http://schemas.android.com/apk/res-auto"
@ -12,10 +11,10 @@
12 11
13 12
    <View
14 13
        android:id="@+id/view_title"
15
        android:layout_height="0.5dp"
16 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 19
    <ImageView
21 20
        android:id="@+id/iv_hongbao"
@ -23,18 +22,18 @@
23 22
        android:layout_height="wrap_content"
24 23
        android:layout_alignParentBottom="true"
25 24
        android:layout_centerHorizontal="true"
25
        android:layout_marginBottom="56px"
26 26
        android:src="@drawable/icon_hongbao"
27
        android:visibility="gone"
28
        android:layout_marginBottom="56px" />
27
        android:visibility="gone" />
29 28
30 29
    <com.zhy.autolayout.AutoRelativeLayout
31 30
        android:id="@+id/rl_title"
32 31
        android:layout_width="match_parent"
33 32
        android:layout_height="130px"
34
        android:background="@color/title_background"
35
        android:layout_alignParentTop="true"
33
        android:layout_alignParentStart="true"
36 34
        android:layout_alignParentLeft="true"
37
        android:layout_alignParentStart="true">
35
        android:layout_alignParentTop="true"
36
        android:background="@color/title_background">
38 37
39 38
        <TextView
40 39
            android:id="@+id/tv_zhan_name"
@ -52,82 +51,82 @@
52 51
            android:layout_alignParentLeft="true"
53 52
            android:layout_centerVertical="true"
54 53
            android:contentDescription="@null"
55
            android:paddingBottom="4dp"
56 54
            android:paddingLeft="44px"
57
            android:paddingRight="44px"
58 55
            android:paddingTop="4dp"
56
            android:paddingRight="44px"
57
            android:paddingBottom="4dp"
59 58
            android:src="@drawable/icon_lvback1119" />
60 59
61 60
        <TextView
62 61
            android:id="@+id/tv_make_sure"
63 62
            android:layout_width="wrap_content"
64 63
            android:layout_height="match_parent"
64
            android:layout_alignParentRight="true"
65 65
            android:gravity="center"
66 66
            android:paddingLeft="15dp"
67 67
            android:paddingRight="15dp"
68 68
            android:text="发表"
69 69
            android:textColor="@color/lvse"
70
            android:textSize="15sp"
71
            android:layout_alignParentRight="true" />
70
            android:textSize="15sp" />
72 71
    </com.zhy.autolayout.AutoRelativeLayout>
73 72
74 73
    <com.electric.chargingpile.view.ObservableScrollView
75 74
        android:layout_width="match_parent"
76 75
        android:layout_height="wrap_content"
77 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 80
        <com.zhy.autolayout.AutoLinearLayout
82 81
            android:id="@+id/ll_pingfen"
83 82
            android:layout_width="match_parent"
84 83
            android:layout_height="wrap_content"
84
            android:layout_alignParentStart="true"
85
            android:layout_alignParentLeft="true"
86
            android:background="@color/white"
85 87
            android:focusable="true"
86 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 91
            <RelativeLayout
93 92
                android:layout_width="match_parent"
94 93
                android:layout_height="58dp">
95 94
96 95
                <TextView
96
                    android:id="@+id/textView33"
97 97
                    android:layout_width="wrap_content"
98 98
                    android:layout_height="wrap_content"
99
                    android:layout_centerVertical="true"
99 100
                    android:layout_gravity="center_horizontal"
100
                    android:textColor="@color/ui_62"
101
                    android:textSize="14sp"
102 101
                    android:layout_marginLeft="15dp"
103
                    android:layout_centerVertical="true"
104 102
                    android:text="充电体验"
105
                    android:id="@+id/textView33" />
103
                    android:textColor="@color/ui_62"
104
                    android:textSize="14sp" />
106 105
107 106
                <com.electric.chargingpile.view.RatingBarView
108 107
                    android:id="@+id/custom_ratingbar"
109 108
                    android:layout_width="wrap_content"
110 109
                    android:layout_height="wrap_content"
110
                    android:layout_centerVertical="true"
111 111
                    android:layout_gravity="center_horizontal"
112
                    android:layout_marginLeft="21dp"
113
                    android:layout_toRightOf="@+id/textView33"
112 114
                    android:stepSize="1"
113
                    android:layout_centerVertical="true"
114 115
                    app:starCount="5"
115 116
                    app:starEmpty="@drawable/icon_star_empty"
116 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 120
                <TextView
122 121
                    android:id="@+id/tv_grade"
123 122
                    android:layout_width="wrap_content"
124 123
                    android:layout_height="wrap_content"
125 124
                    android:layout_centerVertical="true"
126
                    android:layout_toRightOf="@+id/custom_ratingbar"
127 125
                    android:layout_marginLeft="20dp"
126
                    android:layout_toRightOf="@+id/custom_ratingbar"
127
                    android:text=""
128 128
                    android:textColor="#ffa900"
129
                    android:textSize="20sp"
130
                    android:text=""/>
129
                    android:textSize="20sp" />
131 130
132 131
            </RelativeLayout>
133 132
@ -137,11 +136,11 @@
137 136
                android:layout_height="wrap_content"
138 137
                android:layout_marginLeft="15dp"
139 138
                android:layout_marginRight="15dp"
140
                app:paddingStart="0dp"
141
                app:paddingEnd="0dp"
139
                android:visibility="visible"
142 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 145
            </com.zhy.view.flowlayout.TagFlowLayout>
147 146
@ -151,14 +150,14 @@
151 150
                android:layout_height="wrap_content">
152 151
153 152
                <TextView
153
                    android:id="@+id/tv_huodong"
154 154
                    android:layout_width="wrap_content"
155 155
                    android:layout_height="wrap_content"
156 156
                    android:layout_centerVertical="true"
157
                    android:textColor="@color/ui_62"
158
                    android:textSize="14sp"
159 157
                    android:layout_marginLeft="15dp"
160 158
                    android:text="活动标签"
161
                    android:id="@+id/tv_huodong"/>
159
                    android:textColor="@color/ui_62"
160
                    android:textSize="14sp" />
162 161
163 162
                <com.zhy.view.flowlayout.TagFlowLayout
164 163
                    android:id="@+id/id_flowlayout_activity"
@ -176,26 +175,26 @@
176 175
            <View
177 176
                android:layout_width="match_parent"
178 177
                android:layout_height="0.5dp"
179
                android:background="@color/Line"
180 178
                android:layout_marginLeft="15dp"
181
                android:layout_marginTop="15dp"/>
179
                android:layout_marginTop="15dp"
180
                android:background="@color/Line" />
182 181
183 182
            <com.electric.chargingpile.view.REditText
184 183
                android:id="@+id/et_pinglun"
185 184
                android:layout_width="match_parent"
186 185
                android:layout_height="85dp"
186
                android:layout_marginBottom="7dp"
187
                android:background="@color/white"
188
                android:gravity="left|top"
189
                android:hint="对本次充电感受如何?跟其他车友分享一下吧~"
187 190
                android:paddingLeft="15dp"
188
                android:paddingRight="15dp"
189 191
                android:paddingTop="12dp"
192
                android:paddingRight="15dp"
190 193
                android:paddingBottom="12dp"
191
                android:background="@color/white"
192
                android:hint="对本次充电感受如何?跟其他车友分享一下吧~"
193
                android:textColorHint="@color/ui_68"
194 194
                android:textColor="@color/ui_62"
195
                android:textColorHint="@color/ui_68"
195 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 199
            <GridView
201 200
                android:id="@+id/noScrollgridview"
@ -206,14 +205,13 @@
206 205
                android:horizontalSpacing="3dp"
207 206
                android:numColumns="3"
208 207
                android:scrollbars="none"
209
                android:verticalSpacing="5dp" >
210
            </GridView>
208
                android:verticalSpacing="5dp"></GridView>
211 209
212 210
            <View
213 211
                android:layout_width="match_parent"
214 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 216
        </com.zhy.autolayout.AutoLinearLayout>
219 217
@ -223,33 +221,33 @@
223 221
        android:id="@+id/tv_one"
224 222
        android:layout_width="wrap_content"
225 223
        android:layout_height="wrap_content"
224
        android:layout_alignParentBottom="true"
225
        android:layout_centerHorizontal="true"
226 226
        android:layout_gravity="center"
227
        android:layout_marginBottom="51dp"
228
        android:background="@drawable/icon_5point"
227 229
        android:gravity="center"
228 230
        android:padding="5dp"
229 231
        android:scaleType="fitXY"
230
        android:background="@drawable/icon_5point"
231 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 236
    <RelativeLayout
239 237
        android:id="@+id/rl_point"
240 238
        android:layout_width="80dp"
241 239
        android:layout_height="80dp"
242
        android:layout_marginBottom="50dp"
243
        android:layout_centerHorizontal="true"
244 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 246
        <LinearLayout
249 247
            android:layout_width="wrap_content"
250 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 252
            <LinearLayout
255 253
                android:layout_width="wrap_content"
@ -260,37 +258,26 @@
260 258
                    android:layout_width="wrap_content"
261 259
                    android:layout_height="wrap_content"
262 260
                    android:text="+"
263
                    android:textSize="16sp"
264
                    android:textColor="@color/white"/>
261
                    android:textColor="@color/white"
262
                    android:textSize="16sp" />
265 263
266 264
                <TextView
267 265
                    android:id="@+id/tv_point"
268 266
                    android:layout_width="wrap_content"
269 267
                    android:layout_height="wrap_content"
270
                    android:text="20"
271
                    android:textSize="19sp"
272 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 272
            </LinearLayout>
277
278 273
            <TextView
279 274
                android:layout_width="wrap_content"
280 275
                android:layout_height="wrap_content"
281 276
                android:layout_gravity="center_horizontal"
277
                android:layout_marginTop="2dp"
282 278
                android:text="充电币"
283
                android:textSize="13sp"
284 279
                android:textColor="@color/white"
285
                android:layout_marginTop="2dp"/>
286
287
280
                android:textSize="13sp" />
288 281
        </LinearLayout>
289
290
291
292 282
    </RelativeLayout>
293
294
295
296 283
</com.zhy.autolayout.AutoRelativeLayout>