ソースを参照

添加注销账号功能,优化充电页button被虚拟按键遮挡

hy 3 年 前
コミット
9808a5b267

+ 3 - 0
app/src/main/AndroidManifest.xml

@ -321,6 +321,9 @@
321 321
            android:launchMode="singleTask"
322 322
            android:screenOrientation="portrait" />
323 323
        <activity
324
            android:name=".activity.LogOutActivity"
325
            android:screenOrientation="portrait" />
326
        <activity
324 327
            android:name=".activity.ImageFile4Claim"
325 328
            android:label="@string/title_activity_image_file4_claim"
326 329
            android:screenOrientation="portrait" />

+ 228 - 0
app/src/main/java/com/electric/chargingpile/activity/LogOutActivity.java

@ -0,0 +1,228 @@
1
package com.electric.chargingpile.activity;
2
3
import android.Manifest;
4
import android.annotation.SuppressLint;
5
import android.app.Activity;
6
import android.content.Context;
7
import android.content.Intent;
8
import android.content.SharedPreferences;
9
import android.os.Bundle;
10
import android.os.Handler;
11
import android.util.Log;
12
import android.view.View;
13
import android.widget.TextView;
14
import android.widget.Toast;
15
16
import androidx.annotation.Nullable;
17
import androidx.appcompat.app.AppCompatActivity;
18
19
import com.electric.chargingpile.R;
20
import com.electric.chargingpile.application.MainApplication;
21
import com.electric.chargingpile.manager.ProfileManager;
22
import com.electric.chargingpile.util.BarColorUtil;
23
import com.electric.chargingpile.util.DES3;
24
import com.electric.chargingpile.util.ImageTools;
25
import com.electric.chargingpile.util.JsonUtils;
26
import com.electric.chargingpile.view.StateDialog;
27
import com.zhy.http.okhttp.OkHttpUtils;
28
import com.zhy.http.okhttp.callback.StringCallback;
29
30
import java.net.URLEncoder;
31
32
import okhttp3.Call;
33
import pub.devrel.easypermissions.EasyPermissions;
34
35
public class LogOutActivity extends AppCompatActivity {
36
37
    private TextView text;
38
    private String state;
39
    private View unSubmittedLayout;
40
    private View unRegisterLayout;
41
42
    @Override
43
    protected void onCreate(@Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
44
        super.onCreate(savedInstanceState);
45
        setContentView(R.layout.activity_logout);
46
        BarColorUtil.initStatusBarColor(LogOutActivity.this);
47
        initView();
48
        initIntent();
49
50
    }
51
52
    private void initIntent() {
53
        state = getIntent().getStringExtra("state");
54
        if (state !=null && state.equals("1")){
55
            text.setText("不注销了");
56
            unSubmittedLayout.setVisibility(View.GONE);
57
            unRegisterLayout.setVisibility(View.VISIBLE);
58
        }else {
59
            text.setText("确定注销");
60
            unSubmittedLayout.setVisibility(View.VISIBLE);
61
            unRegisterLayout.setVisibility(View.GONE);
62
        }
63
    }
64
65
    private void initView() {
66
        findViewById(R.id.iv_back).setOnClickListener(v->{
67
            finish();
68
        });
69
70
        text = findViewById(R.id.text);
71
        unSubmittedLayout = findViewById(R.id.unRegisterLayout);
72
        unRegisterLayout = findViewById(R.id.unRegisterLayout);
73
        text.setOnClickListener(v->{
74
            if (state !=null && state.equals("1")){
75
                cancelLogout();
76
            }else{
77
                applyLogOutNet();
78
            }
79
        });
80
    }
81
82
    private void showDialog(String str){
83
        new StateDialog(this)
84
                .builder()
85
                .setImg(R.drawable.ic_logout_dialog2)
86
                .setCancelable(true)
87
                .setContent(str)
88
                .show();
89
90
    }
91
92
93
    /**
94
     * 申请注销
95
     * */
96
    private  void applyLogOutNet(){
97
        String url=MainApplication.url +"/zhannew/basic/web/index.php/userdel/add?phone="+ MainApplication.userPhone+"&password="+MainApplication.userPassword;
98
        OkHttpUtils.get().url(url).build().execute(new StringCallback() {
99
            @Override
100
            public void onError(Call call, Exception e) {
101
102
            }
103
104
            @SuppressLint("CommitPrefEdits")
105
            @Override
106
            public void onResponse(String response) {
107
                Log.e("onResponse applyLogOutNet", response);
108
                String rtnCode = JsonUtils.getKeyResult(response, "rtnCode");
109
                if (rtnCode.equals("01")){
110
                    try {
111
                        sendLoginStatus();
112
                    } catch (Exception e) {
113
                        e.printStackTrace();
114
                    }
115
116
                    deleteUserInfo();
117
                    SharedPreferences sharedPreferences = getSharedPreferences("userInfo",
118
                            Activity.MODE_PRIVATE);
119
                    sharedPreferences.edit().clear();
120
                    startActivity(new Intent(LogOutActivity.this,MainMapActivity.class));
121
                }else{
122
                    String rtnMsg = JsonUtils.getKeyResult(response, "rtnMsg");
123
                    showDialog(rtnMsg);
124
                }
125
126
            }
127
        });
128
129
    }
130
131
    /**
132
     * 取消注销
133
     * */
134
    private void cancelLogout(){
135
        String url=MainApplication.url +"/zhannew/basic/web/index.php/userdel/del?phone="+ MainApplication.userPhone+"&password="+MainApplication.userPassword;
136
        OkHttpUtils.get().url(url).build().execute(new StringCallback() {
137
            @Override
138
            public void onError(Call call, Exception e) {
139
140
            }
141
142
            @Override
143
            public void onResponse(String response) {
144
                Log.e("onResponse cancelLogout", response);
145
                String code = JsonUtils.getKeyResult(response, "code");
146
            }
147
        });
148
149
    }
150
    //发送用户退出状态接口
151
    private void sendLoginStatus() throws Exception {
152
        long appTime1 = System.currentTimeMillis() / 1000;
153
        Log.i("appTime(long)---", appTime1 + "");
154
        long updatetime = appTime1 - MainMapActivity.cha - 3;
155
        Log.i("updatetime(long)---", updatetime + "");
156
        Log.i("cha---", MainMapActivity.cha + "");
157
        String token = String.valueOf(updatetime);
158
        String encode_token = DES3.encode(token);
159
        String replace = URLEncoder.encode(encode_token, "UTF-8");
160
        String url = MainApplication.url + "/zhannew/basic/web/index.php/tpmember/logout?phone="
161
                + MainApplication.userPhone + "&password=" + URLEncoder.encode(MainApplication.userPassword, "UTF-8") + "&token=" + replace
162
                + "&imei=" + "android_" + MainApplication.imei + "&registration_id=" + MainApplication.getInstance().getPushID();
163
        Log.i("token解密:", DES3.decode(encode_token));
164
        OkHttpUtils.get()
165
                .url(url)
166
                .build()
167
                .execute(new StringCallback() {
168
                    @Override
169
                    public void onError(Call call, Exception e) {
170
171
                    }
172
173
                    @Override
174
                    public void onResponse(String response) {
175
                        Log.e("exitLogin===", response);
176
                    }
177
                });
178
    }
179
180
    private void deleteUserInfo() {
181
        //保存用户id
182
        MainApplication.userId = "";
183
        ProfileManager.getInstance().setUserid(getApplicationContext(), "");
184
        //保存用户昵称
185
        MainApplication.userNickname = "";
186
        ProfileManager.getInstance().setNickname(getApplicationContext(), "");
187
        //保存用户手机号
188
        MainApplication.userPhone = "";
189
        ProfileManager.getInstance().setUsername(getApplicationContext(), "");
190
        //保存用户头像
191
        MainApplication.userIcon = "";
192
        ProfileManager.getInstance().setUsericon(getApplicationContext(), "");
193
        //保存用户车型
194
        MainApplication.userCar = "";
195
        ProfileManager.getInstance().setUsercar(getApplicationContext(), "");
196
        //保存用户密码
197
        MainApplication.userPassword = "";
198
199
        //保存用户意向车型
200
        MainApplication.userCarIntentMode = "";
201
        ProfileManager.getInstance().setCarIntentModel(getApplicationContext(), "");
202
203
        ProfileManager.getInstance().setKeyUserpassword(getApplicationContext(), "");
204
        if (isPermissionOK()) {
205
            if (ImageTools.findPhotoFromSDCard(MainApplication.storePath, "user_icon")) {
206
                ImageTools.deletePhotoAtPathAndName(MainApplication.storePath, "user_icon");
207
            }
208
        }
209
210
        MainApplication.userCertifiedModel="";
211
212
    }
213
    private boolean isPermissionOK() {
214
        return EasyPermissions.hasPermissions(this,
215
                Manifest.permission.WRITE_EXTERNAL_STORAGE,
216
                Manifest.permission.READ_EXTERNAL_STORAGE
217
        );
218
    }
219
220
    /**
221
     * @param state  0表示由UserCenterMoreActivity打开 1 表示从登录页面跳转过来
222
     * */
223
    public static void actionStart(Context context,String state){
224
        Intent intent = new Intent(context, LogOutActivity.class);
225
        intent.putExtra("state",state);
226
        context.startActivity(intent);
227
    }
228
}

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

