[Modify]修改设置页逻辑
This commit is contained in:
@@ -1,226 +1,180 @@
|
|||||||
package com.yizhuan.erban.ui.setting;
|
package com.yizhuan.erban.ui.setting
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint
|
||||||
import android.content.Intent;
|
import android.content.Intent
|
||||||
import android.os.Build;
|
import android.os.Build
|
||||||
import android.os.Bundle;
|
import android.os.Environment
|
||||||
import android.os.Environment;
|
import android.text.SpannableString
|
||||||
import android.text.SpannableString;
|
import android.view.View
|
||||||
import android.view.View;
|
import com.netease.nim.uikit.StatusBarUtil
|
||||||
|
import com.tongdaxing.erban.upgrade.AppUpgradeHelper
|
||||||
import androidx.databinding.DataBindingUtil;
|
import com.yizhuan.erban.R
|
||||||
|
import com.yizhuan.erban.UIHelper
|
||||||
import com.netease.nim.uikit.StatusBarUtil;
|
import com.yizhuan.erban.base.BaseViewBindingActivity
|
||||||
import com.tongdaxing.erban.upgrade.AppUpgradeHelper;
|
import com.yizhuan.erban.common.widget.dialog.DialogManager.OkCancelDialogListener
|
||||||
import com.yizhuan.erban.R;
|
import com.yizhuan.erban.databinding.ActivitySettingBinding
|
||||||
import com.yizhuan.erban.UIHelper;
|
import com.yizhuan.erban.ui.im.avtivity.BlackListManageActivity
|
||||||
import com.yizhuan.erban.base.BaseActivity;
|
import com.yizhuan.erban.ui.login.BindPhoneActivity
|
||||||
import com.yizhuan.erban.common.widget.dialog.DialogManager;
|
import com.yizhuan.erban.ui.login.ShowBindPhoneActivity
|
||||||
import com.yizhuan.erban.databinding.ActivitySettingBinding;
|
import com.yizhuan.erban.ui.login.helper.LogoutHelper
|
||||||
import com.yizhuan.erban.ui.im.avtivity.BlackListManageActivity;
|
import com.yizhuan.erban.ui.user.AboutActivity
|
||||||
import com.yizhuan.erban.ui.login.BindPhoneActivity;
|
import com.yizhuan.erban.ui.webview.CommonWebViewActivity
|
||||||
import com.yizhuan.erban.ui.login.ShowBindPhoneActivity;
|
import com.yizhuan.xchat_android_core.UriProvider
|
||||||
import com.yizhuan.erban.ui.login.helper.LogoutHelper;
|
import com.yizhuan.xchat_android_core.auth.AuthModel
|
||||||
import com.yizhuan.erban.ui.user.AboutActivity;
|
import com.yizhuan.xchat_android_core.auth.event.LogoutEvent
|
||||||
import com.yizhuan.erban.ui.webview.CommonWebViewActivity;
|
import com.yizhuan.xchat_android_core.user.UserModel
|
||||||
import com.yizhuan.xchat_android_core.UriProvider;
|
import com.yizhuan.xchat_android_core.user.bean.UserInfo
|
||||||
import com.yizhuan.xchat_android_core.auth.AuthModel;
|
import com.yizhuan.xchat_android_core.utils.SharedPreferenceUtils
|
||||||
import com.yizhuan.xchat_android_core.auth.event.LogoutEvent;
|
import com.yizhuan.xchat_android_library.common.file.FileHelper
|
||||||
import com.yizhuan.xchat_android_core.user.UserModel;
|
import com.yizhuan.xchat_android_library.utils.ResUtil
|
||||||
import com.yizhuan.xchat_android_core.user.bean.UserInfo;
|
import com.yizhuan.xchat_android_library.utils.config.BasicConfig
|
||||||
import com.yizhuan.xchat_android_core.utils.SharedPreferenceUtils;
|
import com.yizhuan.xchat_android_library.utils.file.JXFileUtils
|
||||||
import com.yizhuan.xchat_android_library.common.file.FileHelper;
|
import org.greenrobot.eventbus.EventBus
|
||||||
import com.yizhuan.xchat_android_library.utils.ResUtil;
|
import org.greenrobot.eventbus.Subscribe
|
||||||
import com.yizhuan.xchat_android_library.utils.config.BasicConfig;
|
import org.greenrobot.eventbus.ThreadMode
|
||||||
import com.yizhuan.xchat_android_library.utils.file.JXFileUtils;
|
import java.io.File
|
||||||
|
|
||||||
import org.greenrobot.eventbus.EventBus;
|
|
||||||
import org.greenrobot.eventbus.Subscribe;
|
|
||||||
import org.greenrobot.eventbus.ThreadMode;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
import lombok.val;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by zhouxiangfeng on 2017/4/16.
|
* 设置页
|
||||||
|
* Created by wushaocheng on 2023/2/1.
|
||||||
*/
|
*/
|
||||||
public class SettingActivity extends BaseActivity implements View.OnClickListener {
|
class SettingActivity : BaseViewBindingActivity<ActivitySettingBinding>(), View.OnClickListener {
|
||||||
|
override fun init() {
|
||||||
private ActivitySettingBinding settingBinding;
|
EventBus.getDefault().register(this)
|
||||||
|
initWhiteTitleBar(ResUtil.getString(R.string.ui_setting_settingactivity_01))
|
||||||
@Override
|
initView()
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
initListener()
|
||||||
super.onCreate(savedInstanceState);
|
|
||||||
EventBus.getDefault().register(this);
|
|
||||||
settingBinding = DataBindingUtil.setContentView(this, R.layout.activity_setting);
|
|
||||||
settingBinding.setClick(this);
|
|
||||||
initWhiteTitleBar(ResUtil.getString(R.string.ui_setting_settingactivity_01));
|
|
||||||
initView();
|
|
||||||
initData();
|
|
||||||
initListeners();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initListeners() {
|
@SuppressLint("SetTextI18n")
|
||||||
|
private fun initView() {
|
||||||
|
binding.versions.text = "V${BasicConfig.getLocalVersionName(this)}"
|
||||||
|
val cacheLoginUserInfo = UserModel.get().cacheLoginUserInfo ?: return
|
||||||
|
if (cacheLoginUserInfo.isBindPasswd) {
|
||||||
|
binding.tvLoginPwd.text = ResUtil.getString(R.string.text_reset_password)
|
||||||
|
} else {
|
||||||
|
binding.tvLoginPwd.text = ResUtil.getString(R.string.ui_setting_settingactivity_016)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun initListener() {
|
||||||
|
binding.rlyBindPhone.setOnClickListener(this)
|
||||||
|
binding.rlyContactUs.setOnClickListener(this)
|
||||||
|
binding.rlyHelp.setOnClickListener(this)
|
||||||
|
binding.rlyUpdate.setOnClickListener(this)
|
||||||
|
binding.tvBlackManager.setOnClickListener(this)
|
||||||
|
binding.rlyLoginPwd.setOnClickListener(this)
|
||||||
|
binding.rlyPayPwd.setOnClickListener(this)
|
||||||
|
binding.btnLoginOut.setOnClickListener(this)
|
||||||
|
binding.tvCommunityNorms.setOnClickListener(this)
|
||||||
|
binding.rlyClearCache.setOnClickListener(this)
|
||||||
|
binding.tvNoticeSetting.setOnClickListener(this)
|
||||||
|
binding.tvShieldManager.setOnClickListener(this)
|
||||||
|
binding.rlyPermission.setOnClickListener(this)
|
||||||
|
binding.rlyCheck.setOnClickListener(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("CheckResult")
|
@SuppressLint("CheckResult")
|
||||||
@Override
|
override fun onResume() {
|
||||||
protected void onResume() {
|
super.onResume()
|
||||||
super.onResume();
|
val userInfo = UserModel.get().cacheLoginUserInfo
|
||||||
UserInfo userInfo = UserModel.get().getCacheLoginUserInfo();
|
if (userInfo != null && userInfo.isBindPhone) {
|
||||||
if(userInfo != null && userInfo.isBindPhone()){
|
binding.tvBindPhone.text = getString(R.string.text_modify_bind_phone)
|
||||||
settingBinding.tvBindPhone.setText(getString(R.string.text_modify_bind_phone));
|
} else {
|
||||||
}else {
|
binding.tvBindPhone.text = getString(R.string.text_bind_phone)
|
||||||
settingBinding.tvBindPhone.setText(getString(R.string.text_bind_phone));
|
|
||||||
}
|
}
|
||||||
UserModel.get().updateCurrentUserInfo()
|
UserModel.get().updateCurrentUserInfo()
|
||||||
.compose(bindToLifecycle())
|
.compose(bindToLifecycle())
|
||||||
.subscribe(info -> {
|
.subscribe { _: UserInfo? ->
|
||||||
//刷新下界面
|
//刷新下界面
|
||||||
initView();
|
initView()
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private void initData() {
|
|
||||||
settingBinding.versions.setText("V" + BasicConfig.getLocalVersionName(getApplicationContext()));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View view) {
|
|
||||||
switch (view.getId()) {
|
|
||||||
case R.id.rly_bind_phone:
|
|
||||||
UserInfo userInfo = UserModel.get().getCacheLoginUserInfo();
|
|
||||||
if(userInfo != null && userInfo.isBindPhone()){
|
|
||||||
ShowBindPhoneActivity.start(context);
|
|
||||||
}else {
|
|
||||||
BindPhoneActivity.start(this);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case R.id.rly_contact_us:
|
|
||||||
UIHelper.openContactUs(this);
|
|
||||||
break;
|
|
||||||
case R.id.rly_help:
|
|
||||||
UIHelper.showUsinghelp(this);
|
|
||||||
break;
|
|
||||||
case R.id.rly_update://关于我们
|
|
||||||
startActivity(new Intent(getApplicationContext(), AboutActivity.class));
|
|
||||||
break;
|
|
||||||
case R.id.tv_black_manager:
|
|
||||||
BlackListManageActivity.start(this);
|
|
||||||
break;
|
|
||||||
case R.id.rly_login_pwd:
|
|
||||||
ModifyPwdActivity.start(this, ModifyPwdActivity.LOGIN_PWD);
|
|
||||||
break;
|
|
||||||
case R.id.rly_pay_pwd:
|
|
||||||
if (UserModel.get().getCacheLoginUserInfo() == null) {
|
|
||||||
toast(ResUtil.getString(R.string.ui_setting_settingactivity_06));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
ModifyPwdActivity.start(this, ModifyPwdActivity.PAY_PWD);
|
|
||||||
break;
|
|
||||||
case R.id.btn_login_out://退出登录
|
|
||||||
getDialogManager().showProgressDialog(this);
|
|
||||||
LogoutHelper.logout();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case R.id.tv_community_norms:
|
|
||||||
CommonWebViewActivity.start(this, UriProvider.getCommnunityNorms());
|
|
||||||
break;
|
|
||||||
|
|
||||||
case R.id.rly_clear_cache:
|
|
||||||
getDialogManager().showOkCancelWithTitleDialog(ResUtil.getString(R.string.ui_setting_settingactivity_07),
|
|
||||||
new SpannableString(ResUtil.getString(R.string.ui_setting_settingactivity_08)),
|
|
||||||
ResUtil.getString(R.string.ui_setting_settingactivity_09), ResUtil.getString(R.string.ui_setting_settingactivity_010), new DialogManager.OkCancelDialogListener() {
|
|
||||||
@Override
|
|
||||||
public void onCancel() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onOk() {
|
|
||||||
clearCache();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
break;
|
|
||||||
case R.id.tv_notice_setting:
|
|
||||||
NoticeSettingActivity.start(context);
|
|
||||||
break;
|
|
||||||
case R.id.tv_shield_manager:
|
|
||||||
ShieldManageActivity.start(context);
|
|
||||||
break;
|
|
||||||
case R.id.rly_permission:
|
|
||||||
PermissionGuideActivity.Companion.start(context);
|
|
||||||
break;
|
|
||||||
case R.id.rly_check:
|
|
||||||
AppUpgradeHelper.checkAppUpgrade(this, getDialogManager());
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void clearCache() {
|
|
||||||
try {
|
|
||||||
|
|
||||||
SharedPreferenceUtils.remove(SharedPreferenceUtils.SEARCH_HISTORY + AuthModel.get().getCurrentUid());
|
|
||||||
|
|
||||||
File dataDir;
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
||||||
dataDir = new File(new File(FileHelper.getRootCacheDir().getPath(), "Android"), "data");
|
|
||||||
}else {
|
|
||||||
dataDir = new File(new File(Environment.getExternalStorageDirectory(), "Android"), "data");
|
|
||||||
}
|
}
|
||||||
File appCacheDir = new File(new File(dataDir, context.getPackageName()), "cache");
|
}
|
||||||
JXFileUtils.deleteFile(appCacheDir);
|
|
||||||
|
|
||||||
toast(ResUtil.getString(R.string.ui_setting_settingactivity_011));
|
|
||||||
|
|
||||||
} catch (Exception ex) {
|
|
||||||
ex.printStackTrace();
|
|
||||||
|
|
||||||
|
override fun onClick(view: View) {
|
||||||
|
when (view.id) {
|
||||||
|
R.id.rly_bind_phone -> {
|
||||||
|
val userInfo = UserModel.get().cacheLoginUserInfo
|
||||||
|
if (userInfo != null && userInfo.isBindPhone) {
|
||||||
|
ShowBindPhoneActivity.start(context)
|
||||||
|
} else {
|
||||||
|
BindPhoneActivity.start(this)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
R.id.rly_contact_us -> UIHelper.openContactUs(this)
|
||||||
|
R.id.rly_help -> UIHelper.showUsinghelp(this)
|
||||||
|
R.id.rly_update -> startActivity(Intent(applicationContext, AboutActivity::class.java))
|
||||||
|
R.id.tv_black_manager -> BlackListManageActivity.start(this)
|
||||||
|
R.id.rly_login_pwd -> ModifyPwdActivity.start(this, ModifyPwdActivity.LOGIN_PWD)
|
||||||
|
R.id.rly_pay_pwd -> {
|
||||||
|
if (UserModel.get().cacheLoginUserInfo == null) {
|
||||||
|
toast(ResUtil.getString(R.string.ui_setting_settingactivity_06))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
ModifyPwdActivity.start(this, ModifyPwdActivity.PAY_PWD)
|
||||||
|
}
|
||||||
|
R.id.btn_login_out -> {
|
||||||
|
dialogManager.showProgressDialog(this)
|
||||||
|
LogoutHelper.logout()
|
||||||
|
}
|
||||||
|
R.id.tv_community_norms -> CommonWebViewActivity.start(
|
||||||
|
this,
|
||||||
|
UriProvider.getCommnunityNorms()
|
||||||
|
)
|
||||||
|
R.id.rly_clear_cache -> dialogManager.showOkCancelWithTitleDialog(ResUtil.getString(R.string.ui_setting_settingactivity_07),
|
||||||
|
SpannableString(ResUtil.getString(R.string.ui_setting_settingactivity_08)),
|
||||||
|
ResUtil.getString(R.string.ui_setting_settingactivity_09),
|
||||||
|
ResUtil.getString(R.string.ui_setting_settingactivity_010),
|
||||||
|
object : OkCancelDialogListener {
|
||||||
|
override fun onCancel() {}
|
||||||
|
override fun onOk() {
|
||||||
|
clearCache()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
R.id.tv_notice_setting -> NoticeSettingActivity.start(context)
|
||||||
|
R.id.tv_shield_manager -> ShieldManageActivity.start(context)
|
||||||
|
R.id.rly_permission -> PermissionGuideActivity.start(context)
|
||||||
|
R.id.rly_check -> AppUpgradeHelper.checkAppUpgrade(this, dialogManager)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initView() {
|
private fun clearCache() {
|
||||||
UserInfo cacheLoginUserInfo = UserModel.get().getCacheLoginUserInfo();
|
try {
|
||||||
if (cacheLoginUserInfo == null) return;
|
SharedPreferenceUtils.remove(SharedPreferenceUtils.SEARCH_HISTORY + AuthModel.get().currentUid)
|
||||||
if (cacheLoginUserInfo.isBindPasswd()) {
|
val dataDir = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||||
settingBinding.tvLoginPwd.setText(ResUtil.getString(R.string.text_reset_password));
|
File(File(FileHelper.getRootCacheDir().path, "Android"), "data")
|
||||||
} else {
|
} else {
|
||||||
settingBinding.tvLoginPwd.setText(ResUtil.getString(R.string.ui_setting_settingactivity_016));
|
File(File(Environment.getExternalStorageDirectory(), "Android"), "data")
|
||||||
|
}
|
||||||
|
val appCacheDir = File(File(dataDir, context.packageName), "cache")
|
||||||
|
JXFileUtils.deleteFile(appCacheDir)
|
||||||
|
toast(ResUtil.getString(R.string.ui_setting_settingactivity_011))
|
||||||
|
} catch (ex: Exception) {
|
||||||
|
ex.printStackTrace()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class MissingPermissionException extends RuntimeException {
|
class MissingPermissionException(message: String?) : RuntimeException(message)
|
||||||
public MissingPermissionException(String message) {
|
|
||||||
super(message);
|
override fun needSteepStateBar(): Boolean {
|
||||||
}
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
override fun setStatusBar() {
|
||||||
protected boolean needSteepStateBar() {
|
super.setStatusBar()
|
||||||
return true;
|
StatusBarUtil.transparencyBar(this)
|
||||||
}
|
StatusBarUtil.StatusBarLightMode(this)
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void setStatusBar() {
|
|
||||||
super.setStatusBar();
|
|
||||||
StatusBarUtil.transparencyBar(this);
|
|
||||||
StatusBarUtil.StatusBarLightMode(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void onLogoutEvent(LogoutEvent event) {
|
fun onLogoutEvent(event: LogoutEvent?) {
|
||||||
getDialogManager().dismissDialog();
|
dialogManager.dismissDialog()
|
||||||
finish();
|
finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
override fun onDestroy() {
|
||||||
protected void onDestroy() {
|
super.onDestroy()
|
||||||
super.onDestroy();
|
dialogManager.dismissDialog()
|
||||||
getDialogManager().dismissDialog();
|
EventBus.getDefault().unregister(this)
|
||||||
EventBus.getDefault().unregister(this);
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
@@ -1,460 +1,437 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
xmlns:tools="http://schemas.android.com/tools">
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/bg_normal_1c1b22"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<data>
|
<com.yizhuan.erban.base.TitleBar
|
||||||
|
android:id="@+id/title_bar"
|
||||||
<variable
|
|
||||||
name="click"
|
|
||||||
type="android.view.View.OnClickListener" />
|
|
||||||
</data>
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:background="@color/bg_normal_1c1b22"
|
android:layout_marginTop="@dimen/dp_30" />
|
||||||
android:orientation="vertical">
|
|
||||||
|
|
||||||
<com.yizhuan.erban.base.TitleBar
|
<ScrollView
|
||||||
android:id="@+id/title_bar"
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="@dimen/dp_30" />
|
android:orientation="vertical">
|
||||||
|
|
||||||
<ScrollView
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/rly_bind_phone"
|
||||||
android:layout_height="match_parent">
|
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="50dp"
|
||||||
android:orientation="vertical">
|
android:clickable="true"
|
||||||
|
android:focusable="true">
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/rly_bind_phone"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:onClick="@{click}">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv_bind_phone"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:text="@string/text_bind_phone"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/iv_bind_phone_arrow"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginEnd="@dimen/dp_15"
|
|
||||||
android:src="@drawable/setting_right" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:id="@+id/view_bind_phone"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1px"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:layout_marginEnd="15dp"
|
|
||||||
android:background="@color/line_353548" />
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/rly_login_pwd"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:onClick="@{click}">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv_login_pwd"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:text="@string/ui_setting_settingactivity_016"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/iv_login_arrow"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginEnd="@dimen/dp_15"
|
|
||||||
android:src="@drawable/setting_right" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:id="@+id/view_set_password"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1px"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:layout_marginEnd="15dp"
|
|
||||||
android:background="@color/line_353548" />
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/rly_pay_pwd"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:onClick="@{click}">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:text="@string/text_setting_pay_password"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/iv_pay_pwd_arrow"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginEnd="@dimen/dp_15"
|
|
||||||
android:src="@drawable/arrow_right" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv_pay_modify"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginEnd="@dimen/dp_14"
|
|
||||||
android:layout_toStartOf="@id/iv_pay_pwd_arrow"
|
|
||||||
android:text="@string/text_modify"
|
|
||||||
android:textColor="@color/text_normal_c6c6e9"
|
|
||||||
android:textSize="12sp" />
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1px"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:layout_marginEnd="15dp"
|
|
||||||
android:background="@color/line_353548" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tv_notice_setting"
|
android:id="@+id/tv_bind_phone"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/dp_setting_item_height"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:layout_centerVertical="true"
|
||||||
android:onClick="@{click}"
|
|
||||||
android:paddingStart="@dimen/dp_15"
|
|
||||||
android:paddingEnd="@dimen/dp_15"
|
|
||||||
android:text="@string/notice_setting"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="@dimen/sp_14"
|
|
||||||
app:drawableEndCompat="@drawable/arrow_right" />
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1px"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
android:layout_marginEnd="15dp"
|
android:text="@string/text_bind_phone"
|
||||||
android:background="@color/line_353548" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv_shield_manager"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="@dimen/dp_setting_item_height"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:onClick="@{click}"
|
|
||||||
android:paddingStart="@dimen/dp_15"
|
|
||||||
android:paddingEnd="@dimen/dp_15"
|
|
||||||
android:text="@string/shield_manager"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="@dimen/sp_14"
|
|
||||||
app:drawableEndCompat="@drawable/arrow_right" />
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1px"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:layout_marginEnd="15dp"
|
|
||||||
android:background="@color/line_353548" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv_black_manager"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:onClick="@{click}"
|
|
||||||
android:paddingLeft="@dimen/dp_15"
|
|
||||||
android:paddingRight="@dimen/dp_15"
|
|
||||||
android:text="@string/text_setting_black_management"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="14sp"
|
|
||||||
app:drawableEndCompat="@drawable/arrow_right" />
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1px"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:layout_marginEnd="15dp"
|
|
||||||
android:background="@color/line_353548" />
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/rly_permission"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:onClick="@{click}">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:text="@string/text_setting_permission"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginEnd="@dimen/dp_15"
|
|
||||||
android:src="@drawable/arrow_right" />
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1px"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:layout_marginEnd="15dp"
|
|
||||||
android:background="@color/line_353548" />
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/rly_help"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:onClick="@{click}">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:text="@string/text_setting_help"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginEnd="@dimen/dp_15"
|
|
||||||
android:src="@drawable/arrow_right" />
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1px"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:layout_marginEnd="15dp"
|
|
||||||
android:background="@color/line_353548" />
|
|
||||||
|
|
||||||
<!-- 1.3.1 版本隐藏社区规范和联系官方 -->
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tv_community_norms"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:onClick="@{click}"
|
|
||||||
android:paddingLeft="@dimen/dp_15"
|
|
||||||
android:paddingRight="@dimen/dp_15"
|
|
||||||
android:text="@string/text_setting_community_norms"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:visibility="gone"
|
|
||||||
app:drawableEndCompat="@drawable/arrow_right" />
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1px"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:layout_marginEnd="15dp"
|
|
||||||
android:background="@color/line_353548"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/rly_contact_us"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:onClick="@{click}"
|
|
||||||
android:visibility="gone">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:text="@string/text_setting_contact_us"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginEnd="@dimen/dp_15"
|
|
||||||
android:src="@drawable/arrow_right" />
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1px"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:layout_marginEnd="15dp"
|
|
||||||
android:background="@color/line_353548"
|
|
||||||
android:visibility="gone" />
|
|
||||||
<!-- 1.3.1 版本隐藏社区规范和联系官方 -->
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/rly_clear_cache"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:onClick="@{click}">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:text="@string/text_setting_clear_cache"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/clear_cache_right"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginEnd="@dimen/dp_15"
|
|
||||||
android:src="@drawable/arrow_right" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1px"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:layout_marginEnd="15dp"
|
|
||||||
android:background="@color/line_353548" />
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/rly_update"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:onClick="@{click}">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:text="@string/text_setting_about"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/arrow_right"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginEnd="@dimen/dp_15"
|
|
||||||
android:src="@drawable/arrow_right" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="1px"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:layout_marginEnd="15dp"
|
|
||||||
android:background="@color/line_353548" />
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/rly_check"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="50dp"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:onClick="@{click}">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:layout_marginStart="@dimen/dp_15"
|
|
||||||
android:text="@string/text_setting_check_for_update"
|
|
||||||
android:textColor="@color/text_title_color"
|
|
||||||
android:textSize="14sp" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/versions"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentEnd="true"
|
|
||||||
android:layout_centerVertical="true"
|
|
||||||
android:paddingStart="0dp"
|
|
||||||
android:paddingEnd="@dimen/dp_15"
|
|
||||||
android:text=""
|
|
||||||
android:textColor="@color/text_normal_c6c6e9"
|
|
||||||
android:textSize="@dimen/dp_13"
|
|
||||||
tools:ignore="SpUsage" />
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/btn_login_out"
|
|
||||||
android:layout_width="320dp"
|
|
||||||
android:layout_height="45dp"
|
|
||||||
android:layout_gravity="center"
|
|
||||||
android:layout_marginTop="40dp"
|
|
||||||
android:layout_marginBottom="40dp"
|
|
||||||
android:background="@drawable/bg_secondary_radius_100"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:gravity="center"
|
|
||||||
android:onClick="@{click}"
|
|
||||||
android:text="@string/text_setting_logout"
|
|
||||||
android:textColor="@color/text_title_color"
|
android:textColor="@color/text_title_color"
|
||||||
android:textSize="14sp" />
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_bind_phone_arrow"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginEnd="@dimen/dp_15"
|
||||||
|
android:src="@drawable/setting_right" />
|
||||||
|
|
||||||
</LinearLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
</ScrollView>
|
<View
|
||||||
</LinearLayout>
|
android:id="@+id/view_bind_phone"
|
||||||
</layout>
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:background="@color/line_353548" />
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/rly_login_pwd"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_login_pwd"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:text="@string/ui_setting_settingactivity_016"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_login_arrow"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginEnd="@dimen/dp_15"
|
||||||
|
android:src="@drawable/setting_right" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/view_set_password"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:background="@color/line_353548" />
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/rly_pay_pwd"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:text="@string/text_setting_pay_password"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_pay_pwd_arrow"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginEnd="@dimen/dp_15"
|
||||||
|
android:src="@drawable/arrow_right" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_pay_modify"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginEnd="@dimen/dp_14"
|
||||||
|
android:layout_toStartOf="@id/iv_pay_pwd_arrow"
|
||||||
|
android:text="@string/text_modify"
|
||||||
|
android:textColor="@color/text_normal_c6c6e9"
|
||||||
|
android:textSize="12sp" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:background="@color/line_353548" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_notice_setting"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_setting_item_height"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingStart="@dimen/dp_15"
|
||||||
|
android:paddingEnd="@dimen/dp_15"
|
||||||
|
android:text="@string/notice_setting"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="@dimen/sp_14"
|
||||||
|
app:drawableEndCompat="@drawable/arrow_right" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:background="@color/line_353548" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_shield_manager"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="@dimen/dp_setting_item_height"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingStart="@dimen/dp_15"
|
||||||
|
android:paddingEnd="@dimen/dp_15"
|
||||||
|
android:text="@string/shield_manager"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="@dimen/sp_14"
|
||||||
|
app:drawableEndCompat="@drawable/arrow_right" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:background="@color/line_353548" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_black_manager"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingLeft="@dimen/dp_15"
|
||||||
|
android:paddingRight="@dimen/dp_15"
|
||||||
|
android:text="@string/text_setting_black_management"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="14sp"
|
||||||
|
app:drawableEndCompat="@drawable/arrow_right" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:background="@color/line_353548" />
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/rly_permission"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:text="@string/text_setting_permission"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginEnd="@dimen/dp_15"
|
||||||
|
android:src="@drawable/arrow_right" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:background="@color/line_353548" />
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/rly_help"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:text="@string/text_setting_help"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginEnd="@dimen/dp_15"
|
||||||
|
android:src="@drawable/arrow_right" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:background="@color/line_353548" />
|
||||||
|
|
||||||
|
<!-- 1.3.1 版本隐藏社区规范和联系官方 -->
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/tv_community_norms"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingLeft="@dimen/dp_15"
|
||||||
|
android:paddingRight="@dimen/dp_15"
|
||||||
|
android:text="@string/text_setting_community_norms"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:visibility="gone"
|
||||||
|
app:drawableEndCompat="@drawable/arrow_right" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:background="@color/line_353548"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/rly_contact_us"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:text="@string/text_setting_contact_us"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginEnd="@dimen/dp_15"
|
||||||
|
android:src="@drawable/arrow_right" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:background="@color/line_353548"
|
||||||
|
android:visibility="gone" />
|
||||||
|
<!-- 1.3.1 版本隐藏社区规范和联系官方 -->
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/rly_clear_cache"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:text="@string/text_setting_clear_cache"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/clear_cache_right"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginEnd="@dimen/dp_15"
|
||||||
|
android:src="@drawable/arrow_right" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:background="@color/line_353548" />
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/rly_update"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:text="@string/text_setting_about"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/arrow_right"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginEnd="@dimen/dp_15"
|
||||||
|
android:src="@drawable/arrow_right" />
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1px"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:layout_marginEnd="15dp"
|
||||||
|
android:background="@color/line_353548" />
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/rly_check"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="50dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_marginStart="@dimen/dp_15"
|
||||||
|
android:text="@string/text_setting_check_for_update"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/versions"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:paddingStart="0dp"
|
||||||
|
android:paddingEnd="@dimen/dp_15"
|
||||||
|
android:text=""
|
||||||
|
android:textColor="@color/text_normal_c6c6e9"
|
||||||
|
android:textSize="@dimen/dp_13"
|
||||||
|
tools:ignore="SpUsage" />
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/btn_login_out"
|
||||||
|
android:layout_width="320dp"
|
||||||
|
android:layout_height="45dp"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:layout_marginTop="40dp"
|
||||||
|
android:layout_marginBottom="40dp"
|
||||||
|
android:background="@drawable/bg_secondary_radius_100"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/text_setting_logout"
|
||||||
|
android:textColor="@color/text_title_color"
|
||||||
|
android:textSize="14sp" />
|
||||||
|
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
</LinearLayout>
|
Reference in New Issue
Block a user