初始化代码
37
modulevocal/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/BaseAppTheme">
|
||||
<activity
|
||||
android:name=".activity.RealNameActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".activity.PhoneReplacementActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".activity.ChangePasswordActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".activity.BlacklistActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".activity.MessageReminderActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".activity.NotificationActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".activity.UnderageActivity"
|
||||
android:exported="true" />
|
||||
<activity
|
||||
android:name=".activity.SettingActivity"
|
||||
android:exported="true" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.example.modulevocal.activity;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.activity.EdgeToEdge;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.graphics.Insets;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
|
||||
import com.example.modulevocal.R;
|
||||
import com.example.modulevocal.databinding.ActivityBlacklistBinding;
|
||||
import com.qxcm.moduleutil.activity.BaseAppCompatActivity;
|
||||
/**
|
||||
*@author
|
||||
*@data
|
||||
*@description: 黑名单
|
||||
*/
|
||||
public class BlacklistActivity extends BaseAppCompatActivity<ActivityBlacklistBinding> {
|
||||
|
||||
|
||||
@Override
|
||||
protected void initData() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initView() {
|
||||
mBinding.topBar.setTitle("黑名单");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_blacklist;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.example.modulevocal.activity;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.activity.EdgeToEdge;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.graphics.Insets;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
|
||||
import com.example.modulevocal.R;
|
||||
import com.example.modulevocal.databinding.ActivityChangePasswordBinding;
|
||||
import com.qxcm.moduleutil.activity.BaseAppCompatActivity;
|
||||
|
||||
public class ChangePasswordActivity extends BaseAppCompatActivity<ActivityChangePasswordBinding> {
|
||||
|
||||
|
||||
@Override
|
||||
protected void initData() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initView() {
|
||||
mBinding.topBar.setTitle("设置密码");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_change_password;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.example.modulevocal.activity;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.activity.EdgeToEdge;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.core.graphics.Insets;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
|
||||
import com.example.modulevocal.R;
|
||||
import com.example.modulevocal.databinding.ActivityMessageReminderBinding;
|
||||
import com.qxcm.moduleutil.activity.BaseAppCompatActivity;
|
||||
|
||||
public class MessageReminderActivity extends BaseAppCompatActivity<ActivityMessageReminderBinding> {
|
||||
private Drawable mRadioCheckDrawable;
|
||||
private Drawable mRadioUnCheckDrawable;
|
||||
boolean aBoolean;
|
||||
|
||||
@Override
|
||||
protected void initData() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initView() {
|
||||
mBinding.topBar.setTitle("开播提示");
|
||||
mRadioCheckDrawable = ContextCompat.getDrawable(this, com.qxcm.moduleutil.R.drawable.icon_btn_radio_1);
|
||||
mRadioUnCheckDrawable = ContextCompat.getDrawable(this, com.qxcm.moduleutil.R.drawable.icon_btn_radio_0);
|
||||
mBinding.btnRadio.setOnClickListener(v -> {
|
||||
if (aBoolean){
|
||||
aBoolean=false;
|
||||
}else {
|
||||
aBoolean=true;
|
||||
}
|
||||
mBinding.btnRadio.setImageDrawable(aBoolean ? mRadioCheckDrawable : mRadioUnCheckDrawable);
|
||||
});
|
||||
mBinding.btnRadio.setImageDrawable(aBoolean ? mRadioCheckDrawable : mRadioUnCheckDrawable);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_message_reminder;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.example.modulevocal.activity;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.activity.EdgeToEdge;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.graphics.Insets;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
|
||||
import com.example.modulevocal.R;
|
||||
import com.example.modulevocal.databinding.ActivityNotificationBinding;
|
||||
import com.qxcm.moduleutil.activity.BaseAppCompatActivity;
|
||||
|
||||
public class NotificationActivity extends BaseAppCompatActivity<ActivityNotificationBinding> {
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
protected void initData() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initView() {
|
||||
mBinding.topBar.setTitle("消息提醒");
|
||||
mBinding.llNotification.setOnClickListener(this::onClick);
|
||||
mBinding.llYouth.setOnClickListener(this::onClick);
|
||||
}
|
||||
|
||||
private void onClick(View view) {
|
||||
if (view.getId()==R.id.ll_youth){//私信
|
||||
startActivity(new Intent(this, UnderageActivity.class));
|
||||
}else if (view.getId()==R.id.ll_notification){//开播
|
||||
startActivity(new Intent(this, MessageReminderActivity.class));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_notification;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.example.modulevocal.activity;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.activity.EdgeToEdge;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.graphics.Insets;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
|
||||
import com.example.modulevocal.R;
|
||||
import com.example.modulevocal.databinding.ActivityPhoneReplacementBinding;
|
||||
import com.qxcm.moduleutil.activity.BaseAppCompatActivity;
|
||||
/**
|
||||
*@author
|
||||
*@data
|
||||
*@description: 手机换绑
|
||||
*/
|
||||
public class PhoneReplacementActivity extends BaseAppCompatActivity<ActivityPhoneReplacementBinding> {
|
||||
|
||||
|
||||
@Override
|
||||
protected void initData() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initView() {
|
||||
mBinding.topBar.setTitle("手机换绑");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_phone_replacement;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.example.modulevocal.activity;
|
||||
|
||||
import android.graphics.Color;
|
||||
import android.os.Bundle;
|
||||
import android.text.Spannable;
|
||||
import android.text.SpannableString;
|
||||
import android.text.Spanned;
|
||||
import android.text.style.AbsoluteSizeSpan;
|
||||
import android.text.style.ForegroundColorSpan;
|
||||
|
||||
import androidx.activity.EdgeToEdge;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.graphics.Insets;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
|
||||
import com.example.modulevocal.R;
|
||||
import com.example.modulevocal.databinding.ActivityRealNameBinding;
|
||||
import com.qxcm.moduleutil.activity.BaseAppCompatActivity;
|
||||
|
||||
public class RealNameActivity extends BaseAppCompatActivity<ActivityRealNameBinding> {
|
||||
|
||||
|
||||
@Override
|
||||
protected void initData() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initView() {
|
||||
mBinding.topBar.setTitle("实名认证");
|
||||
String fullText = "您知悉并同意应用提供者\n· 收集、使用您本人的身份信息和人脸图像\n· 向合法数据持有者核实您的身份信息\n· 本操作数据仅用于身份核实,安全可靠";
|
||||
SpannableString spannable = new SpannableString(fullText);
|
||||
|
||||
int firstLineEnd = fullText.indexOf('\n');
|
||||
if (firstLineEnd > 0) {
|
||||
// 设置第一行字体大小和颜色
|
||||
spannable.setSpan(
|
||||
new AbsoluteSizeSpan(16, true), // 18sp,基于 TextView 的 sp 值调整
|
||||
0,
|
||||
firstLineEnd,
|
||||
Spanned.SPAN_EXCLUSIVE_EXCLUSIVE
|
||||
);
|
||||
|
||||
spannable.setSpan(
|
||||
new ForegroundColorSpan(Color.BLACK),
|
||||
0,
|
||||
firstLineEnd,
|
||||
Spanned.SPAN_EXCLUSIVE_EXCLUSIVE
|
||||
);
|
||||
}
|
||||
|
||||
mBinding.tvAgreeTerms.setText(spannable);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_real_name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
package com.example.modulevocal.activity;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.activity.EdgeToEdge;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.graphics.Insets;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.core.view.WindowInsetsCompat;
|
||||
|
||||
import com.example.modulevocal.R;
|
||||
import com.example.modulevocal.databinding.ActivitySettingBinding;
|
||||
import com.qxcm.moduleutil.activity.BaseAppCompatActivity;
|
||||
import com.qxcm.moduleutil.dialog.RealNameDialog;
|
||||
import com.qxcm.moduleutil.utils.SpUtil;
|
||||
import com.qxcm.moduleutil.utils.config.ConfigManager;
|
||||
import com.qxcm.moduleutil.utils.config.EnvironmentEnum;
|
||||
import com.qxcm.moduleutil.utils.config.EnvironmentPrefs;
|
||||
/**
|
||||
*@author
|
||||
*@data
|
||||
*@description: 设置页面
|
||||
*/
|
||||
public class SettingActivity extends BaseAppCompatActivity<ActivitySettingBinding> {
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
protected void initData() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initView() {
|
||||
mBinding.topBar.setTitle("设置");
|
||||
mBinding.llYouth.setOnClickListener(this::onClick);
|
||||
mBinding.llNotification.setOnClickListener(this::onClick);
|
||||
mBinding.swit.setOnClickListener(this::onClick);
|
||||
mBinding.llHmd.setOnClickListener(this::onClick);
|
||||
mBinding.llSzmm.setOnClickListener(this::onClick);
|
||||
mBinding.llShb.setOnClickListener(this::onClick);
|
||||
mBinding.llSmrz.setOnClickListener(this::onClick);
|
||||
}
|
||||
|
||||
private void onClick(View view) {
|
||||
if (view.getId()==R.id.ll_youth){
|
||||
startActivity(new Intent(this, UnderageActivity.class));
|
||||
}else if (view.getId()==R.id.ll_notification){
|
||||
startActivity(new Intent(this, NotificationActivity.class));
|
||||
}else if (view.getId()==R.id.ll_hmd){
|
||||
startActivity(new Intent(this, BlacklistActivity.class));
|
||||
}else if (view.getId()==R.id.ll_szmm){
|
||||
startActivity(new Intent(this, ChangePasswordActivity.class));
|
||||
}else if (view.getId()==R.id.ll_shb){
|
||||
startActivity(new Intent(this, PhoneReplacementActivity.class));
|
||||
}else if (view.getId()==R.id.ll_smrz){
|
||||
RealNameDialog realNameDialog = new RealNameDialog(this);
|
||||
realNameDialog.show();
|
||||
realNameDialog.setOnDismissListener(dialog -> {
|
||||
dialog.dismiss();
|
||||
startActivity(new Intent(SettingActivity.this, RealNameActivity.class));
|
||||
});
|
||||
}
|
||||
else if (view.getId()==R.id.swit){
|
||||
if (mBinding.swit.isChecked()){
|
||||
ConfigManager.getInstance().switchEnvironment(EnvironmentEnum.PRODUCTION);
|
||||
EnvironmentEnum selectedEnv = EnvironmentEnum.PRODUCTION;
|
||||
EnvironmentPrefs prefs = new EnvironmentPrefs(this);
|
||||
prefs.setSelectedEnvironment(selectedEnv);
|
||||
}else {
|
||||
ConfigManager.getInstance().switchEnvironment(EnvironmentEnum.TEST);
|
||||
EnvironmentEnum selectedEnv = EnvironmentEnum.TEST;
|
||||
EnvironmentPrefs prefs = new EnvironmentPrefs(this);
|
||||
prefs.setSelectedEnvironment(selectedEnv);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_setting;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.example.modulevocal.activity;
|
||||
|
||||
|
||||
import com.example.modulevocal.R;
|
||||
import com.example.modulevocal.databinding.ActivityUnderageBinding;
|
||||
import com.example.modulevocal.presenter.UnderagePresenter;
|
||||
import com.qxcm.moduleutil.activity.BaseMvpActivity;
|
||||
|
||||
public class UnderageActivity extends BaseMvpActivity<UnderagePresenter, ActivityUnderageBinding> {
|
||||
|
||||
|
||||
@Override
|
||||
protected void initData() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initView() {
|
||||
super.initView();
|
||||
mBinding.topBar.setTitle("未成年人模式");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_underage;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected UnderagePresenter bindPresenter() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.example.modulevocal.conacts;
|
||||
|
||||
import android.app.Activity;
|
||||
|
||||
import com.qxcm.moduleutil.activity.IPresenter;
|
||||
import com.qxcm.moduleutil.activity.IView;
|
||||
|
||||
|
||||
public final class MeConacts {
|
||||
|
||||
public interface View extends IView<Activity> {
|
||||
// void myInfoSuccess(MyInfoResp data);
|
||||
|
||||
void serviceSuccess(String data);
|
||||
|
||||
void hideSkill(boolean hideSkill);
|
||||
|
||||
// void isFirstRecharge(EntranceCheckBean entranceCheckBean);
|
||||
|
||||
// void setMemberList(GuardMemberBean guardMemberBean);
|
||||
}
|
||||
|
||||
public interface IMePre extends IPresenter {
|
||||
void getMyInfo();
|
||||
|
||||
void serviceUser();
|
||||
|
||||
void getNameAuthResult(int type);
|
||||
|
||||
void getGuildInfo();
|
||||
|
||||
void entranceCheckFirstRecharge();
|
||||
|
||||
void getMemberList(String userId, int page);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.example.modulevocal.conacts;
|
||||
|
||||
import android.app.Activity;
|
||||
|
||||
import com.qxcm.moduleutil.activity.IPresenter;
|
||||
import com.qxcm.moduleutil.activity.IView;
|
||||
|
||||
public class UnderageConacts {
|
||||
public interface View extends IView<Activity> {
|
||||
|
||||
}
|
||||
|
||||
public interface IMePre extends IPresenter {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,425 @@
|
||||
package com.example.modulevocal.fragment;
|
||||
|
||||
import android.content.ClipData;
|
||||
import android.content.ClipboardManager;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
import android.text.TextUtils;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.example.modulevocal.R;
|
||||
import com.example.modulevocal.activity.SettingActivity;
|
||||
import com.example.modulevocal.conacts.MeConacts;
|
||||
import com.example.modulevocal.databinding.FragmentVocalRangeBinding;
|
||||
import com.example.modulevocal.presenter.MePresenter;
|
||||
import com.qxcm.moduleutil.base.BaseMvpFragment;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 音域--我的
|
||||
*/
|
||||
public class VocalRangeFragment extends BaseMvpFragment<MePresenter, FragmentVocalRangeBinding> implements MeConacts.View {
|
||||
|
||||
// private MyInfoResp mMyInfoResp;
|
||||
|
||||
public static VocalRangeFragment newInstance() {
|
||||
return new VocalRangeFragment();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected MePresenter bindPresenter() {
|
||||
return new MePresenter(this, getActivity());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onHiddenChanged(boolean hidden) {
|
||||
super.onHiddenChanged(hidden);
|
||||
if (!hidden) {
|
||||
// MvpPre.getMyInfo();
|
||||
// MvpPre.getMemberList(SpUtils.getUserId(), 1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initData() {
|
||||
// MvpPre.entranceCheckFirstRecharge();
|
||||
}
|
||||
|
||||
// private final MeItemAdapter.OnMeItemClickListener onMeItemClickListener = item -> {
|
||||
// String type = item.getType();
|
||||
// // 成为大神
|
||||
// if ("skill".equals(type)) {
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_ALL_SKILLS).withString("from", "我的界面").navigation();
|
||||
// }
|
||||
// // 我的订单
|
||||
// else if ("order".equals(type)) {
|
||||
// ToastUtils.show("暂未开放");
|
||||
// }
|
||||
// // 评价订单
|
||||
// else if ("pjOrder".equals(type)) {
|
||||
// ToastUtils.show("暂未开放");
|
||||
// }
|
||||
// // 我的等级
|
||||
// else if ("wdDengji".equals(type)) {
|
||||
// }
|
||||
// // 我的公会
|
||||
// else if ("wdGonghui".equals(type)) {
|
||||
//// MvpPre.getGuildInfo();
|
||||
// Intent intent = new Intent(getContext(), BaseWebActivity.class);
|
||||
// intent.putExtra("url", BuildConfig.BASE_URL+"Api/guid/index");
|
||||
// intent.putExtra("title", "我的公会");
|
||||
// startActivity(intent);
|
||||
// }
|
||||
//
|
||||
//// // 邀请有礼
|
||||
// else if ("yqYouli".equals(type)) {
|
||||
// ARouter.getInstance().build(ARouteConstants.MY_INVITE_CODE).withString("userCode", mMyInfoResp.getUser_code()).navigation();
|
||||
// }
|
||||
// // 实名认证
|
||||
// else if ("verified".equals(type)) {
|
||||
// //实名认证
|
||||
// //判断用户是否已经注册过手机号
|
||||
// if (TextUtils.isEmpty(SpUtils.getUserInfo().getMobile())) {
|
||||
// ToastUtils.show("请先绑定手机号");
|
||||
// ARouter.getInstance().build(ARouteConstants.ACCOUNT_SECURITY).navigation();
|
||||
// return;
|
||||
// }
|
||||
// MvpPre.getNameAuthResult(0);
|
||||
// AppLogUtil.reportAppLog(AppLogEvent.C0108);
|
||||
// }
|
||||
// };
|
||||
// private final MeItemAdapter.OnMeItemClickListener onMeItemClickListener2 = item -> {
|
||||
// String type = item.getType();
|
||||
// if ("customer_service".equals(type)) {
|
||||
// //在线客服
|
||||
// MvpPre.serviceUser();
|
||||
// } else if ("help_center".equals(type)) {
|
||||
// //帮助中心
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_HELP).navigation();
|
||||
// } else if ("settings".equals(type)) {
|
||||
// //设置
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_SETTING).navigation();
|
||||
// }
|
||||
// };
|
||||
|
||||
|
||||
@Override
|
||||
protected void initView() {
|
||||
mBinding.llVisit.setOnClickListener(this::onClick);
|
||||
mBinding.llFollow.setOnClickListener(this::onClick);
|
||||
mBinding.llFans.setOnClickListener(this::onClick);
|
||||
mBinding.llFriends.setOnClickListener(this::onClick);
|
||||
mBinding.tvNickName.setOnClickListener(this::onClick);
|
||||
// mBinding.tvMyRoom.setOnClickListener(this::onClick);
|
||||
mBinding.tvMyJw.setOnClickListener(this::onClick);
|
||||
// mBinding.tvMySc.setOnClickListener(this::onClick);
|
||||
mBinding.tvMyBb.setOnClickListener(this::onClick);
|
||||
mBinding.rivUserHead.setOnClickListener(this::onClick);
|
||||
mBinding.meMyWallets.setOnClickListener(this::onClick);
|
||||
// mBinding.meMyUnion.setOnClickListener(this::onClick);
|
||||
// mBinding.meMyLv.setOnClickListener(this::onClick);
|
||||
// mBinding.meMyCertification.setOnClickListener(this::onClick);
|
||||
// mBinding.meMyCustom.setOnClickListener(this::onClick);
|
||||
// mBinding.meMyHelp.setOnClickListener(this::onClick);
|
||||
mBinding.ivSz.setOnClickListener(this::onClick);
|
||||
mBinding.beautifulViewCopy.setOnClickListener(this::onClick);
|
||||
// mBinding.meMyShare.setOnClickListener(this::onClick);
|
||||
mBinding.tvHome.setOnClickListener(this::onClick);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
MvpPre.getMyInfo();
|
||||
// MvpPre.getMemberList(SpUtils.getUserId(), 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.fragment_vocal_range;
|
||||
}
|
||||
|
||||
public void onClick(View view) {
|
||||
int id = view.getId();
|
||||
if (id == R.id.ll_visit) {
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_VISIT).navigation();
|
||||
// AppLogUtil.reportAppLog(AppLogEvent.C0104);
|
||||
} else if (id == R.id.ll_follow) {
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_MY_FRIENDS).withInt("type", 1).navigation();
|
||||
// AppLogUtil.reportAppLog(AppLogEvent.C0110);
|
||||
}
|
||||
// else if (id == R.id.me_my_union) {
|
||||
// if (ProxyCheckerT.isProxySet(getContext())){
|
||||
// com.blankj.utilcode.util.ToastUtils.showShort("使用代理禁止访问");
|
||||
// return;
|
||||
// }
|
||||
// Intent intent = new Intent(getContext(), BaseWebActivity.class);
|
||||
// try {
|
||||
// intent.putExtra("url", BuildConfig.BASE_URL+"Api/guid/index?token="+ URLEncoder.encode(SpUtils.getToken(),"UTF-8"));
|
||||
// } catch (UnsupportedEncodingException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// intent.putExtra("title", "我的公会");
|
||||
// startActivity(intent);
|
||||
// }
|
||||
else if (id == R.id.ll_fans) {
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_MY_FRIENDS).withInt("type", 2).navigation();
|
||||
// AppLogUtil.reportAppLog(AppLogEvent.C0111);
|
||||
} else if (id == R.id.ll_friends) {
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_MY_FRIENDS).withInt("type", 0).navigation();
|
||||
// AppLogUtil.reportAppLog(AppLogEvent.C0112);
|
||||
}
|
||||
// else if (id == R.id.tv_ye_cz) {
|
||||
// // 充值
|
||||
//// ARouter.getInstance().build(ARouteConstants.ME_BALANCE).withString("from", "我的界面").navigation();
|
||||
// }
|
||||
// else if (id == R.id.tv_jb_dh) {
|
||||
// // 兑换金币
|
||||
//// ARouter.getInstance().build(ARouteConstants.ME_PROFIT).withString("from", "我的界面").withBoolean("showExDlg", true).navigation();
|
||||
// }
|
||||
else if (id == R.id.me_my_wallets) {
|
||||
//我的钱包
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_WALLETS).withString("from", "我的界面").navigation();
|
||||
} else if (id == R.id.tv_nick_name || id == R.id.riv_user_head || id == R.id.tv_home) {
|
||||
//我的空间
|
||||
// if (mMyInfoResp != null) {
|
||||
// ARouter.getInstance().build(ARouteConstants.NEW_HOME_PAGE).withString("userId", mMyInfoResp.getUser_id()).navigation();
|
||||
// }
|
||||
}
|
||||
// else if (id == R.id.tv_my_room) {
|
||||
// //我的房间
|
||||
//// if (mMyInfoResp != null) {
|
||||
////
|
||||
//// ARouter.getInstance().build(ARouteConstants.MY_ROOM_LIST).withString("from", "我的界面").withString("roomId", mMyInfoResp.getRoom_id()).withInt("auth_status", mMyInfoResp.getAuth_status()).navigation();
|
||||
//// }
|
||||
// }
|
||||
else if (id == R.id.tv_my_jw) {
|
||||
//我的爵位
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_GRADEACTIVITY).withString("from", "我的界面").withInt("type", 0).navigation();
|
||||
|
||||
// if (ProxyCheckerT.isProxySet(getContext())){
|
||||
// com.blankj.utilcode.util.ToastUtils.showShort("使用代理禁止访问");
|
||||
// return;
|
||||
// }
|
||||
// Intent intent = new Intent(getContext(), BaseWebActivity.class);
|
||||
// try {
|
||||
// intent.putExtra("url", BuildConfig.BASE_URL+"Api/guid/index?token="+ URLEncoder.encode(SpUtils.getToken(),"UTF-8"));
|
||||
// } catch (UnsupportedEncodingException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// intent.putExtra("title", "我的公会");
|
||||
// startActivity(intent);
|
||||
|
||||
}
|
||||
// else if (id == R.id.me_my_lv) {
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_GRADEACTIVITY).withString("from", "我的界面").withInt("type", 1).navigation();
|
||||
// } else if (id == R.id.tv_my_sc) {
|
||||
// //装扮商城
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_SHOP).withString("from", "我的界面").navigation();
|
||||
// }
|
||||
else if (id == R.id.tv_my_bb) {
|
||||
//我的背包
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_KNAPSACK).withString("from", "我的界面").navigation();
|
||||
}
|
||||
// else if (id == R.id.me_my_custom) {
|
||||
//
|
||||
// startActivity(new Intent(getContext(), ContactCustomerActivity.class));
|
||||
//
|
||||
// } else if (id == R.id.me_my_help) {
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_HELP).navigation();
|
||||
// }
|
||||
else if (id == R.id.iv_sz) {
|
||||
startActivity(new Intent(getContext(), SettingActivity.class));
|
||||
}
|
||||
// else if (id == R.id.me_my_certification) {
|
||||
// //实名认证
|
||||
// //判断用户是否已经注册过手机号
|
||||
// if (TextUtils.isEmpty(SpUtils.getUserInfo().getMobile())) {
|
||||
// ToastUtils.show("请先绑定手机号");
|
||||
// ARouter.getInstance().build(ARouteConstants.ACCOUNT_SECURITY).navigation();
|
||||
// return;
|
||||
// }
|
||||
// MvpPre.getNameAuthResult(0);
|
||||
// AppLogUtil.reportAppLog(AppLogEvent.C0108);
|
||||
// }else{
|
||||
// ARouter.getInstance().build(ARouteConstants.MY_INVITE_CODE).withString("userCode", mMyInfoResp.getUser_code()).navigation();
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看用户主页(我的空间)
|
||||
*/
|
||||
public void userOnclick(View view) {
|
||||
//我的空间
|
||||
// if (mMyInfoResp != null) {
|
||||
// ARouter.getInstance().build(ARouteConstants.NEW_HOME_PAGE).withString("userId", mMyInfoResp.getUser_id()).navigation();
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
// @Override
|
||||
// public void myInfoSuccess(MyInfoResp data) {
|
||||
// this.mMyInfoResp = data;
|
||||
// SpUtils.saveUserId(data.getUser_id());
|
||||
// SpUtils.saveMyRoomId(data.getRoom_id());
|
||||
// mBinding.tvNickName.setText(data.getNickname());
|
||||
// mBinding.tvFollow.setText(data.getFollow_count());
|
||||
// mBinding.tvFans.setText(data.getFans_count());
|
||||
// mBinding.tvFriends.setText(data.getFriend_count());
|
||||
// mBinding.tvVisit.setText(data.getVisit_count());
|
||||
// mBinding.beautifulView.setText("ID:"+data.getUser_code());
|
||||
// mBinding.beautifulViewCopy.setOnClickListener(v->copyUserId(data.getUser_code()));
|
||||
// mBinding.rivUserHead.setData(data.getHead_picture(), data.getRank_info().getPicture(), data.getSex());
|
||||
// }
|
||||
|
||||
@Override
|
||||
public void serviceSuccess(String data) {
|
||||
try {
|
||||
String qqUrl = "mqqwpa://im/chat?chat_type=wpa&uin=" + data + "&version=1";
|
||||
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(qqUrl)));
|
||||
} catch (Exception e) {
|
||||
// ToastUtils.show("请先安装QQ");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hideSkill(boolean hideSkill) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 首充有礼显示
|
||||
*/
|
||||
// @Override
|
||||
// public void isFirstRecharge(EntranceCheckBean entranceCheckBean) {
|
||||
//// if (entranceCheckBean != null) {
|
||||
//// mBinding.ivFirstCharge.setVisibility(entranceCheckBean.isAllow_show() ? View.VISIBLE : View.GONE);
|
||||
//// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* 获取守护数
|
||||
*/
|
||||
// @Override
|
||||
// public void setMemberList(GuardMemberBean guardMemberBean) {
|
||||
//// if (guardMemberBean != null) {
|
||||
//// mBinding.tvGuardNum.setText(guardMemberBean.getHead().getTotal_number());
|
||||
//// }
|
||||
// }
|
||||
|
||||
private void copyUserId(CharSequence content) {
|
||||
ClipboardManager clipboard = (ClipboardManager) getActivity().getSystemService(Context.CLIPBOARD_SERVICE);
|
||||
if (clipboard != null) {
|
||||
clipboard.setPrimaryClip(ClipData.newPlainText(null, content));
|
||||
// ToastUtils.show("已复制到粘贴板");
|
||||
}
|
||||
}
|
||||
|
||||
// private List<MeItemBean> initItems() {
|
||||
// List<MeItemBean> items = new ArrayList<>();
|
||||
// // 成为大神
|
||||
// MeItemBean skill = new MeItemBean(true, true);
|
||||
// skill.setIcon(R.mipmap.me_icon_cwds);
|
||||
// skill.setName("成为大神");
|
||||
// skill.setType("skill");
|
||||
// items.add(skill);
|
||||
// // 我的订单
|
||||
//// MeItemBean order = new MeItemBean(true, false);
|
||||
//// order.setIcon(R.mipmap.me_icon_wddd);
|
||||
//// order.setName("我的订单");
|
||||
//// order.setType("order");
|
||||
//// items.add(order);
|
||||
//// // 评价订单
|
||||
//// MeItemBean pjOrder = new MeItemBean(true, false);
|
||||
//// pjOrder.setIcon(R.mipmap.me_icon_pjdd);
|
||||
//// pjOrder.setName("评价订单");
|
||||
//// pjOrder.setType("pjOrder");
|
||||
//// items.add(pjOrder);
|
||||
// // 我的等级
|
||||
// MeItemBean wdDengji = new MeItemBean(true, true);
|
||||
// wdDengji.setIcon(R.mipmap.me_icon_wddj);
|
||||
// wdDengji.setName("我的等级");
|
||||
// wdDengji.setType("wdDengji");
|
||||
// items.add(wdDengji);
|
||||
// // 我的公会
|
||||
// MeItemBean wdGonghui = new MeItemBean(true, true);
|
||||
// wdGonghui.setIcon(R.mipmap.me_icon_wdgh);
|
||||
// wdGonghui.setName("我的公会");
|
||||
// wdGonghui.setType("wdGonghui");
|
||||
// items.add(wdGonghui);
|
||||
//// // 邀请有礼
|
||||
//// MeItemBean yqYouli = new MeItemBean(true, true);
|
||||
//// yqYouli.setIcon(R.mipmap.me_icon_yqyl);
|
||||
//// yqYouli.setName("邀请有礼");
|
||||
//// yqYouli.setType("yqYouli");
|
||||
//// items.add(yqYouli);
|
||||
// // 实名认证
|
||||
// MeItemBean verified = new MeItemBean(false, true);
|
||||
// verified.setIcon(R.mipmap.me_icon_smrz);
|
||||
// verified.setName("实名认证");
|
||||
// verified.setType("verified");
|
||||
// items.add(verified);
|
||||
//
|
||||
// return items;
|
||||
// }
|
||||
|
||||
// private List<MeItemBean> initItems2() {
|
||||
// List<MeItemBean> items = new ArrayList<>();
|
||||
// // 在线客服
|
||||
// MeItemBean customerService = new MeItemBean(true, true);
|
||||
// customerService.setType("customer_service");
|
||||
// customerService.setName("在线客服");
|
||||
// customerService.setIcon(R.mipmap.me_icon_service);
|
||||
// items.add(customerService);
|
||||
// // 帮助中心
|
||||
// MeItemBean helpCenter = new MeItemBean(true, true);
|
||||
// helpCenter.setType("help_center");
|
||||
// helpCenter.setName("帮助中心");
|
||||
// helpCenter.setIcon(R.mipmap.me_icon_help);
|
||||
// items.add(helpCenter);
|
||||
// // 设置
|
||||
// MeItemBean settings = new MeItemBean(false, true);
|
||||
// settings.setType("settings");
|
||||
// settings.setName("设置");
|
||||
// settings.setIcon(R.mipmap.me_icon_setting);
|
||||
// items.add(settings);
|
||||
//
|
||||
// return items;
|
||||
// }
|
||||
|
||||
/**
|
||||
* 关闭首充入口
|
||||
*/
|
||||
// @Subscribe(threadMode = ThreadMode.MAIN)
|
||||
// public void closeFirstCharge(CloseFirstChargeEvent closeFirstChargeEvent) {
|
||||
//// mBinding.ivFirstCharge.setVisibility(View.GONE);
|
||||
// }
|
||||
|
||||
@Override
|
||||
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
// EventBus.getDefault().register(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
// EventBus.getDefault().unregister(this);
|
||||
super.onDestroyView();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
package com.example.modulevocal.presenter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.blankj.utilcode.util.MetaDataUtils;
|
||||
import com.example.modulevocal.conacts.MeConacts;
|
||||
import com.hjq.toast.ToastUtils;
|
||||
import com.qxcm.moduleutil.presenter.BasePresenter;
|
||||
|
||||
import io.reactivex.disposables.Disposable;
|
||||
|
||||
public class MePresenter extends BasePresenter<MeConacts.View> implements MeConacts.IMePre {
|
||||
|
||||
public MePresenter(MeConacts.View view, Context context) {
|
||||
super(view, context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getMyInfo() {
|
||||
// ApiClient.getInstance().getMyInfo(new BaseObserver<MyInfoResp>() {
|
||||
// @Override
|
||||
// public void onSubscribe(Disposable d) {
|
||||
// addDisposable(d);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onNext(MyInfoResp myInfoResp) {
|
||||
// UserBean user = BaseApplication.getInstance().getUser();
|
||||
// try {
|
||||
// user.setRole(Integer.parseInt(myInfoResp.getRole()));
|
||||
// user.setUser_is_new(Integer.parseInt(myInfoResp.getUser_is_new()));
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// user.setNickname(myInfoResp.getNickname());
|
||||
// try {
|
||||
// user.setSex(Integer.parseInt(myInfoResp.getSex()));
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// user.setHead_picture(myInfoResp.getHead_picture());
|
||||
// user.setRank_info(myInfoResp.getRank_info());
|
||||
// BaseApplication.getInstance().setUser(user);
|
||||
// MvpRef.get().myInfoSuccess(myInfoResp);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onComplete() {
|
||||
//
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
@Override
|
||||
public void serviceUser() {
|
||||
// MvpRef.get().showLoadings();
|
||||
// ApiClient.getInstance().serviceUser(new BaseObserver<String>() {
|
||||
// @Override
|
||||
// public void onSubscribe(Disposable d) {
|
||||
// addDisposable(d);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onNext(String s) {
|
||||
// MvpRef.get().serviceSuccess(s);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onComplete() {
|
||||
// MvpRef.get().disLoadings();
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void getNameAuthResult(int type) {
|
||||
// NewApi.getInstance().getNameAuthResult(new com.qpyy.libcommon.api.BaseObserver<NameAuthResult>(false) {
|
||||
// @Override
|
||||
// public void onSubscribe(Disposable d) {
|
||||
// addDisposable(d);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onNext(NameAuthResult result) {
|
||||
// if (result.getApp_status() == 2) {
|
||||
// ARouter.getInstance().build(ARouteConstants.AUTH_RESULT_PAGE).withString("failStr", result.getReason()).withInt("examineType", 1).withInt("returnResult", 3).navigation();
|
||||
// } else if (result.getApp_status() == 0) {
|
||||
//// ToastUtils.show("审核中");
|
||||
// ARouter.getInstance().build(ARouteConstants.AUTH_RESULT_PAGE).withString("failStr", result.getReason()).withInt("examineType", 1).withInt("returnResult", 1).navigation();
|
||||
// } else if (result.getApp_status() == 1) {
|
||||
//// ToastUtils.show("已认证");
|
||||
// ARouter.getInstance().build(ARouteConstants.AUTH_RESULT_PAGE).withString("failStr", result.getReason()).withInt("examineType", 1).withInt("returnResult", 2).navigation();
|
||||
// } else if (result.getApp_status() == 3) {
|
||||
// go2NameAuth(type);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onErrorCode(int code) {
|
||||
// super.onErrorCode(code);
|
||||
// if (code == ErrorCode.AUTH_NOT_EXIT) {
|
||||
// go2NameAuth(type);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onComplete() {
|
||||
//
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getGuildInfo() {
|
||||
// MvpRef.get().showLoadings();
|
||||
// ApiClient.getInstance().guildInfo(new BaseObserver<GuildResp>() {
|
||||
// @Override
|
||||
// public void onSubscribe(Disposable d) {
|
||||
// addDisposable(d);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onNext(GuildResp guildResp) {
|
||||
// if (guildResp.getState() == -1) {
|
||||
// ARouter.getInstance().build(ARouteConstants.JOIN_GUILD).navigation();
|
||||
// } else if (guildResp.getState() == 0) {
|
||||
// ToastUtils.show("申请中");
|
||||
// } else {
|
||||
// ARouter.getInstance().build(ARouteConstants.MY_GUILD).navigation();
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onComplete() {
|
||||
// MvpRef.get().disLoadings();
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
@Override
|
||||
public void entranceCheckFirstRecharge() {
|
||||
// NewApi.getInstance().isFirstRecharge(new com.qpyy.libcommon.api.BaseObserver<EntranceCheckBean>() {
|
||||
// @Override
|
||||
// public void onSubscribe(Disposable d) {
|
||||
// addDisposable(d);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onNext(EntranceCheckBean entranceCheckBean) {
|
||||
// MvpRef.get().isFirstRecharge(entranceCheckBean);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onComplete() {
|
||||
//
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getMemberList(String userId, int page) {
|
||||
// NewApi.getInstance().getMemberList(userId, page, new com.qpyy.libcommon.api.BaseObserver<GuardMemberBean>() {
|
||||
// @Override
|
||||
// public void onSubscribe(Disposable d) {
|
||||
// addDisposable(d);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onNext(GuardMemberBean guardMemberBean) {
|
||||
// MvpRef.get().setMemberList(guardMemberBean);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onComplete() {
|
||||
//
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
private void go2NameAuth(int type) {
|
||||
// if (type == 0) {
|
||||
// ARouter.getInstance().build(ARouteConstants.ME_NAME_AUTH).withString("from","我的界面").navigation();
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
public void getConfig() {
|
||||
// api.appUpdate(new com.qpyy.libcommon.http.BaseObserver<AppUpdateModel>() {
|
||||
// @Override
|
||||
// public void onSubscribe(Disposable d) {
|
||||
// addDisposable(d);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onNext(AppUpdateModel appUpdateModel) {
|
||||
// String channelId = "default";
|
||||
// try {
|
||||
// channelId = MetaDataUtils.getMetaDataInApp("TD_CHANNEL_ID");
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// MvpRef.get().hideSkill(appUpdateModel != null && appUpdateModel.getChannels() != null && appUpdateModel.getChannels().contains(channelId));
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void onComplete() {
|
||||
//
|
||||
// }
|
||||
// });
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.example.modulevocal.presenter;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.example.modulevocal.conacts.MeConacts;
|
||||
import com.example.modulevocal.conacts.UnderageConacts;
|
||||
import com.qxcm.moduleutil.presenter.BasePresenter;
|
||||
|
||||
public class UnderagePresenter extends BasePresenter<UnderageConacts.View> implements UnderageConacts.IMePre{
|
||||
public UnderagePresenter(UnderageConacts.View view, Context context) {
|
||||
super(view, context);
|
||||
}
|
||||
}
|
||||
170
modulevocal/src/main/res/drawable/ic_launcher_background.xml
Normal file
@@ -0,0 +1,170 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path
|
||||
android:fillColor="#3DDC84"
|
||||
android:pathData="M0,0h108v108h-108z" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M9,0L9,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,0L19,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,0L29,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,0L39,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,0L49,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,0L59,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,0L69,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,0L79,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M89,0L89,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M99,0L99,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,9L108,9"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,19L108,19"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,29L108,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,39L108,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,49L108,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,59L108,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,69L108,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,79L108,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,89L108,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,99L108,99"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,29L89,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,39L89,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,49L89,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,59L89,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,69L89,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,79L89,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,19L29,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,19L39,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,19L49,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,19L59,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,19L69,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,19L79,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
</vector>
|
||||
30
modulevocal/src/main/res/drawable/ic_launcher_foreground.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="85.84757"
|
||||
android:endY="92.4963"
|
||||
android:startX="42.9492"
|
||||
android:startY="49.59793"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#44000000"
|
||||
android:offset="0.0" />
|
||||
<item
|
||||
android:color="#00000000"
|
||||
android:offset="1.0" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#00000000" />
|
||||
</vector>
|
||||
32
modulevocal/src/main/res/layout/activity_blacklist.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context=".activity.BlacklistActivity">
|
||||
|
||||
<data>
|
||||
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<com.qxcm.moduleutil.widget.CustomTopBar
|
||||
android:id="@+id/top_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/rv_blacklist"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||
android:overScrollMode="never"
|
||||
android:scrollbars="none"
|
||||
android:background="@color/white"
|
||||
android:clipToPadding="false"
|
||||
android:paddingBottom="10dp"
|
||||
android:paddingTop="10dp"/>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
160
modulevocal/src/main/res/layout/activity_change_password.xml
Normal file
@@ -0,0 +1,160 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context=".activity.ChangePasswordActivity">
|
||||
|
||||
<data>
|
||||
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.qxcm.moduleutil.widget.CustomTopBar
|
||||
android:id="@+id/top_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginRight="20dp"
|
||||
android:gravity="center|left"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="当前手机号:"
|
||||
android:textSize="@dimen/sp_16"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="12345678901"
|
||||
android:textSize="@dimen/sp_16"/>
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_code"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginRight="20dp"
|
||||
android:background="@drawable/bg_r16_ffeff2f8">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_code"
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:src="@mipmap/icon_login_code" />
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_28"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginLeft="13dp"
|
||||
android:layout_marginRight="25dp"
|
||||
android:layout_toRightOf="@+id/iv_code"
|
||||
android:background="@android:color/transparent"
|
||||
android:hint="@string/login_hint_code"
|
||||
android:inputType="textPassword"
|
||||
android:maxLength="20"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/black"
|
||||
android:textColorHint="@color/color_FFCCCCCC"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_send_code"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="@dimen/dp_30"
|
||||
android:gravity="right"
|
||||
android:text="@string/login_send_code"
|
||||
android:textColor="#FF8ACC"
|
||||
android:textSize="@dimen/sp_16"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/input_fields"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="16dp"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/rl_code">
|
||||
|
||||
<!-- 输入新密码 -->
|
||||
<EditText
|
||||
android:id="@+id/editTextNewPassword"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:background="@drawable/bg_r16_ffeff2f8"
|
||||
android:drawableLeft="@mipmap/icon_login_lick"
|
||||
android:drawablePadding="@dimen/dp_4"
|
||||
android:gravity="center|left"
|
||||
android:hint="@string/please_enter_a_new_password"
|
||||
android:inputType="textPassword"
|
||||
android:maxLength="20"
|
||||
android:paddingStart="@dimen/dp_12"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/black"
|
||||
android:textColorHint="@color/color_FF9b9b9b"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
<!-- 确认新密码 -->
|
||||
<EditText
|
||||
android:id="@+id/editTextConfirmPassword"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:background="@drawable/bg_r16_ffeff2f8"
|
||||
android:drawableLeft="@mipmap/icon_login_lick"
|
||||
android:drawablePadding="@dimen/dp_4"
|
||||
android:gravity="center|left"
|
||||
android:hint="@string/please_confirm_the_new_password_again"
|
||||
android:inputType="textPassword"
|
||||
android:maxLength="20"
|
||||
android:paddingStart="@dimen/dp_12"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/black"
|
||||
android:textColorHint="@color/color_FF9b9b9b"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 提交按钮 -->
|
||||
<Button
|
||||
android:id="@+id/btnSubmit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_42"
|
||||
android:layout_marginStart="@dimen/dp_38"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:layout_marginEnd="@dimen/dp_38"
|
||||
android:background="@drawable/cs"
|
||||
android:gravity="center"
|
||||
android:text="提交"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
|
||||
tools:context=".activity.MessageReminderActivity">
|
||||
|
||||
<data>
|
||||
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.qxcm.moduleutil.widget.CustomTopBar
|
||||
android:id="@+id/top_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:background="@color/white"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingRight="15dp"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="16sp"
|
||||
android:text="直播消息提醒"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/btn_radio"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="54dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:padding="15dp"
|
||||
android:scaleType="fitXY" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="12dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_youth"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="屏蔽私信" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
58
modulevocal/src/main/res/layout/activity_notification.xml
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
|
||||
tools:context=".activity.NotificationActivity">
|
||||
|
||||
<data>
|
||||
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.qxcm.moduleutil.widget.CustomTopBar
|
||||
android:id="@+id/top_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_notification"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="开播提醒" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_youth"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="屏蔽私信" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
128
modulevocal/src/main/res/layout/activity_phone_replacement.xml
Normal file
@@ -0,0 +1,128 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context=".activity.PhoneReplacementActivity">
|
||||
|
||||
<data>
|
||||
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.qxcm.moduleutil.widget.CustomTopBar
|
||||
android:id="@+id/top_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rel_phone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="@dimen/dp_16"
|
||||
android:layout_marginTop="@dimen/dp_17"
|
||||
android:layout_marginRight="@dimen/dp_16"
|
||||
android:background="@drawable/bg_r16_ffeff2f8"
|
||||
android:gravity="center">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_user"
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:src="@mipmap/icon_login_user_new" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_phone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_28"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginLeft="13dp"
|
||||
android:layout_marginRight="25dp"
|
||||
android:layout_toRightOf="@+id/iv_user"
|
||||
android:background="@android:color/transparent"
|
||||
android:hint="@string/login_hint_phion"
|
||||
android:inputType="phone"
|
||||
android:maxLength="11"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/black"
|
||||
android:textColorHint="@color/color_FFCCCCCC"
|
||||
android:textSize="@dimen/sp_17" />
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_code"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginRight="20dp"
|
||||
android:background="@drawable/bg_r16_ffeff2f8">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_code"
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:src="@mipmap/icon_login_code" />
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_28"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginLeft="13dp"
|
||||
android:layout_marginRight="25dp"
|
||||
android:layout_toRightOf="@+id/iv_code"
|
||||
android:background="@android:color/transparent"
|
||||
android:hint="@string/login_hint_code"
|
||||
android:inputType="textPassword"
|
||||
android:maxLength="20"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/black"
|
||||
android:textColorHint="@color/color_FFCCCCCC"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_send_code"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="@dimen/dp_30"
|
||||
android:gravity="right"
|
||||
android:text="@string/login_send_code"
|
||||
android:textColor="#FF8ACC"
|
||||
android:textSize="@dimen/sp_16"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnSubmit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_42"
|
||||
android:layout_marginStart="@dimen/dp_38"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:layout_marginEnd="@dimen/dp_38"
|
||||
android:background="@drawable/cs"
|
||||
android:gravity="center"
|
||||
android:text="提交"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
|
||||
</layout>
|
||||
246
modulevocal/src/main/res/layout/activity_real_name.xml
Normal file
@@ -0,0 +1,246 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
|
||||
tools:context=".activity.RealNameActivity">
|
||||
|
||||
<data>
|
||||
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.qxcm.moduleutil.widget.CustomTopBar
|
||||
android:id="@+id/top_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/steps"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_68"
|
||||
android:layout_margin="@dimen/dp_16"
|
||||
android:background="@drawable/bg_r9_fffff"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- 第一步:验证手机号 -->
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 步骤编号 -->
|
||||
<TextView
|
||||
android:id="@+id/step_num_1"
|
||||
android:layout_width="@dimen/dp_23"
|
||||
android:layout_height="@dimen/dp_23"
|
||||
android:layout_marginTop="@dimen/dp_8"
|
||||
android:background="@mipmap/num_1"
|
||||
android:gravity="center" />
|
||||
|
||||
<!-- 步骤描述 -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="@dimen/dp_8"
|
||||
android:text="@string/fill_identity_info"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 分割线 -->
|
||||
<View
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="@dimen/dp_19"
|
||||
android:layout_weight="1"
|
||||
android:background="@mipmap/line9" />
|
||||
|
||||
<!-- 第二步:设置新密码 -->
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!-- 步骤编号 -->
|
||||
<TextView
|
||||
android:id="@+id/step_num_2"
|
||||
android:layout_width="@dimen/dp_23"
|
||||
android:layout_height="@dimen/dp_23"
|
||||
android:layout_marginTop="@dimen/dp_8"
|
||||
android:background="@mipmap/num_22"
|
||||
android:gravity="center" />
|
||||
|
||||
<!-- 步骤描述 -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="@dimen/dp_8"
|
||||
android:text="@string/face_recognition"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/l_1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_50"
|
||||
android:layout_marginStart="@dimen/dp_16"
|
||||
android:layout_marginEnd="@dimen/dp_16"
|
||||
android:text="@string/real_name_authentication_tips"
|
||||
android:textColor="@color/color_FF999999"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_marginLeft="@dimen/dp_16"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:layout_marginRight="@dimen/dp_16"
|
||||
android:background="@drawable/bg_r16_ffeff2f8"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_send_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="@dimen/dp_14"
|
||||
android:gravity="left|center"
|
||||
android:text="@string/real_name"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_16"
|
||||
tools:visibility="visible" />
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_28"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginLeft="13dp"
|
||||
android:layout_marginRight="25dp"
|
||||
android:layout_toRightOf="@+id/tv_send_name"
|
||||
android:background="@android:color/transparent"
|
||||
android:hint="@string/please_enter_real_name"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/black"
|
||||
android:textColorHint="@color/color_FF9b9b9b"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_code"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_marginLeft="@dimen/dp_16"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:layout_marginRight="@dimen/dp_16"
|
||||
android:background="@drawable/bg_r16_ffeff2f8"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_send_code"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginStart="@dimen/dp_14"
|
||||
android:gravity="left|center"
|
||||
android:text="@string/id_number"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_16"
|
||||
tools:visibility="visible" />
|
||||
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ed_password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_28"
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_marginLeft="13dp"
|
||||
android:layout_marginRight="25dp"
|
||||
android:layout_toRightOf="@+id/tv_send_code"
|
||||
android:background="@android:color/transparent"
|
||||
android:hint="@string/please_enter_id_number"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/black"
|
||||
android:textColorHint="@color/color_FF9b9b9b"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/l_2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_16"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_16"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginEnd="@dimen/dp_16"
|
||||
android:text="为了保证本人操作,请进行人脸验证"
|
||||
/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/real_img"
|
||||
android:layout_gravity="center"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_agree_terms"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_54"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:layout_marginEnd="@dimen/dp_54"
|
||||
android:lineSpacingExtra="@dimen/dp_5"
|
||||
android:text="您知悉并同意应用提供者 \n· 收集、使用您本人的身份信息和人脸图像 \n· 向合法数据持有者核实您的身份信息 \n· 本操作数据仅用于身份核实,安全可靠"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
</LinearLayout>
|
||||
<!-- 提交按钮 -->
|
||||
<Button
|
||||
android:id="@+id/btnSubmit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_42"
|
||||
android:layout_marginStart="@dimen/dp_38"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:layout_marginEnd="@dimen/dp_38"
|
||||
android:background="@drawable/cs"
|
||||
android:gravity="center"
|
||||
android:text="下一步"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
375
modulevocal/src/main/res/layout/activity_setting.xml
Normal file
@@ -0,0 +1,375 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.qxcm.moduleutil.widget.CustomTopBar
|
||||
android:id="@+id/top_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_notification"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/msg_notification" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_youth"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/minor_mode" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_hmd"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/blacklist" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_szmm"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/set_password" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_shb"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/bind_phone" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_gywm"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/about_us" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_bbh"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/version_number" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_zhyjaq"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/account_security" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_sjsq"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:layout_marginLeft="@dimen/dp_0"
|
||||
android:layout_marginRight="@dimen/dp_0"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/set_phone_permission" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_qhch"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:layout_marginTop="@dimen/dp_18"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:text="@string/clear_cache" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_cache"
|
||||
style="@style/My_Info_Item_Subtitle_Style"
|
||||
android:hint="0M" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_qhdz"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:layout_marginTop="@dimen/dp_18"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:text="@string/change_address" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/swit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right|center"
|
||||
android:gravity="right"
|
||||
tools:ignore="UseSwitchCompatOrMaterialXml" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_qhzh"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/change_account" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_smrz"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/real_name_authentication" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_zhxiao"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/account_deactivation" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@color/color_FFE5E5E5" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_tcdl"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:background="@drawable/bg_r15_white">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/logout" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_17"
|
||||
android:layout_marginTop="@dimen/dp_18"
|
||||
android:layout_marginRight="@dimen/dp_17"
|
||||
android:background="@drawable/bg_r15_white"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_yjfk"
|
||||
style="@style/My_Info_Item_LL_Style"
|
||||
android:layout_marginLeft="@dimen/dp_0"
|
||||
android:layout_marginRight="@dimen/dp_0">
|
||||
|
||||
<TextView
|
||||
style="@style/My_Info_Item_Title_Style"
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/feedback" />
|
||||
|
||||
<ImageView style="@style/My_Info_Item_Arrow_Style" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_logout"
|
||||
style="@style/Widget.AppCompat.Button.Borderless"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="53dp"
|
||||
android:layout_marginLeft="@dimen/dp_17"
|
||||
android:layout_marginTop="@dimen/dp_22"
|
||||
android:layout_marginRight="@dimen/dp_17"
|
||||
android:background="@drawable/bg_r15_white"
|
||||
android:text="退出登录"
|
||||
android:textColor="@color/color_text"
|
||||
android:textSize="@dimen/sp_16"
|
||||
android:visibility="gone"/>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
75
modulevocal/src/main/res/layout/activity_underage.xml
Normal file
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
|
||||
tools:context=".activity.UnderageActivity">
|
||||
<data>
|
||||
|
||||
</data>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.qxcm.moduleutil.widget.CustomTopBar
|
||||
android:id="@+id/top_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/me_mim"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="请输入监护密码"
|
||||
android:gravity="center"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:layout_margin="@dimen/dp_110"
|
||||
/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rel_code_show"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@+id/me_mim"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
>
|
||||
|
||||
<com.tuo.customview.VerificationCodeView
|
||||
android:id="@+id/verificationcodeview"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_63"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginStart="@dimen/dp_36"
|
||||
android:layout_marginEnd="@dimen/dp_36"
|
||||
app:icv_et_bg_focus="@mipmap/bg_verify_view_item_normal"
|
||||
app:icv_et_bg_normal="@mipmap/bg_verify_view_item_normal"
|
||||
app:icv_et_divider_drawable="@drawable/shape_divider_vcode"
|
||||
app:icv_et_number="4"
|
||||
app:icv_et_pwd="false"
|
||||
app:icv_et_pwd_radius="10dp"
|
||||
app:icv_et_text_color="@color/black"
|
||||
app:icv_et_text_size="18sp"
|
||||
app:icv_et_width="@dimen/dp_48"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="忘记密码?请联系客服"
|
||||
android:textColor="#0DFFB9"
|
||||
app:layout_constraintTop_toBottomOf="@+id/rel_code_show"
|
||||
android:gravity="center"
|
||||
android:layout_marginTop="@dimen/dp_21"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"/>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</layout>
|
||||
634
modulevocal/src/main/res/layout/fragment_vocal_range.xml
Normal file
@@ -0,0 +1,634 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:overScrollMode="never"
|
||||
android:paddingBottom="@dimen/dp_60">
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_48"
|
||||
android:layout_marginEnd="@dimen/dp_16"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_hb"
|
||||
android:layout_width="@dimen/dp_24"
|
||||
android:layout_height="@dimen/dp_24"
|
||||
android:layout_marginRight="@dimen/dp_11"
|
||||
android:src="@mipmap/shouc" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_kf"
|
||||
android:layout_width="@dimen/dp_24"
|
||||
android:layout_height="@dimen/dp_24"
|
||||
android:layout_marginRight="@dimen/dp_11"
|
||||
android:layout_toRightOf="@+id/iv_hb"
|
||||
android:src="@mipmap/custom" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_sz"
|
||||
android:layout_width="@dimen/dp_24"
|
||||
android:layout_height="@dimen/dp_24"
|
||||
android:layout_marginRight="@dimen/dp_11"
|
||||
android:layout_toRightOf="@+id/iv_kf"
|
||||
android:src="@mipmap/setting" />
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/me_linearlayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_246"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/me_linearlayout2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_68"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="@dimen/dp_88"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center|left"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<com.qxcm.moduleutil.utils.MeHeadView
|
||||
android:id="@+id/riv_user_head"
|
||||
android:layout_width="@dimen/dp_68"
|
||||
android:layout_height="@dimen/dp_68"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginLeft="@dimen/dp_5"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:riv_oval="true"
|
||||
/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintStart_toEndOf="@+id/riv_user_head"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_nick_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#333333"
|
||||
android:textSize="14sp"
|
||||
tools:text="用户22333333" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/beautiful_view_copy"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="7dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/beautiful_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/color_666666"
|
||||
android:textSize="13sp"
|
||||
tools:text="22222" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dp"
|
||||
android:background="@mipmap/copy"
|
||||
android:textColor="@color/color_666666"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
>
|
||||
|
||||
<TextView
|
||||
android:layout_width="@dimen/dp_38"
|
||||
android:layout_height="@dimen/dp_16"
|
||||
android:background="@mipmap/xinr" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="@dimen/dp_38"
|
||||
android:layout_height="@dimen/dp_16"
|
||||
android:layout_marginStart="@dimen/dp_5"
|
||||
android:background="@mipmap/dengj" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="@dimen/dp_38"
|
||||
android:layout_height="@dimen/dp_16"
|
||||
android:layout_marginStart="@dimen/dp_5"
|
||||
android:background="@mipmap/renz" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="@dimen/dp_60"
|
||||
android:layout_height="@dimen/dp_23"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
android:layout_marginEnd="@dimen/dp_16"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintEnd_toEndOf="parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/tv_home"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@mipmap/me_edit"
|
||||
android:scaleType="centerCrop"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/me_linearlayout3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_22"
|
||||
android:layout_marginTop="@dimen/dp_16"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/me_linearlayout2">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_follow"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_17"
|
||||
android:layout_marginTop="@dimen/dp_1"
|
||||
android:text="关注"
|
||||
android:textColor="@color/color_666666"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_follow"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:layout_marginStart="@dimen/dp_8"
|
||||
android:singleLine="true"
|
||||
android:text="0"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="@dimen/dp_1"
|
||||
android:layout_height="@dimen/dp_18"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@color/white"
|
||||
android:visibility="gone" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_fans"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_17"
|
||||
android:layout_marginTop="@dimen/dp_1"
|
||||
android:text="粉丝"
|
||||
android:textColor="@color/color_666666"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_fans"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_8"
|
||||
android:singleLine="true"
|
||||
android:text="0"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="@dimen/dp_1"
|
||||
android:layout_height="@dimen/dp_18"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@color/white"
|
||||
android:visibility="gone" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_friends"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="invisible">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_friends"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:text="0"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_20" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_1"
|
||||
android:text="好友"
|
||||
android:textColor="@color/color_666666"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="@dimen/dp_1"
|
||||
android:layout_height="@dimen/dp_18"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@color/white"
|
||||
android:visibility="gone" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_visit"
|
||||
android:layout_width="@dimen/dp_0"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="invisible">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_visit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:text="0"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_20" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_1"
|
||||
android:text="访客"
|
||||
android:textColor="@color/color_666666"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<!-- <androidx.cardview.widget.CardView-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_gravity="bottom"-->
|
||||
<!-- android:layout_marginLeft="@dimen/dp_12"-->
|
||||
<!-- android:layout_marginTop="-46dp"-->
|
||||
<!-- android:layout_marginRight="@dimen/dp_12"-->
|
||||
<!-- app:cardCornerRadius="10dp"-->
|
||||
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
||||
<!-- app:layout_constraintTop_toBottomOf="@+id/me_linearlayout3"-->
|
||||
<!-- tools:layout_editor_absoluteX="13dp">-->
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginTop="-50dp"
|
||||
android:layout_marginStart="@dimen/dp_16"
|
||||
android:layout_marginEnd="@dimen/dp_16">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/me_my_wallets"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_5"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_67"
|
||||
android:src="@mipmap/me_wallet_icon" />
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginTop="@dimen/dp_8"-->
|
||||
<!-- android:text="我的钱包" />-->
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/tv_my_jw"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_67"
|
||||
android:src="@mipmap/become" />
|
||||
|
||||
<!-- <TextView-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_marginTop="@dimen/dp_5"-->
|
||||
<!-- android:text="我的爵位" />-->
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
<!-- </androidx.cardview.widget.CardView>-->
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_margin="@dimen/dp_12"
|
||||
app:cardCornerRadius="10dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/me_linearlayout3"
|
||||
tools:layout_editor_absoluteX="13dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/dp_13">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv"
|
||||
android:layout_width="3dp"
|
||||
android:layout_height="15dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="#85D0FD"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_3"
|
||||
android:text="更多服务"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/tv_my_wallet"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:src="@mipmap/me_wallet" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_17"
|
||||
android:layout_marginTop="@dimen/dp_3"
|
||||
android:text="@string/wallet"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/me_my_dan"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:src="@mipmap/my_dan" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_17"
|
||||
android:layout_marginTop="@dimen/dp_3"
|
||||
android:text="@string/dan"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/me_my_guild"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:src="@mipmap/me_union_icon"
|
||||
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_17"
|
||||
android:layout_marginTop="@dimen/dp_3"
|
||||
android:text="@string/guild"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/me_dress_up"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:src="@mipmap/personality" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_17"
|
||||
android:layout_marginTop="@dimen/dp_3"
|
||||
android:text="@string/dressup"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/tv_my_shopping"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:src="@mipmap/me_show_store" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_17"
|
||||
android:layout_marginTop="@dimen/dp_3"
|
||||
android:text="@string/shopping"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/tv_my_bb"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:src="@mipmap/me_my_bag" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_17"
|
||||
android:layout_marginTop="@dimen/dp_3"
|
||||
android:text="@string/backpack"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/me_daily"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="@dimen/dp_44"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:src="@mipmap/me_test" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dp_17"
|
||||
android:layout_marginTop="@dimen/dp_3"
|
||||
android:text="@string/daily"
|
||||
android:textColor="@color/color_FF333333"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</layout>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
BIN
modulevocal/src/main/res/mipmap-hdpi/ic_launcher.webp
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
modulevocal/src/main/res/mipmap-hdpi/ic_launcher_round.webp
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
modulevocal/src/main/res/mipmap-mdpi/ic_launcher.webp
Normal file
|
After Width: | Height: | Size: 982 B |
BIN
modulevocal/src/main/res/mipmap-mdpi/ic_launcher_round.webp
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
modulevocal/src/main/res/mipmap-xhdpi/ic_launcher.webp
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
modulevocal/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
modulevocal/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
modulevocal/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
modulevocal/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
modulevocal/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
16
modulevocal/src/main/res/values-night/themes.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Theme.QxLive" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/purple_200</item>
|
||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||
<item name="colorOnPrimary">@color/black</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/teal_200</item>
|
||||
<item name="colorSecondaryVariant">@color/teal_200</item>
|
||||
<item name="colorOnSecondary">@color/black</item>
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
</style>
|
||||
</resources>
|
||||
10
modulevocal/src/main/res/values/colors.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="purple_200">#FFBB86FC</color>
|
||||
<color name="purple_500">#FF6200EE</color>
|
||||
<color name="purple_700">#FF3700B3</color>
|
||||
<color name="teal_200">#FF03DAC5</color>
|
||||
<color name="teal_700">#FF018786</color>
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
</resources>
|
||||
6
modulevocal/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<resources>
|
||||
<string name="app_name">modulevocal</string>
|
||||
<!-- TODO: Remove or change this placeholder text -->
|
||||
<string name="hello_blank_fragment">Hello blank fragment</string>
|
||||
<string name="title_activity_setting">SettingActivity</string>
|
||||
</resources>
|
||||
16
modulevocal/src/main/res/values/themes.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Theme.QxLive" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/purple_500</item>
|
||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||
<item name="colorOnPrimary">@color/white</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/teal_200</item>
|
||||
<item name="colorSecondaryVariant">@color/teal_700</item>
|
||||
<item name="colorOnSecondary">@color/black</item>
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
</style>
|
||||
</resources>
|
||||