@ -936,7 +936,7 @@ public class UserCenterActivity extends Activity implements View.OnClickListener
936 936
//                i.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
937 937
//                startActivity(i);
938 938
                Intent i = new Intent(getApplication(), MyWebViewActivity.class);
939
                i.putExtra("url", "https://cdz.evcharge.cc/zhannew/share/share-2.html");
939
                i.putExtra("url", "http://fans.d1ev.com/");
940 940
                startActivity(i);
941 941
                break;
942 942

+ 10 - 0
app/src/main/java/com/electric/chargingpile/activity/UserCenterMoreActivity.java

@ -182,6 +182,7 @@ public class UserCenterMoreActivity extends Activity implements View.OnClickList
182 182
        rl_about = (RelativeLayout) findViewById(R.id.rl_about);
183 183
        rl_about.setOnClickListener(this);
184 184
        findViewById(R.id.rl_alter_password).setOnClickListener(this);
185
        findViewById(R.id.logOutLayout).setOnClickListener(this);
185 186
186 187
//        iv_fen = (ImageView) findViewById(R.id.imageView11);
187 188
@ -402,6 +403,15 @@ public class UserCenterMoreActivity extends Activity implements View.OnClickList
402 403
//                    }
403 404
//                }).show();
404 405
                break;
406
407
            case R.id.logOutLayout:
408
                if (!MainApplication.isLogin()) {
409
                    Toast.makeText(getApplication(), "请先登录", Toast.LENGTH_SHORT).show();
410
                    startActivity(new Intent(getApplication(), LoginActivity.class));
411
                }else{
412
                    LogOutActivity.actionStart(this,"0");
413
                }
414
                break;
405 415
        }
406 416
    }
407 417

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

@ -91,10 +91,10 @@ public class MainApplication extends MultiDexApplication {
91 91
    public static String firstPoint = "";
92 92
    public static Boolean firstSsyd;
93 93
    public static String password = "";
94
//        public static String url = "http://59.110.68.162";// 充电桩测试环境
95
//    public static String pic_url = "http://59.110.68.162/zhannew/uploadfile/";
96
    public static String url = "http://cdz.evcharge.cc";// 充电桩正式环境
97
    public static String pic_url = "http://cdz.evcharge.cc/zhannew/uploadfile/";
94
        public static String url = "http://59.110.68.162";// 充电桩测试环境
95
    public static String pic_url = "http://59.110.68.162/zhannew/uploadfile/";
96
//    public static String url = "http://cdz.evcharge.cc";// 充电桩正式环境
97
//    public static String pic_url = "http://cdz.evcharge.cc/zhannew/uploadfile/";
98 98

99 99
//        public static String urlNew = "http://123.56.67.7:83/api/0300";// 一电测试环境
100 100
    public static String urlNew = "https://api.touchev.com:83/api/0300";// 一电正式环境

+ 82 - 0
app/src/main/java/com/electric/chargingpile/view/StateDialog.java

@ -0,0 +1,82 @@
1
package com.electric.chargingpile.view;
2
3
import android.app.Dialog;
4
import android.content.Context;
5
import android.os.Bundle;
6
import android.view.Display;
7
import android.view.LayoutInflater;
8
import android.view.View;
9
import android.view.WindowManager;
10
import android.widget.FrameLayout;
11
import android.widget.ImageView;
12
import android.widget.LinearLayout;
13
import android.widget.RelativeLayout;
14
import android.widget.TextView;
15
16
import androidx.annotation.DrawableRes;
17
import androidx.annotation.Nullable;
18
import androidx.fragment.app.DialogFragment;
19
20
import com.electric.chargingpile.R;
21
import com.electric.chargingpile.util.DensityUtil;
22
23
public class StateDialog {
24
    private Context mContext;
25
    private Display mDisPlay;
26
    private Dialog mDialog;
27
    private TextView stateText;
28
    private ImageView stateImg;
29
30
    public StateDialog(Context context) {
31
        mContext = context;
32
        WindowManager windowManager = (WindowManager) context
33
                .getSystemService(Context.WINDOW_SERVICE);
34
        mDisPlay = windowManager.getDefaultDisplay();
35
    }
36
37
38
    public StateDialog builder() {
39
        // 获取Dialog布局
40
        View view = LayoutInflater.from(mContext).inflate(
41
                R.layout.dialog_state, null);
42
43
        // 获取自定义Dialog布局中的控件
44
        RelativeLayout stateLayout = (RelativeLayout) view.findViewById(R.id.stateLayout);
45
        stateText = view.findViewById(R.id.stateText);
46
        stateImg = view.findViewById(R.id.stateImg);
47
48
49
        mDialog = new Dialog(mContext, R.style.AlertDialogStyle);
50
        mDialog.setContentView(view);
51
52
        // 调整dialog背景大小
53
        stateLayout.setLayoutParams(new FrameLayout.LayoutParams(
54
                DensityUtil.dip2px(mContext,  268),
55
                DensityUtil.dip2px(mContext, 124)
56
        ));
57
58
59
        return this;
60
    }
61
    public StateDialog setContent(String str){
62
        if (stateText!=null){
63
            stateText.setText(str);
64
        }
65
        return this;
66
    }
67
    public StateDialog setImg(@DrawableRes int resId){
68
        if (stateImg!=null){
69
            stateImg.setImageResource(resId);
70
        }
71
        return this;
72
    }
73
    public StateDialog setCancelable(boolean cancel) {
74
        mDialog.setCancelable(cancel);
75
        mDialog.setCanceledOnTouchOutside(cancel);
76
        return this;
77
    }
78
    public void show() {
79
        mDialog.show();
80
    }
81
82
}

BIN
app/src/main/res/drawable-xxhdpi/ic_logout_dialog.webp


BIN
app/src/main/res/drawable-xxhdpi/ic_logout_dialog2.webp


BIN
app/src/main/res/drawable-xxhdpi/ic_logout_hint.webp


BIN
app/src/main/res/drawable-xxhdpi/ic_logout_hint2.webp


+ 9 - 0
app/src/main/res/drawable/bg_radius_6_white.xml

@ -0,0 +1,9 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3
    <item>
4
        <shape android:shape="rectangle">
5
            <solid android:color="@color/white" />
6
            <corners android:radius="6dp" />
7
        </shape>
8
    </item>
9
</selector>

+ 5 - 0
app/src/main/res/drawable/bg_raduis_20_lvse.xml

@ -0,0 +1,5 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<shape xmlns:android="http://schemas.android.com/apk/res/android">
3
    <corners android:radius="20dp"/>
4
    <solid android:color="@color/lvse"/>
5
</shape>

+ 354 - 344
app/src/main/res/layout/activity_charging_status.xml

@ -50,370 +50,380 @@
50 50
51 51
    </RelativeLayout>
52 52
53
    <LinearLayout
54
        android:id="@+id/ll_charginginfo"
53
    <androidx.core.widget.NestedScrollView
54
        android:fillViewport="true"
55 55
        android:layout_width="match_parent"
56
        android:layout_height="72dp"
57
        android:layout_below="@+id/rl_circle"
58
        android:layout_marginLeft="12dp"
59
        android:layout_marginTop="26dp"
60
        android:layout_marginRight="12dp"
61
        android:orientation="horizontal">
62
63
        <RelativeLayout
64
65
            android:background="@drawable/bg_f9f9fb_radius14"
66
            android:layout_width="0dp"
67
            android:layout_height="match_parent"
68
            android:layout_weight="1">
69
            <ImageView
70
                android:id="@+id/imgA"
71
                android:gravity="center_vertical"
72
                android:layout_marginStart="10dp"
73
                android:layout_centerVertical="true"
74
                android:src="@drawable/ic_dianliu"
75
                android:layout_width="wrap_content"
76
                android:layout_height="wrap_content"/>
56
        android:layout_height="wrap_content">
57
        <LinearLayout
58
            android:orientation="vertical"
59
            android:layout_width="match_parent"
60
            android:layout_height="match_parent">
77 61
            <LinearLayout
78
                android:layout_centerInParent="true"
79
                android:orientation="vertical"
80
                android:layout_alignParentEnd="true"
81
                android:layout_toEndOf="@+id/imgA"
82
                android:layout_width="wrap_content"
83
                android:layout_height="wrap_content">
84
85
                <TextView
86
                    android:gravity="center"
87
                    android:id="@+id/tv_dianliu"
88
                    android:layout_width="match_parent"
89
                    android:layout_height="wrap_content"
90
                    android:text="--"
91
                    android:textStyle="bold"
92
                    android:textColor="@color/color_0e0e0e"
93
                    android:textSize="18sp" />
94
                <TextView
95
                    android:layout_marginTop="8dp"
96
                    android:gravity="center"
97
                    android:layout_width="match_parent"
98
                    android:layout_height="wrap_content"
99
                    android:text="电流(安)"
100
                    android:textColor="@color/color_0e0e0e"
101
                    android:textSize="12sp" />
62
                android:id="@+id/ll_charginginfo"
63
                android:layout_width="match_parent"
64
                android:layout_height="72dp"
65
                android:layout_below="@+id/rl_circle"
66
                android:layout_marginLeft="12dp"
67
                android:layout_marginTop="26dp"
68
                android:layout_marginRight="12dpdp"
69
                android:orientation="horizontal">
70
71
                <RelativeLayout
72
73
                    android:background="@drawable/bg_f9f9fb_radius14"
74
                    android:layout_width="0dp"
75
                    android:layout_height="match_parent"
76
                    android:layout_weight="1">
77
                    <ImageView
78
                        android:id="@+id/imgA"
79
                        android:gravity="center_vertical"
80
                        android:layout_marginStart="10dp"
81
                        android:layout_centerVertical="true"
82
                        android:src="@drawable/ic_dianliu"
83
                        android:layout_width="wrap_content"
84
                        android:layout_height="wrap_content"/>
85
                    <LinearLayout
86
                        android:layout_centerInParent="true"
87
                        android:orientation="vertical"
88
                        android:layout_alignParentEnd="true"
89
                        android:layout_toEndOf="@+id/imgA"
90
                        android:layout_width="wrap_content"
91
                        android:layout_height="wrap_content">
92
93
                        <TextView
94
                            android:gravity="center"
95
                            android:id="@+id/tv_dianliu"
96
                            android:layout_width="match_parent"
97
                            android:layout_height="wrap_content"
98
                            android:text="--"
99
                            android:textStyle="bold"
100
                            android:textColor="@color/color_0e0e0e"
101
                            android:textSize="18sp" />
102
                        <TextView
103
                            android:layout_marginTop="8dp"
104
                            android:gravity="center"
105
                            android:layout_width="match_parent"
106
                            android:layout_height="wrap_content"
107
                            android:text="电流(安)"
108
                            android:textColor="@color/color_0e0e0e"
109
                            android:textSize="12sp" />
110
111
                    </LinearLayout>
112
113
                </RelativeLayout>
114
115
116
                <RelativeLayout
117
                    android:background="@drawable/bg_f9f9fb_radius14"
118
                    android:layout_marginEnd="10dp"
119
                    android:layout_marginStart="10dp"
120
                    android:layout_width="0dp"
121
                    android:layout_height="match_parent"
122
                    android:layout_weight="1">
123
                    <ImageView
124
                        android:id="@+id/imgV"
125
                        android:gravity="center_vertical"
126
                        android:layout_marginStart="10dp"
127
                        android:layout_centerVertical="true"
128
                        android:src="@drawable/ic_dianya"
129
                        android:layout_width="wrap_content"
130
                        android:layout_height="wrap_content"/>
131
132
                    <LinearLayout
133
                        android:layout_centerInParent="true"
134
                        android:layout_alignParentEnd="true"
135
                        android:layout_toEndOf="@+id/imgV"
136
                        android:orientation="vertical"
137
                        android:layout_width="wrap_content"
138
                        android:layout_height="wrap_content">
139
140
141
                        <TextView
142
                            android:gravity="center"
143
                            android:id="@+id/tv_dianya"
144
                            android:layout_width="match_parent"
145
                            android:layout_height="wrap_content"
146
                            android:text="--"
147
                            android:textStyle="bold"
148
                            android:textColor="@color/color_0e0e0e"
149
                            android:textSize="18sp" />
150
                        <TextView
151
                            android:layout_marginTop="8dp"
152
                            android:gravity="center"
153
                            android:layout_width="match_parent"
154
                            android:layout_height="wrap_content"
155
                            android:text="电压(伏)"
156
                            android:textColor="@color/color_0e0e0e"
157
                            android:textSize="12sp" />
158
159
                    </LinearLayout>
160
161
                </RelativeLayout>
162
163
164
                <RelativeLayout
165
                    android:background="@drawable/bg_f9f9fb_radius14"
166
                    android:layout_width="0dp"
167
                    android:layout_height="match_parent"
168
                    android:layout_weight="1">
169
                    <ImageView
170
                        android:id="@+id/imgProgrees"
171
                        android:gravity="center_vertical"
172
                        android:layout_marginStart="10dp"
173
                        android:layout_centerVertical="true"
174
                        android:src="@drawable/ic_jindu"
175
                        android:layout_width="wrap_content"
176
                        android:layout_height="wrap_content"/>
177
178
                    <LinearLayout
179
                        android:layout_centerInParent="true"
180
                        android:orientation="vertical"
181
                        android:layout_alignParentEnd="true"
182
                        android:layout_toEndOf="@+id/imgProgrees"
183
                        android:layout_width="wrap_content"
184
                        android:layout_height="wrap_content">
185
                        <TextView
186
                            android:textStyle="bold"
187
                            android:gravity="center"
188
                            android:id="@+id/tv_jindu"
189
                            android:layout_width="match_parent"
190
                            android:layout_height="wrap_content"
191
                            android:text="--"
192
                            android:textColor="@color/color_0e0e0e"
193
                            android:textSize="18sp" />
194
195
196
                        <TextView
197
                            android:layout_marginTop="8dp"
198
                            android:gravity="center"
199
                            android:layout_width="match_parent"
200
                            android:layout_height="wrap_content"
201
                            android:text="充电进程"
202
                            android:textColor="@color/color_0e0e0e"
203
                            android:textSize="12sp" />
204
205
                    </LinearLayout>
206
207
                </RelativeLayout>
102 208
103 209
            </LinearLayout>
104 210
105
        </RelativeLayout>
106
107
108
        <RelativeLayout
109
            android:background="@drawable/bg_f9f9fb_radius14"
110
            android:layout_marginEnd="10dp"
111
            android:layout_marginStart="10dp"
112
            android:layout_width="0dp"
113
            android:layout_height="match_parent"
114
            android:layout_weight="1">
115
            <ImageView
116
                android:id="@+id/imgV"
117
                android:gravity="center_vertical"
118
                android:layout_marginStart="10dp"
119
                android:layout_centerVertical="true"
120
                android:src="@drawable/ic_dianya"
121
                android:layout_width="wrap_content"
122
                android:layout_height="wrap_content"/>
123
124
            <LinearLayout
125
                android:layout_centerInParent="true"
126
                android:layout_alignParentEnd="true"
127
                android:layout_toEndOf="@+id/imgV"
128
                android:orientation="vertical"
129
                android:layout_width="wrap_content"
130
                android:layout_height="wrap_content">
131
132
133
                <TextView
134
                    android:gravity="center"
135
                    android:id="@+id/tv_dianya"
136
                    android:layout_width="match_parent"
137
                    android:layout_height="wrap_content"
138
                    android:text="--"
139
                    android:textStyle="bold"
140
                    android:textColor="@color/color_0e0e0e"
141
                    android:textSize="18sp" />
142
                <TextView
143
                    android:layout_marginTop="8dp"
144
                    android:gravity="center"
145
                    android:layout_width="match_parent"
146
                    android:layout_height="wrap_content"
147
                    android:text="电压(伏)"
148
                    android:textColor="@color/color_0e0e0e"
149
                    android:textSize="12sp" />
150
151
            </LinearLayout>
152
153
        </RelativeLayout>
154
155
156
        <RelativeLayout
157
            android:background="@drawable/bg_f9f9fb_radius14"
158
            android:layout_width="0dp"
159
            android:layout_height="match_parent"
160
            android:layout_weight="1">
161
            <ImageView
162
                android:id="@+id/imgProgrees"
163
                android:gravity="center_vertical"
164
                android:layout_marginStart="10dp"
165
                android:layout_centerVertical="true"
166
                android:src="@drawable/ic_jindu"
167
                android:layout_width="wrap_content"
168
                android:layout_height="wrap_content"/>
169
170
            <LinearLayout
171
                android:layout_centerInParent="true"
172
                android:orientation="vertical"
173
                android:layout_alignParentEnd="true"
174
                android:layout_toEndOf="@+id/imgProgrees"
175
                android:layout_width="wrap_content"
176
                android:layout_height="wrap_content">
177
                <TextView
178
                    android:textStyle="bold"
179
                    android:gravity="center"
180
                    android:id="@+id/tv_jindu"
181
                    android:layout_width="match_parent"
182
                    android:layout_height="wrap_content"
183
                    android:text="--"
184
                    android:textColor="@color/color_0e0e0e"
185
                    android:textSize="18sp" />
186
211
               <RelativeLayout
212
                android:id="@+id/rl_circle"
213
                android:layout_width="172dp"
214
                android:layout_height="172dp"
215
                android:layout_centerHorizontal="true"
216
                android:layout_gravity="center_horizontal"
217
                android:layout_marginTop="40dp"
218
                android:background="@drawable/bg_charging">
187 219
188
                <TextView
189
                    android:layout_marginTop="8dp"
190
                    android:gravity="center"
220
                <me.itangqi.waveloadingview.WaveLoadingView
221
                    android:id="@+id/waveLoadingView"
191 222
                    android:layout_width="match_parent"
223
                    android:layout_height="match_parent"
224
                    app:wlv_borderColor="#00ffffff"
225
                    app:wlv_borderWidth="1dp"
226
                    app:wlv_round_rectangle="false"
227
                    app:wlv_shapeType="circle"
228
                    app:wlv_titleCenterStrokeColor="@android:color/holo_blue_dark"
229
                    app:wlv_titleCenterStrokeWidth="3dp"
230
                    app:wlv_waveAmplitude="60"
231
                    app:wlv_waveColor="#3fffffff"
232
                    app:wlv_wave_background_Color="#00ffffff" />
233
234
235
                <!--<com.loonggg.circleprogressbarlibrary.view.CircleProgressBar-->
236
                <!--android:id="@+id/pb"-->
237
                <!--android:layout_width="143dp"-->
238
                <!--android:layout_height="143dp"-->
239
                <!--android:visibility="gone"-->
240
                <!--android:layout_centerInParent="true"-->
241
                <!--loonggg:bgProgressBarColor="#efefef"-->
242
                <!--loonggg:circleStrokeWidth="5dp" />-->
243
244
                <LinearLayout
245
                    android:layout_width="wrap_content"
192 246
                    android:layout_height="wrap_content"
193
                    android:text="充电进程"
194
                    android:textColor="@color/color_0e0e0e"
195
                    android:textSize="12sp" />
196
197
            </LinearLayout>
198
199
        </RelativeLayout>
200
201
    </LinearLayout>
202
203
    <RelativeLayout
204
        android:id="@+id/rl_circle"
205
        android:layout_width="172dp"
206
        android:layout_height="172dp"
207
        android:layout_centerHorizontal="true"
208
        android:layout_gravity="center_horizontal"
209
        android:layout_marginTop="40dp"
210
        android:background="@drawable/bg_charging">
211
212
        <me.itangqi.waveloadingview.WaveLoadingView
213
            android:id="@+id/waveLoadingView"
214
            android:layout_width="match_parent"
215
            android:layout_height="match_parent"
216
            app:wlv_borderColor="#00ffffff"
217
            app:wlv_borderWidth="1dp"
218
            app:wlv_round_rectangle="false"
219
            app:wlv_shapeType="circle"
220
            app:wlv_titleCenterStrokeColor="@android:color/holo_blue_dark"
221
            app:wlv_titleCenterStrokeWidth="3dp"
222
            app:wlv_waveAmplitude="60"
223
            app:wlv_waveColor="#3fffffff"
224
            app:wlv_wave_background_Color="#00ffffff" />
225
226
227
        <!--<com.loonggg.circleprogressbarlibrary.view.CircleProgressBar-->
228
        <!--android:id="@+id/pb"-->
229
        <!--android:layout_width="143dp"-->
230
        <!--android:layout_height="143dp"-->
231
        <!--android:visibility="gone"-->
232
        <!--android:layout_centerInParent="true"-->
233
        <!--loonggg:bgProgressBarColor="#efefef"-->
234
        <!--loonggg:circleStrokeWidth="5dp" />-->
235
236
        <LinearLayout
237
            android:layout_width="wrap_content"
238
            android:layout_height="wrap_content"
239
            android:layout_centerInParent="true"
240
            android:orientation="vertical"
241
            android:visibility="visible">
247
                    android:layout_centerInParent="true"
248
                    android:orientation="vertical"
249
                    android:visibility="visible">
250
251
                    <TextView
252
                        android:id="@+id/tv_chongdianliang"
253
                        android:layout_width="wrap_content"
254
                        android:layout_height="wrap_content"
255
                        android:layout_gravity="center"
256
                        android:text=""
257
                        android:textColor="@color/white"
258
                        android:textSize="40sp" />
259
260
                    <TextView
261
                        android:layout_width="wrap_content"
262
                        android:layout_height="wrap_content"
263
                        android:layout_gravity="center"
264
                        android:layout_marginTop="5dp"
265
                        android:text="充电量(度)"
266
                        android:textColor="@color/white"
267
                        android:textSize="12sp" />
268
269
                </LinearLayout>
270
271
            </RelativeLayout>
242 272
243 273
            <TextView
244
                android:id="@+id/tv_chongdianliang"
274
                android:id="@+id/tv_zhuang_num"
245 275
                android:layout_width="wrap_content"
246 276
                android:layout_height="wrap_content"
247
                android:layout_gravity="center"
277
                android:layout_gravity="center_horizontal"
278
                android:layout_marginTop="33dp"
279
                android:drawableLeft="@drawable/icon_zhan_name"
280
                android:drawablePadding="8dp"
281
                android:gravity="center_vertical"
248 282
                android:text=""
249
                android:textColor="@color/white"
250
                android:textSize="40sp" />
251
252
            <TextView
253
                android:layout_width="wrap_content"
254
                android:layout_height="wrap_content"
255
                android:layout_gravity="center"
256
                android:layout_marginTop="5dp"
257
                android:text="充电量(度)"
258
                android:textColor="@color/white"
259
                android:textSize="12sp" />
260
261
        </LinearLayout>
262
263
    </RelativeLayout>
264
265
    <TextView
266
        android:id="@+id/tv_zhuang_num"
267
        android:layout_width="wrap_content"
268
        android:layout_height="wrap_content"
269
        android:layout_gravity="center_horizontal"
270
        android:layout_marginTop="33dp"
271
        android:drawableLeft="@drawable/icon_zhan_name"
272
        android:drawablePadding="8dp"
273
        android:gravity="center_vertical"
274
        android:text=""
275
        android:textColor="@color/ui_62"
276
        android:textSize="18sp" />
277
278
    <LinearLayout
279
        android:layout_width="match_parent"
280
        android:layout_height="49dp"
281
        android:layout_marginTop="38dp"
282
        android:orientation="horizontal">
283
284
        <RelativeLayout
285
            android:layout_width="0dp"
286
            android:layout_height="match_parent"
287
            android:layout_weight="1">
288
289
            <TextView
290
                android:layout_width="wrap_content"
291
                android:layout_height="wrap_content"
292
                android:layout_alignParentTop="true"
293
                android:layout_centerHorizontal="true"
294
                android:text="充电时长"
295
                android:textColor="@color/ui_68"
296
                android:textSize="12sp" />
297
298
            <TextView
299
                android:id="@+id/tv_time"
300
                android:layout_width="wrap_content"
301
                android:layout_height="wrap_content"
302
                android:layout_alignParentBottom="true"
303
                android:layout_centerHorizontal="true"
304
                android:text="--"
305 283
                android:textColor="@color/ui_62"
306
                android:textSize="21sp" />
284
                android:textSize="18sp" />
307 285
308
        </RelativeLayout>
309
310
        <View
311
            android:layout_width="0.5dp"
312
            android:layout_height="match_parent"
313
            android:background="@color/ui_6d" />
314
315
        <RelativeLayout
316
            android:layout_width="0dp"
317
            android:layout_height="match_parent"
318
            android:layout_weight="1">
319
320
            <TextView
321
                android:layout_width="wrap_content"
322
                android:layout_height="wrap_content"
323
                android:layout_alignParentTop="true"
324
                android:layout_centerHorizontal="true"
325
                android:text="充电金额"
326
                android:textColor="@color/ui_68"
327
                android:textSize="12sp" />
286
            <LinearLayout
287
                android:layout_width="match_parent"
288
                android:layout_height="49dp"
289
                android:layout_marginTop="38dp"
290
                android:orientation="horizontal">
291
292
                <RelativeLayout
293
                    android:layout_width="0dp"
294
                    android:layout_height="match_parent"
295
                    android:layout_weight="1">
296
297
                    <TextView
298
                        android:layout_width="wrap_content"
299
                        android:layout_height="wrap_content"
300
                        android:layout_alignParentTop="true"
301
                        android:layout_centerHorizontal="true"
302
                        android:text="充电时长"
303
                        android:textColor="@color/ui_68"
304
                        android:textSize="12sp" />
305
306
                    <TextView
307
                        android:id="@+id/tv_time"
308
                        android:layout_width="wrap_content"
309
                        android:layout_height="wrap_content"
310
                        android:layout_alignParentBottom="true"
311
                        android:layout_centerHorizontal="true"
312
                        android:text="--"
313
                        android:textColor="@color/ui_62"
314
                        android:textSize="21sp" />
315
316
                </RelativeLayout>
317
318
                <View
319
                    android:layout_width="0.5dp"
320
                    android:layout_height="match_parent"
321
                    android:background="@color/ui_6d" />
322
323
                <RelativeLayout
324
                    android:layout_width="0dp"
325
                    android:layout_height="match_parent"
326
                    android:layout_weight="1">
327
328
                    <TextView
329
                        android:layout_width="wrap_content"
330
                        android:layout_height="wrap_content"
331
                        android:layout_alignParentTop="true"
332
                        android:layout_centerHorizontal="true"
333
                        android:text="充电金额"
334
                        android:textColor="@color/ui_68"
335
                        android:textSize="12sp" />
336
337
                    <TextView
338
                        android:id="@+id/tv_cost"
339
                        android:layout_width="wrap_content"
340
                        android:layout_height="wrap_content"
341
                        android:layout_alignParentBottom="true"
342
                        android:layout_centerHorizontal="true"
343
                        android:layout_centerVertical="true"
344
                        android:text="--"
345
                        android:textColor="@color/ui_62"
346
                        android:textSize="21sp" />
347
348
                </RelativeLayout>
328 349
329
            <TextView
330
                android:id="@+id/tv_cost"
331
                android:layout_width="wrap_content"
332
                android:layout_height="wrap_content"
333
                android:layout_alignParentBottom="true"
334
                android:layout_centerHorizontal="true"
335
                android:layout_centerVertical="true"
336
                android:text="--"
337
                android:textColor="@color/ui_62"
338
                android:textSize="21sp" />
350
            </LinearLayout>
339 351
340
        </RelativeLayout>
341 352
342
    </LinearLayout>
353
            <RelativeLayout
354
                android:layout_width="match_parent"
355
                android:layout_height="match_parent">
356
                <LinearLayout
357
                    tools:visibility="visible"
358
                    android:visibility="gone"
359
                    android:id="@+id/layoutCarCertificate"
360
                    android:background="@drawable/bg_f9f9fb_radius5"
361
                    android:paddingBottom="3dp"
362
                    android:paddingTop="3dp"
363
                    android:paddingStart="13dp"
364
                    android:paddingEnd="13dp"
365
                    android:layout_marginTop="30dp"
366
                    android:layout_centerHorizontal="true"
367
                    android:layout_width="wrap_content"
368
                    android:layout_height="wrap_content">
369
                    <TextView
370
                        android:id="@+id/certifiedCarOwner"
371
                        android:drawablePadding="12dp"
372
                        android:drawableLeft="@drawable/ic_certification"
373
                        android:layout_marginEnd="35dp"
374
                        android:gravity="center"
375
                        android:layout_width="wrap_content"
376
                        android:layout_height="match_parent"
377
                        android:text="认证车主有优惠哦~"
378
                        android:textColor="@color/color_0e0e0e"
379
                        android:textSize="14sp"
380
                        />
381
                    <ImageView
382
                        android:src="@drawable/right_cursor"
383
                        android:layout_width="wrap_content"
384
                        android:layout_height="match_parent"/>
385
386
                </LinearLayout>
387
                <ImageView
388
                    tools:visibility="visible"
389
                    android:id="@+id/iv_activity"
390
                    android:layout_width="wrap_content"
391
                    android:layout_height="wrap_content"
392
                    android:layout_alignParentTop="true"
393
                    android:layout_alignParentRight="true"
394
                    android:layout_marginTop="21dp"
395
                    android:layout_marginRight="13dp"
396
                    android:visibility="gone" />
343 397
398
                <TextView
399
                    tools:visibility="visible"
400
                    android:id="@+id/tv_activity"
401
                    android:layout_width="wrap_content"
402
                    android:layout_height="wrap_content"
403
                    android:layout_below="@+id/tv_stop"
404
                    android:layout_centerHorizontal="true"
405
                    android:paddingTop="20dp"
406
                    android:paddingBottom="15dp"
407
                    android:text=""
408
                    android:textColor="#ffa900"
409
                    android:textSize="14sp"
410
                    android:visibility="visible" />
344 411
345
    <RelativeLayout
346
        android:layout_width="match_parent"
347
        android:layout_height="match_parent">
348
        <LinearLayout
349
            tools:visibility="visible"
350
            android:visibility="gone"
351
            android:id="@+id/layoutCarCertificate"
352
            android:background="@drawable/bg_f9f9fb_radius5"
353
            android:paddingBottom="3dp"
354
            android:paddingTop="3dp"
355
            android:paddingStart="13dp"
356
            android:paddingEnd="13dp"
357
            android:layout_marginTop="30dp"
358
            android:layout_centerHorizontal="true"
359
            android:layout_width="wrap_content"
360
            android:layout_height="wrap_content">
361
            <TextView
362
                android:id="@+id/certifiedCarOwner"
363
                android:drawablePadding="12dp"
364
                android:drawableLeft="@drawable/ic_certification"
365
                android:layout_marginEnd="35dp"
366
                android:gravity="center"
367
                android:layout_width="wrap_content"
368
                android:layout_height="match_parent"
369
                android:text="认证车主有优惠哦~"
370
                android:textColor="@color/color_0e0e0e"
371
                android:textSize="14sp"
372
                />
373
            <ImageView
374
                android:src="@drawable/right_cursor"
375
                android:layout_width="wrap_content"
376
                android:layout_height="match_parent"/>
412
                <TextView
413
                    android:layout_centerHorizontal="true"
414
                    android:textStyle="bold"
415
                    android:id="@+id/tv_stop"
416
                    android:layout_width="160dp"
417
                    android:layout_height="42dp"
418
                    android:layout_alignParentBottom="true"
419
                    android:layout_marginBottom="94dp"
420
                    android:background="@drawable/bg_3ec34c_radius10"
421
                    android:gravity="center"
422
                    android:text="结束充电"
423
                    android:textColor="@color/color_3ec34c"
424
                    android:textSize="18sp" />
425
            </RelativeLayout>
377 426
378 427
        </LinearLayout>
379
        <ImageView
380
            tools:visibility="visible"
381
            android:id="@+id/iv_activity"
382
            android:layout_width="wrap_content"
383
            android:layout_height="wrap_content"
384
            android:layout_alignParentTop="true"
385
            android:layout_alignParentRight="true"
386
            android:layout_marginTop="21dp"
387
            android:layout_marginRight="13dp"
388
            android:visibility="gone" />
389
390
        <TextView
391
            tools:visibility="visible"
392
            android:id="@+id/tv_activity"
393
            android:layout_width="wrap_content"
394
            android:layout_height="wrap_content"
395
            android:layout_below="@+id/tv_stop"
396
            android:layout_centerHorizontal="true"
397
            android:paddingTop="20dp"
398
            android:paddingBottom="15dp"
399
            android:text=""
400
            android:textColor="#ffa900"
401
            android:textSize="14sp"
402
            android:visibility="visible" />
403
404
        <TextView
405
            android:layout_centerHorizontal="true"
406
            android:textStyle="bold"
407
            android:id="@+id/tv_stop"
408
            android:layout_width="160dp"
409
            android:layout_height="42dp"
410
            android:layout_alignParentBottom="true"
411
            android:layout_marginBottom="94dp"
412
            android:background="@drawable/bg_3ec34c_radius10"
413
            android:gravity="center"
414
            android:text="结束充电"
415
            android:textColor="@color/color_3ec34c"
416
            android:textSize="18sp" />
417
    </RelativeLayout>
418
428
    </androidx.core.widget.NestedScrollView>
419 429
</LinearLayout>

+ 224 - 0
app/src/main/res/layout/activity_logout.xml

@ -0,0 +1,224 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    xmlns:tools="http://schemas.android.com/tools"
5
    android:orientation="vertical"
6
    android:background="@color/color_f6f6f6"
7
    android:layout_height="match_parent">
8
9
    <com.zhy.autolayout.AutoRelativeLayout
10
        android:layout_width="fill_parent"
11
        android:layout_height="130px"
12
        android:background="@color/title_background">
13
14
        <TextView
15
            android:id="@+id/title"
16
            android:layout_width="wrap_content"
17
            android:layout_height="wrap_content"
18
            android:layout_centerInParent="true"
19
            android:text="注销"
20
            android:textColor="@color/ui_62"
21
            android:textSize="16sp" />
22
23
        <ImageView
24
            android:id="@+id/iv_back"
25
            android:layout_width="wrap_content"
26
            android:layout_height="match_parent"
27
            android:layout_alignParentLeft="true"
28
            android:layout_centerVertical="true"
29
            android:contentDescription="@null"
30
            android:paddingBottom="4dp"
31
            android:paddingLeft="44px"
32
            android:paddingRight="44px"
33
            android:paddingTop="4dp"
34
            android:src="@drawable/icon_lvback1119" />
35
    </com.zhy.autolayout.AutoRelativeLayout>
36
37
    <LinearLayout
38
        android:orientation="vertical"
39
        android:id="@+id/unSubmittedLayout"
40
        android:layout_width="match_parent"
41
        android:layout_height="wrap_content">
42
43
        <ImageView
44
            android:layout_marginTop="40dp"
45
            android:layout_gravity="center"
46
            android:src="@drawable/ic_logout_hint"
47
            android:layout_width="wrap_content"
48
            android:layout_height="wrap_content"/>
49
50
        <TextView
51
            android:layout_gravity="center"
52
            android:layout_marginTop="30dp"
53
            android:textStyle="bold"
54
            android:gravity="center"
55
            android:layout_marginEnd="60dp"
56
            android:layout_marginStart="60dp"
57
            android:layout_width="match_parent"
58
            android:layout_height="wrap_content"
59
            android:text="非常遗憾不能继续为您服务\n感谢您的支持和陪伴"
60
            android:textColor="@color/color_0e0e0e"
61
            android:textSize="21sp"
62
            />
63
        <TextView
64
            android:layout_marginTop="20dp"
65
            android:layout_marginEnd="12dp"
66
            android:layout_marginStart="12dp"
67
            android:layout_width="match_parent"
68
            android:layout_height="wrap_content"
69
            android:text="注销账号前我们需要确认以下是否有未完成或未结算,以保证您的帐号安全"
70
            android:textColor="#ff707070"
71
            android:textSize="12sp"
72
            />
73
        <LinearLayout
74
            android:background="@drawable/bg_radius_6_white"
75
            android:layout_marginTop="20dp"
76
            android:layout_marginEnd="12dp"
77
            android:layout_marginStart="12dp"
78
            android:orientation="vertical"
79
            android:layout_width="match_parent"
80
            android:layout_height="wrap_content">
81
            <LinearLayout
82
                android:padding="14dp"
83
                android:layout_width="match_parent"
84
                android:layout_height="wrap_content">
85
                <TextView
86
                    android:layout_gravity="center_vertical"
87
                    android:layout_width="wrap_content"
88
                    android:layout_height="wrap_content"
89
                    android:text="●"
90
                    android:textColor="@color/color_707070"
91
                    android:textSize="4sp"
92
                    />
93
94
                <TextView
95
                    android:layout_marginStart="6dp"
96
                    android:layout_width="wrap_content"
97
                    android:layout_height="wrap_content"
98
                    android:text="您的账号当前没有正在充电的订单"
99
                    android:textColor="@color/color_707070"
100
                    android:textSize="12sp"
101
                    />
102
103
            </LinearLayout>
104
            <LinearLayout
105
                android:padding="14dp"
106
                android:layout_width="match_parent"
107
                android:layout_height="wrap_content">
108
                <TextView
109
                    android:layout_gravity="center_vertical"
110
                    android:layout_width="wrap_content"
111
                    android:layout_height="wrap_content"
112
                    android:text="●"
113
                    android:textColor="@color/color_707070"
114
                    android:textSize="4sp"
115
                    />
116
117
                <TextView
118
                    android:layout_marginStart="6dp"
119
                    android:layout_width="wrap_content"
120
                    android:layout_height="wrap_content"
121
                    android:text="您的账号没有未结算的充电订单"
122
                    android:textColor="@color/color_707070"
123
                    android:textSize="12sp"
124
                    />
125
126
            </LinearLayout>
127
            <LinearLayout
128
                android:padding="14dp"
129
                android:layout_width="match_parent"
130
                android:layout_height="wrap_content">
131
                <TextView
132
                    android:layout_gravity="center_vertical"
133
                    android:layout_width="wrap_content"
134
                    android:layout_height="wrap_content"
135
                    android:text="●"
136
                    android:textColor="@color/color_707070"
137
                    android:textSize="4dp"
138
                    />
139
140
                <TextView
141
                    android:layout_width="wrap_content"
142
                    android:layout_height="wrap_content"
143
                    android:layout_marginStart="6dp"
144
                    android:text="您的账号如果有余额请先完成退款或联系客服清空赠送金额"
145
                    android:textColor="@color/color_707070"
146
                    android:textSize="12sp" />
147
148
            </LinearLayout>
149
            <View
150
                android:background="@color/color_f5f6f7"
151
                android:layout_marginEnd="14dp"
152
                android:layout_marginStart="14dp"
153
                android:layout_width="match_parent"
154
                android:layout_height="1dp"/>
155
156
            <TextView
157
                android:padding="14dp"
158
                android:layout_width="match_parent"
159
                android:layout_height="wrap_content"
160
                android:text="注销提交后冻结账号15天,15天后自动注销账号,将清除账号所有相关信息和记录。冻结期内不可使用APP功能,可取消注销。"
161
                android:textColor="#ff707070"
162
                android:textSize="12sp"
163
                />
164
        </LinearLayout>
165
    </LinearLayout>
166
167
    <LinearLayout
168
        tools:visibility="visible"
169
        android:visibility="gone"
170
        android:id="@+id/unRegisterLayout"
171
        android:orientation="vertical"
172
        android:layout_width="match_parent"
173
        android:layout_height="wrap_content">
174
        <ImageView
175
            android:layout_marginTop="40dp"
176
            android:layout_gravity="center_horizontal"
177
            android:src="@drawable/ic_logout_hint2"
178
            android:layout_width="wrap_content"
179
            android:layout_height="wrap_content"/>
180
        <TextView
181
            android:layout_gravity="center"
182
            android:layout_marginTop="30dp"
183
            android:layout_width="wrap_content"
184
            android:layout_height="wrap_content"
185
            android:text="注销正在审核中…"
186
            android:textColor="@color/color_0e0e0e"
187
            android:textSize="21sp"
188
            />
189
190
        <TextView
191
            android:layout_marginTop="20dp"
192
            android:layout_gravity="center"
193
            android:layout_width="wrap_content"
194
            android:layout_height="wrap_content"
195
            tools:text="提交时间:2021-8-16  17:00"
196
            android:textColor="@color/app_color_9b"
197
            android:textSize="12sp"
198
            />
199
        <TextView
200
            android:layout_marginTop="20dp"
201
            android:layout_gravity="center"
202
            android:layout_width="wrap_content"
203
            android:layout_height="wrap_content"
204
            tools:text="审核中不能充值和开启充电,取消注销可继续使用"
205
            android:textColor="#ff0e0e0e"
206
            android:textSize="12sp"
207
            />
208
    </LinearLayout>
209
    <View
210
        android:layout_weight="1"
211
        android:layout_width="match_parent"
212
        android:layout_height="0dp"/>
213
    <TextView
214
        android:id="@+id/text"
215
        android:layout_marginBottom="40dp"
216
        android:layout_marginEnd="12dp"
217
        android:layout_marginStart="12dp"
218
        android:gravity="center"
219
        android:textColor="@color/white"
220
        android:text="退出登录"
221
        android:background="@drawable/bg_raduis_20_lvse"
222
        android:layout_width="match_parent"
223
        android:layout_height="40dp"/>
224
</LinearLayout>

+ 49 - 4
app/src/main/res/layout/activity_user_center_more.xml

@ -42,10 +42,12 @@
42 42
        android:background="@color/ui_titleline"/>
43 43
44 44
    <com.zhy.autolayout.AutoLinearLayout
45
        android:layout_marginEnd="12dp"
46
        android:layout_marginStart="12dp"
45 47
        android:layout_width="match_parent"
46 48
        android:layout_height="wrap_content"
47 49
        android:layout_marginTop="44px"
48
        android:background="@color/white"
50
        android:background="@drawable/bg_radius_6_white"
49 51
        android:orientation="vertical">
50 52
51 53
        <View
@ -288,15 +290,59 @@
288 290
            android:background="@color/Line" />
289 291
290 292
    </com.zhy.autolayout.AutoLinearLayout>
293
    <LinearLayout
294
        android:id="@+id/logOutLayout"
295
        android:paddingBottom="20dp"
296
        android:paddingTop="20dp"
297
        android:layout_marginEnd="12dp"
298
        android:layout_marginStart="12dp"
299
        android:background="@drawable/bg_radius_6_white"
300
        android:layout_marginTop="15dp"
301
        android:layout_width="match_parent"
302
        android:layout_height="wrap_content">
303
        <TextView
304
            android:layout_marginStart="14dp"
305
            android:layout_gravity="center_vertical"
306
            android:layout_width="wrap_content"
307
            android:layout_height="wrap_content"
308
            android:text="注销账号"
309
            android:textColor="@color/color_0e0e0e"
310
            android:textSize="14sp"
311
            />
312
        <View
313
            android:layout_weight="1"
314
            android:layout_gravity="center_vertical"
315
            android:layout_width="0dp"
316
            android:layout_height="1dp"/>
317
        <TextView
318
            android:layout_marginEnd="9dp"
319
            android:layout_width="wrap_content"
320
            android:layout_height="wrap_content"
321
            tools:text="正在审核中"
322
            android:textColor="@color/color_e32727"
323
            android:textSize="14sp"
324
            />
325
        <ImageView
326
            android:layout_width="wrap_content"
327
            android:layout_height="match_parent"
328
            android:layout_alignParentRight="true"
329
            android:layout_centerVertical="true"
330
            android:contentDescription="@null"
331
            android:paddingRight="16dp"
332
            android:src="@drawable/icon_more2_0" />
333
    </LinearLayout>
291 334
292 335
    <com.zhy.autolayout.AutoRelativeLayout
293 336
        android:layout_width="match_parent"
294 337
        android:layout_height="match_parent">
295 338
    <TextView
339
        android:layout_marginBottom="40dp"
340
        android:layout_marginEnd="12dp"
341
        android:layout_marginStart="12dp"
296 342
        android:id="@+id/tv_exit"
297 343
        android:layout_width="fill_parent"
298
        android:layout_height="127px"
299
        android:background="@color/lvse"
344
        android:layout_height="40dp"
345
        android:background="@drawable/bg_raduis_20_lvse"
300 346
        android:gravity="center"
301 347
        android:text="退出登录"
302 348
        android:textColor="@color/bg_row"
@ -324,7 +370,6 @@
324 370
325 371
    </com.zhy.autolayout.AutoRelativeLayout>
326 372
327
328 373
</com.zhy.autolayout.AutoLinearLayout>
329 374
330 375

+ 35 - 0
app/src/main/res/layout/dialog_state.xml

@ -0,0 +1,35 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    xmlns:tools="http://schemas.android.com/tools"
5
    tools:background="#f1f1"
6
    android:id="@+id/stateLayout"
7
    android:orientation="vertical"
8
    android:layout_height="match_parent">
9
10
    <LinearLayout
11
        android:gravity="center"
12
        android:orientation="vertical"
13
        android:layout_centerInParent="true"
14
        android:background="@drawable/bg_white_radius10"
15
        android:layout_width="268dp"
16
        android:layout_height="124dp">
17
18
        <ImageView
19
            android:id="@+id/stateImg"
20
            android:layout_marginTop="10dp"
21
            tools:src="@drawable/ic_logout_dialog"
22
            android:layout_gravity="center"
23
            android:layout_width="wrap_content"
24
            android:layout_height="wrap_content"/>
25
        <TextView
26
            android:layout_marginTop="20dp"
27
            android:id="@+id/stateText"
28
            android:layout_marginBottom="10dp"
29
            android:layout_gravity="center"
30
            tools:text="请先退款或完成退款订单"
31
            android:textColor="@color/black"
32
            android:layout_width="wrap_content"
33
            android:layout_height="wrap_content"/>
34
    </LinearLayout>
35
</RelativeLayout>

+ 3 - 0
app/src/main/res/values/color.xml

@ -200,6 +200,9 @@
200 200
    <color name="color_f08f4b">#F08F4B</color>
201 201
    <color name="color_ff333333">#ff333333</color>
202 202

203
    <color name="color_e32727">#ffe32727</color>
204
    <color name="color_707070">#ff707070</color>
205
    <color name="color_f5f6f7">#F5F6F7</color>
203 206

204 207

205 208