第N+6次提交专属红包
@@ -47,8 +47,8 @@ android {
|
||||
applicationId = "com.hbl.lewan"
|
||||
minSdk = 24
|
||||
targetSdk = 33
|
||||
versionCode = 214
|
||||
versionName = "2.1.4"
|
||||
versionCode = 215
|
||||
versionName = "2.1.5"
|
||||
multiDexEnabled = true
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
manifestPlaceholders["IMAPPKEY"] = "23c9cbddd4b876908efdccd0a6f2638d" //正式
|
||||
@@ -58,8 +58,8 @@ android {
|
||||
manifestPlaceholders["JPUSH_APPKEY"] = "9041bc22de91e3d9af3cfd23"
|
||||
manifestPlaceholders["JPUSH_CHANNEL"] = "developer-default"
|
||||
ndk {
|
||||
// abiFilters += listOf("armeabi-v7a", "arm64-v8a")
|
||||
abiFilters += listOf("x86","x86_64","armeabi","armeabi-v7a","arm64-v8a")
|
||||
abiFilters += listOf("armeabi-v7a", "arm64-v8a")
|
||||
// abiFilters += listOf("x86","x86_64","armeabi","armeabi-v7a","arm64-v8a")
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -508,6 +508,13 @@
|
||||
android:screenOrientation="portrait"
|
||||
android:theme="@style/TransTheme"
|
||||
android:windowSoftInputMode="adjustResize" />
|
||||
|
||||
<activity
|
||||
android:name=".imkit.team.TeamMembersList2Activity"
|
||||
android:exported="true"
|
||||
android:finishOnTaskLaunch="true"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="adjustResize" />
|
||||
<activity
|
||||
android:name=".imkit.team.TeamManagerActivity"
|
||||
android:exported="true"
|
||||
|
||||
@@ -29,9 +29,12 @@ import com.netease.yunxin.kit.chatkit.ui.custom.TransferViewHolder;
|
||||
import com.netease.yunxin.kit.chatkit.ui.custom.UserAlbumsAttachment;
|
||||
import com.netease.yunxin.kit.chatkit.ui.custom.UserAlbumsViewHolder;
|
||||
import com.netease.yunxin.kit.chatkit.ui.view.message.MessageProperties;
|
||||
import com.netease.yunxin.kit.common.ui.utils.ToastX;
|
||||
import com.netease.yunxin.kit.contactkit.ui.ContactUIConfig;
|
||||
import com.netease.yunxin.kit.conversationkit.ui.ConversationKitClient;
|
||||
import com.netease.yunxin.kit.conversationkit.ui.ConversationUIConfig;
|
||||
import com.netease.yunxin.kit.conversationkit.ui.ItemClickListener;
|
||||
import com.netease.yunxin.kit.conversationkit.ui.model.ConversationBean;
|
||||
|
||||
public class CustomConfig {
|
||||
|
||||
@@ -279,34 +282,33 @@ public class CustomConfig {
|
||||
// conversationUIConfig.itemStickTopBackground = new ColorDrawable(Color.RED);
|
||||
// conversationUIConfig.avatarCornerRadius = 30f;
|
||||
|
||||
// conversationUIConfig.itemClickListener =
|
||||
// new ItemClickListener() {
|
||||
// @Override
|
||||
// public boolean onClick(Context context, ConversationBean data, int position) {
|
||||
//
|
||||
// ToastX.showShortToast("onClick");
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public boolean onAvatarClick(Context context, ConversationBean data, int position) {
|
||||
// ToastX.showShortToast("onAvatarClick");
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public boolean onLongClick(Context context, ConversationBean data, int position) {
|
||||
// ToastX.showShortToast("onLongClick");
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public boolean onAvatarLongClick(Context context, ConversationBean data, int
|
||||
// position) {
|
||||
// ToastX.showShortToast("onAvatarLongClick");
|
||||
// return false;
|
||||
// }
|
||||
// };
|
||||
// conversationUIConfig.itemClickListener =
|
||||
// new ItemClickListener() {
|
||||
// @Override
|
||||
// public boolean onClick(Context context, ConversationBean data, int position) {
|
||||
//
|
||||
// ToastX.showShortToast("onClick");
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public boolean onAvatarClick(Context context, ConversationBean data, int position) {
|
||||
// ToastX.showShortToast("onAvatarClick");
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public boolean onLongClick(Context context, ConversationBean data, int position) {
|
||||
// ToastX.showShortToast("onLongClick");
|
||||
// return false;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public boolean onAvatarLongClick(Context context, ConversationBean data, int position) {
|
||||
// ToastX.showShortToast("onAvatarLongClick");
|
||||
// return false;
|
||||
// }
|
||||
// };
|
||||
|
||||
// conversationUIConfig.conversationCustom = new ConversationCustom(){
|
||||
// @Override
|
||||
|
||||
@@ -40,7 +40,7 @@ public class IMUIKitConfig {
|
||||
// public static String ONLINE_PAYMENT_URL = "https://admin.bijr3t.com/#/appPay";
|
||||
|
||||
/**
|
||||
* 分享落地页行动码地址
|
||||
* 分享落地页二维码地址
|
||||
*/
|
||||
// public static String SHARE_INVCODE = "http://qtalk666.top/#/download?code=%s";
|
||||
public static String SHARE_INVCODE = "https://admin.bijr3t.com/#/downLoad?code=%s&userId=%s";
|
||||
@@ -51,17 +51,17 @@ public class IMUIKitConfig {
|
||||
public static String SHARE_INVCODE_START = "https://admin.bijr3t.com/#/downLoad";
|
||||
|
||||
/***
|
||||
* 分享用户ID 行动码
|
||||
* 分享用户ID 二维码
|
||||
*/
|
||||
// public static String SHARE_ADD_USER = "time_go_mm://add_user/%s";
|
||||
|
||||
/***
|
||||
* 分享用户ID 行动码
|
||||
* 分享用户ID 二维码
|
||||
*/
|
||||
public static String SHARE_ADD_USER = SHARE_INVCODE;
|
||||
|
||||
/**
|
||||
* 分享群ID 行动码
|
||||
* 分享群ID 二维码
|
||||
*/
|
||||
public static String SHARE_JOIN_GROUP = "time_go_mm://join_group/%s";
|
||||
|
||||
|
||||
@@ -754,7 +754,7 @@ public class UserInfoActivity extends BaseActivity {
|
||||
if (TextUtils.equals(userInfo.getAccount(), accId)) {
|
||||
if (userInfoData != null) {
|
||||
userInfoData.data = userInfo;
|
||||
LogUtils.i("获取到的用户信息1:" + GsonUtils.beanToJSONString(userInfoData));
|
||||
// LogUtils.i("获取到的用户信息1:" + GsonUtils.beanToJSONString(userInfoData));
|
||||
|
||||
// contactInfoView.setData(userInfoData);
|
||||
}
|
||||
|
||||
@@ -68,6 +68,7 @@ import com.hbl.lewan.model.LoginBean;
|
||||
|
||||
import androidx.activity.result.ActivityResultLauncher;
|
||||
import androidx.activity.result.contract.ActivityResultContracts;
|
||||
import androidx.activity.result.contract.ActivityResultContracts.PickVisualMedia.ImageOnly;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.RequiresApi;
|
||||
@@ -1645,7 +1646,7 @@ public class JsBridgeActivity extends BaseActivity {
|
||||
// LogUtils.i("回调数据:"+result1);
|
||||
QRCodeScheme.QRCodeData qrData = QRCodeScheme.parseCodeData(result1);
|
||||
// 2维码内容前缀(形如“time_go_mm://add_user/”)
|
||||
LogUtils.i("行动码是啥111:" + GsonUtils.beanToJSONString(qrData));
|
||||
LogUtils.i("二维码是啥111:" + GsonUtils.beanToJSONString(qrData));
|
||||
|
||||
//{"scheme":"time_go_mm://payment_bead/","userId":"10","value":"388a762b474f944b"}
|
||||
String scheme = qrData.getScheme();
|
||||
@@ -1680,7 +1681,7 @@ public class JsBridgeActivity extends BaseActivity {
|
||||
}
|
||||
|
||||
} else {
|
||||
// errCode("无效的行动码");
|
||||
// errCode("无效的二维码");
|
||||
errCode(getString(R.string.qrcode_scan_activity_not_surpport_qrcontent));
|
||||
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ public class FunAddFriendActivity extends BaseAddFriendActivity implements BaseA
|
||||
Api.getInstance().userSearch(maps)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new BaseObserver<Result<ListBeanResult<LoginBean>>>() {
|
||||
.subscribe(new BaseObserver<>() {
|
||||
@Override
|
||||
public void onSuccess(Result<ListBeanResult<LoginBean>> result) {
|
||||
LogUtils.i("result==" + result.code + "result.data==" + result.data.getList());
|
||||
|
||||
@@ -130,7 +130,7 @@ public abstract class BaseTeamQrSettingActivity extends BaseActivity implements
|
||||
public List<String> selectorlist = new ArrayList<>(); //邀請好友列表
|
||||
|
||||
|
||||
//群行动码
|
||||
//群二维码
|
||||
public ShareDateUtils shareDateUtils;
|
||||
public LoginBean loginBean;
|
||||
public String teamId;
|
||||
@@ -489,7 +489,7 @@ public abstract class BaseTeamQrSettingActivity extends BaseActivity implements
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
//******************************************************群行动码处理start*****************************************************************
|
||||
//******************************************************群二维码处理start*****************************************************************
|
||||
|
||||
private ImageView coloseIv;
|
||||
private LinearLayout qrcodeLy;
|
||||
@@ -919,7 +919,7 @@ public abstract class BaseTeamQrSettingActivity extends BaseActivity implements
|
||||
}
|
||||
}
|
||||
|
||||
//******************************************************群行动码处理end*****************************************************************
|
||||
//******************************************************群二维码处理end*****************************************************************
|
||||
public boolean onTouchEvent(MotionEvent event) {
|
||||
if (null != this.getCurrentFocus()) {
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,639 @@
|
||||
// Copyright (c) 2022 NetEase, Inc. All rights reserved.
|
||||
// Use of this source code is governed by a MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
package com.hbl.lewan.imkit.team;
|
||||
|
||||
import static com.netease.yunxin.kit.corekit.im.utils.RouterConstant.KEY_TEAM_ID;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.text.Editable;
|
||||
import android.text.TextUtils;
|
||||
import android.text.TextWatcher;
|
||||
import android.view.View;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
|
||||
import androidx.activity.result.ActivityResultLauncher;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.hbl.lewan.R;
|
||||
import com.hbl.lewan.databinding.ActivityTeamMembers1Binding;
|
||||
import com.hbl.lewan.dialog.ActionConfirmDialog;
|
||||
import com.hbl.lewan.imkit.team.adapter.TeamMembersAdapter2;
|
||||
import com.hbl.lewan.network.Api;
|
||||
import com.hbl.lewan.network.BaseObserver;
|
||||
import com.hbl.lewan.network.Result;
|
||||
import com.hbl.lewan.utils.GsonUtils;
|
||||
import com.netease.nimlib.sdk.NIMClient;
|
||||
import com.netease.nimlib.sdk.RequestCallback;
|
||||
import com.netease.nimlib.sdk.team.TeamService;
|
||||
import com.netease.nimlib.sdk.team.constant.TeamMemberType;
|
||||
import com.netease.nimlib.sdk.team.model.Team;
|
||||
import com.netease.nimlib.sdk.team.model.TeamMember;
|
||||
import com.netease.yunxin.kit.chatkit.model.UserInfoWithTeam;
|
||||
import com.netease.yunxin.kit.chatkit.repo.ContactRepo;
|
||||
import com.netease.yunxin.kit.chatkit.ui.model.SwitchGroupBean;
|
||||
import com.netease.yunxin.kit.chatkit.ui.model.TeamExtensionBean;
|
||||
import com.netease.yunxin.kit.common.ui.utils.ToastX;
|
||||
import com.netease.yunxin.kit.common.utils.NetworkUtils;
|
||||
import com.netease.yunxin.kit.corekit.im.IMKitClient;
|
||||
import com.netease.yunxin.kit.corekit.im.model.UserInfo;
|
||||
import com.netease.yunxin.kit.corekit.im.utils.RouterConstant;
|
||||
import com.netease.yunxin.kit.corekit.route.XKitRouter;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import io.reactivex.android.schedulers.AndroidSchedulers;
|
||||
import io.reactivex.schedulers.Schedulers;
|
||||
|
||||
/**
|
||||
* 群聊成员页面 (编辑群员,群主转让那) 这快逻辑有点乱
|
||||
*/
|
||||
public class TeamMembersList2Activity extends BaseTeamQrSettingActivity {
|
||||
|
||||
public static final String ISMANAGER = "isManager";
|
||||
public static final String LISTUSERINFOS = "listUserInfos";
|
||||
public static final String TEAMINFO = "teamInfo";
|
||||
public static final String TYPE = "type";
|
||||
public static final String QUITE = "quite";
|
||||
public static final String TEAMQR = "teamQr";
|
||||
public int type; //0查看群成员,1 群主转让
|
||||
public int quite; //0 转让退群 1 只转让
|
||||
public boolean isRefresh = false; //是否刷新设置页
|
||||
public boolean teamQr = true;
|
||||
public List<UserInfo> listSearch = new ArrayList<>();
|
||||
public int isAllowAdd = 1;
|
||||
List<SwitchGroupBean> switchGroupBeans = new ArrayList<>();
|
||||
|
||||
public static void launch(Context context, int isManager, boolean isShowTeamQR, String teamId, List<UserInfo> userInfos, Team team, @NonNull ActivityResultLauncher<Intent> launcher) {
|
||||
Intent intent = new Intent(context, TeamMembersList2Activity.class);
|
||||
intent.putExtra(ISMANAGER, isManager);
|
||||
intent.putExtra(TYPE, 0);
|
||||
intent.putExtra(TEAMQR, isShowTeamQR);
|
||||
intent.putExtra(KEY_TEAM_ID, teamId);
|
||||
intent.putExtra(LISTUSERINFOS, (Serializable) userInfos);
|
||||
intent.putExtra(TEAMINFO, (Serializable) team);
|
||||
launcher.launch(intent);
|
||||
}
|
||||
|
||||
public static void launch(Context context, int isQuit, String teamId, List<UserInfo> userInfos, @NonNull ActivityResultLauncher<Intent> launcher) {
|
||||
Intent intent = new Intent(context, TeamMembersList2Activity.class);
|
||||
intent.putExtra(KEY_TEAM_ID, teamId);
|
||||
intent.putExtra(TYPE, 1);
|
||||
intent.putExtra(QUITE, isQuit);
|
||||
intent.putExtra(LISTUSERINFOS, (Serializable) userInfos);
|
||||
launcher.launch(intent);
|
||||
}
|
||||
|
||||
|
||||
ActivityTeamMembers1Binding binding;
|
||||
private int isManager = 0; // 1 群主 2 管理员
|
||||
private Team teamInfo;
|
||||
private String teamOwnerId; //群主id;
|
||||
|
||||
private TeamMembersAdapter2 membersAdapter;
|
||||
private TeamExtensionBean extensionBean;
|
||||
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
// getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
|
||||
// getWindow().setNavigationBarColor(getResources().getColor(com.netease.yunxin.kit.chatkit.ui.R.color.color_white));
|
||||
isManager = getIntent().getIntExtra(ISMANAGER, 0);
|
||||
teamInfo = (Team) getIntent().getSerializableExtra(TEAMINFO);
|
||||
type = getIntent().getIntExtra(TYPE, 0);
|
||||
quite = getIntent().getIntExtra(QUITE, 0);
|
||||
List<UserInfo> list = (List<UserInfo>) getIntent().getSerializableExtra(LISTUSERINFOS);
|
||||
teamQr = getIntent().getBooleanExtra(TEAMQR, true);
|
||||
|
||||
if (teamInfo != null) {
|
||||
teamOwnerId = teamInfo.getCreator();
|
||||
if (!TextUtils.isEmpty(teamInfo.getExtension())) {
|
||||
extensionBean = GsonUtils.getObjFromJSON(teamInfo.getExtension(), TeamExtensionBean.class);
|
||||
if (extensionBean == null) {
|
||||
extensionBean = new TeamExtensionBean(Integer.parseInt(teamInfo.getExtension()), 0);
|
||||
}
|
||||
} else {
|
||||
extensionBean = new TeamExtensionBean(1, 0);
|
||||
}
|
||||
isAllowAdd = extensionBean.getAllowAddFriends();
|
||||
}
|
||||
if (list != null && list.size() > 0) {
|
||||
|
||||
listmemebers.clear();
|
||||
listmemebers.addAll(list);
|
||||
} else {
|
||||
if (NetworkUtils.isConnected()) {
|
||||
showLoading();
|
||||
//重新获取群成员
|
||||
teammodel.getUserInfoData().observe(this, listResultInfo -> {
|
||||
dismissLoading();
|
||||
if (listResultInfo.getSuccess()) {
|
||||
// getTeamActiveTime();
|
||||
List<UserInfoWithTeam> listmember = listResultInfo.getValue();
|
||||
listmemebers.clear();
|
||||
listmember = sortListMembers(listmember);
|
||||
for (UserInfoWithTeam userinfo : listmember) {
|
||||
// LogUtils.i("走了333333333355555555555:"+GsonUtils.beanToJSONString(userinfo));
|
||||
|
||||
UserInfo userInfos = userinfo.getUserInfo();
|
||||
userInfos.setSignature(userinfo.getTeamInfo().isMute() ? "1" : "");
|
||||
listmemebers.add(userInfos);
|
||||
}
|
||||
setData();
|
||||
|
||||
}
|
||||
});
|
||||
teammodel.requestTeamMembers(teamId);
|
||||
}
|
||||
|
||||
}
|
||||
initView();
|
||||
initData();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public View getContentView() {
|
||||
binding = ActivityTeamMembers1Binding.inflate(getLayoutInflater());
|
||||
return binding.getRoot();
|
||||
}
|
||||
|
||||
|
||||
Map<String, Long> memberMap;
|
||||
|
||||
public void getTeamActiveTime() {
|
||||
if (isManager != 0 && type == 0) {
|
||||
Api.getInstance().teamMemberActiveTime(teamId)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new BaseObserver<Result<Map<String, Long>>>() {
|
||||
@Override
|
||||
public void onSuccess(Result<Map<String, Long>> feedbackResp) {
|
||||
// LogUtils.d("dddd" + feedbackResp.data);
|
||||
// LogUtils.i("走了333333333366666666:");
|
||||
|
||||
memberMap = feedbackResp.data;
|
||||
listmemebers.remove(0);
|
||||
listmemebers = sortListByActivieTime(listmemebers);
|
||||
listmemebers.add(0, IMKitClient.getUserInfo());
|
||||
membersAdapter.setData(listmemebers, false, memberMap, teamId);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onError(int code, String msg) {
|
||||
ToastX.showShortToast(msg);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//排序成员
|
||||
public List<UserInfo> sortListByActivieTime(List<UserInfo> teamMemberlist) {
|
||||
List<UserInfo> resultlist = new ArrayList<>();
|
||||
Set<String> keys = memberMap.keySet();
|
||||
if (!keys.isEmpty()) {
|
||||
for (String id : keys) {
|
||||
for (UserInfo userInfo : teamMemberlist) {
|
||||
if (userInfo.getAccount().equals(id)) {
|
||||
resultlist.add(userInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return resultlist;
|
||||
}
|
||||
|
||||
|
||||
public void setData() {
|
||||
if (type == 0) {
|
||||
// listmemebers.add(0, IMKitClient.getUserInfo());
|
||||
membersAdapter.setData(listmemebers, false, memberMap, teamId);
|
||||
// binding.tvteammembers.setText(getString(com.netease.yunxin.kit.contactkit.ui.R.string.fun_creategroup_members, listmemebers.size() - 1));
|
||||
} else { //不能编辑 转让
|
||||
for (int i = 0; i < listmemebers.size(); i++) {
|
||||
if (listmemebers.get(i).getAccount().equals(IMKitClient.account())) {
|
||||
listmemebers.remove(i);
|
||||
}
|
||||
}
|
||||
|
||||
// binding.tvteammembers.setText(getString(com.netease.yunxin.kit.contactkit.ui.R.string.fun_creategroup_members, listmemebers.size()));
|
||||
membersAdapter.setEdit(false);
|
||||
membersAdapter.setData(listmemebers, false, memberMap, teamId);
|
||||
}
|
||||
binding.rvMembers.setAdapter(membersAdapter);
|
||||
}
|
||||
|
||||
public void initView() {
|
||||
initTitleView();
|
||||
|
||||
LinearLayoutManager layoutManager =
|
||||
new LinearLayoutManager(this, RecyclerView.VERTICAL, false);
|
||||
binding.rvMembers.setLayoutManager(layoutManager);
|
||||
membersAdapter = new TeamMembersAdapter2(this, type);
|
||||
setData();
|
||||
membersAdapter.setItemClickListener(new TeamMembersAdapter2.ItemClickListener() {
|
||||
@Override
|
||||
public void onItemClick(UserInfo item, int position) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAddClick(UserInfo item, int position) {
|
||||
startUserInfoActivity(item.getAccount(), teamId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSwithType(UserInfo userInfo, int position, boolean isGrab, int allowGrab, int allowSend) {
|
||||
groupSwitch(position, userInfo.getAccount(), allowSend, allowGrab);
|
||||
}
|
||||
|
||||
});
|
||||
binding.editSelectorFriends.setOnEditorActionListener((textView, actionId, keyEvent) ->
|
||||
{
|
||||
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
|
||||
String search = textView.getEditableText().toString();
|
||||
//搜索好友
|
||||
List<UserInfo> listSearchResult = searchName(search);
|
||||
listSearch.clear();
|
||||
listSearch.addAll(listSearchResult);
|
||||
if (listSearch.size() > 0) {
|
||||
membersAdapter.refreshData(listSearch, false);
|
||||
// binding.tvteammembers.setText(getString(com.netease.yunxin.kit.contactkit.ui.R.string.fun_creategroup_members, listSearch.size()));
|
||||
|
||||
}
|
||||
}
|
||||
return false;
|
||||
});
|
||||
binding.editSelectorFriends.addTextChangedListener(new TextWatcher() {
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterTextChanged(Editable editable) {
|
||||
if (TextUtils.isEmpty(editable.toString())) {
|
||||
binding.icCleanEdit.setVisibility(View.GONE);
|
||||
// membersAdapter.setEdit(false);
|
||||
// binding.title.setActionText(R.string.teammember_edit);
|
||||
// listmemebers.add(0, IMKitClient.getUserInfo());
|
||||
membersAdapter.refreshData(listmemebers, type == 0);
|
||||
// binding.tvteammembers.setText(getString(com.netease.yunxin.kit.contactkit.ui.R.string.fun_creategroup_members, listmemebers.size() - 1));
|
||||
} else {
|
||||
binding.icCleanEdit.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
});
|
||||
binding.icCleanEdit.setOnClickListener(view -> binding.editSelectorFriends.setText(""));
|
||||
}
|
||||
|
||||
public void startUserInfoActivity(String userid, String teamId) {
|
||||
|
||||
if (isManager == 1 || isManager == 2) {
|
||||
XKitRouter.withKey(RouterConstant.PATH_USER_INFO_PAGE)
|
||||
.withContext(TeamMembersList2Activity.this)
|
||||
.withParam(RouterConstant.KEY_ACCOUNT_ID_KEY, IMKitClient.account())
|
||||
.withParam("userId", userid)
|
||||
.withParam("teamId", teamId)
|
||||
.withParam("isGroup", true)
|
||||
.navigate();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
//如果群不允许群内添加好友 当前登录用户不是群主,以及userid 也不是群主 直接跳过
|
||||
if (isAllowAdd == 0 && isManager != 1 && !userid.equals(teamOwnerId)) {
|
||||
|
||||
NIMClient.getService(TeamService.class).queryTeamMember(teamId, userid).setCallback(new RequestCallback<TeamMember>() {
|
||||
@Override
|
||||
public void onSuccess(TeamMember members) {
|
||||
if (members != null) {
|
||||
if (members.getType() == TeamMemberType.Manager) {
|
||||
XKitRouter.withKey(RouterConstant.PATH_USER_INFO_PAGE)
|
||||
.withContext(TeamMembersList2Activity.this)
|
||||
.withParam(RouterConstant.KEY_ACCOUNT_ID_KEY, IMKitClient.account())
|
||||
.withParam("userId", userid)
|
||||
.withParam("teamId", teamId)
|
||||
.withParam("isGroup", true)
|
||||
.navigate();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFailed(int code) {
|
||||
// 撤销群管理员失败
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onException(Throwable exception) {
|
||||
// 错误
|
||||
}
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
XKitRouter.withKey(RouterConstant.PATH_USER_INFO_PAGE)
|
||||
.withContext(TeamMembersList2Activity.this)
|
||||
.withParam(RouterConstant.KEY_ACCOUNT_ID_KEY, IMKitClient.account())
|
||||
.withParam("userId", userid)
|
||||
.withParam("teamId", teamId)
|
||||
.withParam("isGroup", true)
|
||||
.navigate();
|
||||
}
|
||||
|
||||
public void initData() {
|
||||
teammodel.getRemoveMembersData().observe(
|
||||
this,
|
||||
voidResultInfo -> {
|
||||
if (voidResultInfo.getSuccess()) {
|
||||
//移除群成员成功 变量太多
|
||||
List<UserInfo> userInfos = new ArrayList<>();
|
||||
List<Integer> list = membersAdapter.getSelectedInt();
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
userInfos.add(membersAdapter.getData().get(list.get(i)));
|
||||
}
|
||||
for (int i = 0; i < userInfos.size(); i++) {
|
||||
UserInfo userInfo = userInfos.get(i);
|
||||
// int searchIndex = listSearch.indexOf(userInfo);
|
||||
// if (searchIndex >= 0) { //通过搜索列表删除的
|
||||
// listSearch.remove(searchIndex);
|
||||
// }
|
||||
int indexSelector = selectorlist.indexOf(userInfo.getAccount());
|
||||
int indexMembers = listmemebers.indexOf(userInfo);
|
||||
if (indexSelector >= 0) {
|
||||
selectorlist.remove(indexSelector); //成员有变化 ,邀请 选中的人数就有变化(都是好友)
|
||||
}
|
||||
if (indexMembers >= 0) {
|
||||
listmemebers.remove(indexMembers);
|
||||
}
|
||||
|
||||
}
|
||||
// LogUtils.d("删除结束 " + listmemebers.size());
|
||||
// binding.tvteammembers.setText(getString(com.netease.yunxin.kit.contactkit.ui.R.string.fun_creategroup_members, listmemebers.size() - 1));
|
||||
isRefresh = true;
|
||||
setTitleEdit(listmemebers, true, R.string.teammember_edit);
|
||||
binding.editSelectorFriends.setText("");
|
||||
|
||||
|
||||
//刪除的
|
||||
// if (deletePosition >= 0) {
|
||||
// if (listSearch.size() == deletePosition || listmemebers.size() == deletePosition) {
|
||||
// deletePosition = deletePosition - 1;
|
||||
// }
|
||||
//// if (listSearch.size() == 0 && listmemebers.size() == deletePosition) {
|
||||
//// deletePosition = deletePosition - 1;
|
||||
//// }
|
||||
// UserInfo userInfo;
|
||||
// if (listSearch.size() > 0) {
|
||||
// userInfo = listSearch.get(deletePosition);
|
||||
// listSearch.remove(deletePosition);
|
||||
// membersAdapter.removeData(deletePosition);
|
||||
// deletePosition = listmemebers.indexOf(userInfo);
|
||||
// } else {
|
||||
// membersAdapter.removeData(deletePosition);
|
||||
// }
|
||||
// binding.tvteammembers.setText(getString(com.netease.yunxin.kit.contactkit.ui.R.string.fun_creategroup_members, membersAdapter.getData().size()));
|
||||
// selectorlist.remove(listmemebers.get(deletePosition).getAccount());
|
||||
// listmemebers.remove(deletePosition);
|
||||
// isRefresh = true;
|
||||
// }
|
||||
}
|
||||
|
||||
});
|
||||
teammodel.getUserInfoData().observe(this, listResultInfo -> {
|
||||
if (listResultInfo.getSuccess()) {
|
||||
memberMap = null;
|
||||
// getTeamActiveTime();
|
||||
List<UserInfoWithTeam> list = listResultInfo.getValue();
|
||||
//邀请成功 获取用户信息
|
||||
selectorlist.clear();
|
||||
listmemebers.clear();
|
||||
listmemebers.add(IMKitClient.getUserInfo());
|
||||
for (UserInfoWithTeam userinfo : list) {
|
||||
// LogUtils.i("走了3333333333444444444:"+GsonUtils.beanToJSONString(userinfo));
|
||||
|
||||
selectorlist.add(userinfo.getUserInfo().getAccount());
|
||||
UserInfo userInfos = userinfo.getUserInfo();
|
||||
userInfos.setSignature(userinfo.getTeamInfo().isMute() ? "1" : "");
|
||||
listmemebers.add(userInfos);
|
||||
|
||||
// listmemebers.add(userinfo.getUserInfo());
|
||||
}
|
||||
membersAdapter.setData(listmemebers, false, memberMap, teamId);
|
||||
isRefresh = true;
|
||||
// binding.tvteammembers.setText(getString(com.netease.yunxin.kit.contactkit.ui.R.string.fun_creategroup_members, listmemebers.size() - 1));
|
||||
}
|
||||
});
|
||||
|
||||
if (listmemebers != null) {
|
||||
for (UserInfo userInfo : listmemebers) {
|
||||
selectorlist.add(userInfo.getAccount());
|
||||
}
|
||||
}
|
||||
|
||||
teammodel.getQuitTeamData().observe(this, voidResultInfo -> {
|
||||
if (voidResultInfo.getSuccess()) {
|
||||
//成功
|
||||
showTransferDialog(true, "");
|
||||
} else {
|
||||
showTransferDialog(false, voidResultInfo.getMsg().getMessage());
|
||||
}
|
||||
});
|
||||
|
||||
getTeamSwiches();
|
||||
}
|
||||
|
||||
private void getTeamSwiches() {
|
||||
com.netease.yunxin.kit.chatkit.ui.network.Api.getInstance().groupSwitches(teamId)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new com.netease.yunxin.kit.chatkit.ui.network.BaseObserver<>() {
|
||||
@Override
|
||||
public void onSuccess(com.netease.yunxin.kit.chatkit.ui.network.Result<List<SwitchGroupBean>> feedbackResp) {
|
||||
switchGroupBeans = feedbackResp.data;
|
||||
membersAdapter.notifyDataSetChanged();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(int code, String msg) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void getTeamSwiches(int index) {
|
||||
com.netease.yunxin.kit.chatkit.ui.network.Api.getInstance().groupSwitches(teamId)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new com.netease.yunxin.kit.chatkit.ui.network.BaseObserver<>() {
|
||||
@Override
|
||||
public void onSuccess(com.netease.yunxin.kit.chatkit.ui.network.Result<List<SwitchGroupBean>> feedbackResp) {
|
||||
switchGroupBeans = feedbackResp.data;
|
||||
membersAdapter.notifyItemChanged(index);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(int code, String msg) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
public boolean getSwitchValue(Long userId, boolean isGrad) {
|
||||
if (switchGroupBeans != null && switchGroupBeans.size() > 0) {
|
||||
boolean isIn = false;
|
||||
for (SwitchGroupBean s : switchGroupBeans) {
|
||||
if (userId.equals(s.getUserUid())) {
|
||||
isIn = true;
|
||||
if (isGrad) {
|
||||
return s.getAllowGrab() == 1;
|
||||
} else {
|
||||
return s.getAllowSend() == 1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
if (!isIn) {
|
||||
if (isGrad) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isGrad) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void groupSwitch(int index, String Uid, int allowSend, int allowGrab) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("uid", Uid);
|
||||
map.put("allowSend", allowSend);
|
||||
map.put("allowGrab", allowGrab);
|
||||
map.put("groupId", teamId);
|
||||
Api.getInstance().groupSwitch(map)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new BaseObserver<Result>() {
|
||||
@Override
|
||||
public void onSuccess(Result feedbackResp) {
|
||||
getTeamSwiches(index);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(int code, String msg) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
private boolean isRemove = false;
|
||||
|
||||
|
||||
private void initTitleView() {
|
||||
// binding.title.setTitle(com.netease.yunxin.kit.contactkit.ui.R.string.select);
|
||||
// binding.title.getBackImageView().setImageResource(com.netease.yunxin.kit.contactkit.ui.R.drawable.ic_dialog_close);
|
||||
binding.title.getBackImageView().setOnClickListener(v -> {
|
||||
finish();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
public void setTitleEdit(List<UserInfo> listmember, boolean isEdit, int actionText) {
|
||||
// binding.title.setActionText(actionText);
|
||||
membersAdapter.setEdit(!isEdit);
|
||||
membersAdapter.getSelectedInt().clear();
|
||||
membersAdapter.setData(listmember, false, memberMap, teamId);
|
||||
}
|
||||
|
||||
|
||||
public void showTransferDialog(boolean isSuccess, String value) {
|
||||
|
||||
ActionConfirmDialog actionConfirmDialog = new ActionConfirmDialog(this, isSuccess ? getString(R.string.transfer_success)
|
||||
: (TextUtils.isEmpty(value) ? getString(R.string.transfer_fail) : getString(R.string.transfer_failmsg, value)), false);
|
||||
|
||||
actionConfirmDialog.setOnToActionListener(new ActionConfirmDialog.OnToActionListener() {
|
||||
@Override
|
||||
public void toSumbit() {
|
||||
if (isSuccess) {
|
||||
//回调结果
|
||||
quite = 2;
|
||||
setActivityResult();
|
||||
} else {
|
||||
actionConfirmDialog.dismiss();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toCancel() {
|
||||
}
|
||||
});
|
||||
actionConfirmDialog.show();
|
||||
|
||||
}
|
||||
|
||||
public void setActivityResult() {
|
||||
Intent intent = new Intent();
|
||||
intent.putExtra(TYPE, type);
|
||||
intent.putExtra(QUITE, quite);
|
||||
setResult(RESULT_OK, intent);
|
||||
finish();
|
||||
}
|
||||
|
||||
public List<UserInfo> searchName(String key) {
|
||||
List<UserInfo> listSearch = new ArrayList<>();
|
||||
List<UserInfo> result = new ArrayList<>();
|
||||
result.addAll(listmemebers);
|
||||
if (result.size() >= 2 && (result.get(0).getAccount().equals(result.get(1).getAccount()))) { //因为邀请好友icon
|
||||
result.remove(result.get(0));
|
||||
}
|
||||
for (UserInfo userInfo : result) {
|
||||
|
||||
String name = getAlias(userInfo);
|
||||
if (name.contains(key)) {
|
||||
listSearch.add(userInfo);
|
||||
}
|
||||
}
|
||||
return listSearch;
|
||||
}
|
||||
|
||||
|
||||
public String getAlias(UserInfo userInfo) {
|
||||
String name = userInfo.getName();
|
||||
if (ContactRepo.isFriend(userInfo.getAccount())) {
|
||||
String alias = ContactRepo.getFriend(userInfo.getAccount()).getAlias();
|
||||
return TextUtils.isEmpty(alias) ? name : alias;
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -26,6 +26,7 @@ import com.hbl.lewan.contact.ReportActivity;
|
||||
import com.hbl.lewan.databinding.ActivityBaseChatsettingBinding;
|
||||
import com.hbl.lewan.dialog.ActionConfirmDialog;
|
||||
import com.hbl.lewan.model.TeamUpdateEvent;
|
||||
import com.hbl.lewan.redpack.SendRedPacketActivity;
|
||||
import com.hbl.lewan.utils.GsonUtils;
|
||||
import com.hbl.lewan.utils.LogUtils;
|
||||
import com.hbl.lewan.widget.CircleImageView;
|
||||
@@ -65,6 +66,8 @@ public class TeamSettingActivity extends BaseTeamQrSettingActivity {
|
||||
protected TeamMember teamMember;
|
||||
private boolean isOpenNotify = true;
|
||||
private ActivityResultLauncher launcher;
|
||||
private ActivityResultLauncher launcher1;
|
||||
|
||||
private boolean isTeamShow;
|
||||
|
||||
private boolean isUpdateTeam = false;
|
||||
@@ -101,6 +104,11 @@ public class TeamSettingActivity extends BaseTeamQrSettingActivity {
|
||||
}
|
||||
}
|
||||
});
|
||||
launcher1 = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> {
|
||||
if (result.getResultCode() == Activity.RESULT_OK) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void updateTeamData() {
|
||||
@@ -155,6 +163,17 @@ public class TeamSettingActivity extends BaseTeamQrSettingActivity {
|
||||
intent.putExtra("teamId",teamId);
|
||||
startActivity(intent);
|
||||
});
|
||||
binding.flhbkz.setOnClickListener(v -> {
|
||||
int manager = 0;
|
||||
if (teamMember.getType() == TeamMemberType.Owner) {
|
||||
manager = 1;
|
||||
}
|
||||
if (teamMember.getType() == TeamMemberType.Manager) {
|
||||
manager = 2;
|
||||
}
|
||||
|
||||
TeamMembersList2Activity.launch(TeamSettingActivity.this, manager, false, teamId, listmemebers, teamInfo, launcher1);
|
||||
});
|
||||
}
|
||||
|
||||
private void getChatList() {
|
||||
@@ -369,8 +388,11 @@ public class TeamSettingActivity extends BaseTeamQrSettingActivity {
|
||||
|
||||
if(teamMember.getType() == TeamMemberType.Owner||teamMember.getType() == TeamMemberType.Manager){
|
||||
binding.fljinyan.setVisibility(View.VISIBLE);
|
||||
binding.flhbkz.setVisibility(View.VISIBLE);
|
||||
}else {
|
||||
binding.fljinyan.setVisibility(View.GONE);
|
||||
binding.flhbkz.setVisibility(View.GONE);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,340 @@
|
||||
// Copyright (c) 2022 NetEase, Inc. All rights reserved.
|
||||
// Use of this source code is governed by a MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
package com.hbl.lewan.imkit.team.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.text.TextUtils;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.viewbinding.ViewBinding;
|
||||
|
||||
import com.hbl.lewan.R;
|
||||
import com.hbl.lewan.databinding.TeamMembersViewHolder2Binding;
|
||||
import com.hbl.lewan.imkit.team.TeamMembersList2Activity;
|
||||
import com.netease.nimlib.sdk.NIMClient;
|
||||
import com.netease.nimlib.sdk.team.TeamService;
|
||||
import com.netease.nimlib.sdk.team.constant.TeamMemberType;
|
||||
import com.netease.nimlib.sdk.team.model.TeamMember;
|
||||
import com.netease.yunxin.kit.chatkit.repo.ContactRepo;
|
||||
import com.netease.yunxin.kit.corekit.im.model.UserInfo;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
// 群组成员列表
|
||||
public class TeamMembersAdapter2 extends RecyclerView.Adapter<TeamMembersAdapter2.TeamMembersViewHolder> {
|
||||
|
||||
protected List<UserInfo> members;
|
||||
private Context mContext;
|
||||
private boolean isShowInvited = true;
|
||||
private boolean isEdit = false;
|
||||
private int mType; //
|
||||
private int selectpostion = -1;
|
||||
private Map<String, Long> mapTime;
|
||||
private List<Integer> selectedInt = new ArrayList<>(); //多选position
|
||||
private String teamId;
|
||||
TeamMembersList2Activity teamMembersList2Activity;
|
||||
|
||||
public TeamMembersAdapter2(Context context, int type) {
|
||||
members = new ArrayList<>();
|
||||
mContext = context;
|
||||
mType = type;
|
||||
teamMembersList2Activity = (TeamMembersList2Activity) context;
|
||||
}
|
||||
|
||||
protected TeamMembersAdapter2.ItemClickListener itemClickListener;
|
||||
|
||||
public void setItemClickListener(TeamMembersAdapter2.ItemClickListener itemClickListener) {
|
||||
this.itemClickListener = itemClickListener;
|
||||
}
|
||||
|
||||
public void setData(List<UserInfo> list, boolean isShow, Map<String, Long> mapActiveTime, String teamId) {
|
||||
members.clear();
|
||||
members.addAll(list);
|
||||
selectedInt.clear();
|
||||
isShowInvited = isShow;
|
||||
mapTime = mapActiveTime;
|
||||
this.teamId = teamId;
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public void setEdit(boolean edit) {
|
||||
isEdit = edit;
|
||||
}
|
||||
|
||||
public boolean isEdit() {
|
||||
return isEdit;
|
||||
}
|
||||
|
||||
|
||||
public int getSelectpostion() {
|
||||
return selectpostion;
|
||||
}
|
||||
|
||||
|
||||
public void refreshData(List<UserInfo> list, boolean isInvited) {
|
||||
isShowInvited = isInvited;
|
||||
selectpostion = -1;
|
||||
members.clear();
|
||||
members.addAll(list);
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public List<Integer> getSelectedInt() {
|
||||
return selectedInt;
|
||||
}
|
||||
|
||||
// public void addData(List<UserInfo> list) {
|
||||
// int initsize = members.size();
|
||||
// members.addAll(list);
|
||||
// notifyItemRangeChanged(initsize, list.size());
|
||||
// }
|
||||
|
||||
public void removeData(int position) {
|
||||
members.remove(position);
|
||||
notifyItemRemoved(position);
|
||||
}
|
||||
|
||||
public List<UserInfo> getData() {
|
||||
return members;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public TeamMembersViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||
return new TeamMembersViewHolder(TeamMembersViewHolder2Binding.inflate(LayoutInflater.from(parent.getContext()), parent, false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull TeamMembersViewHolder holder, int position) {
|
||||
UserInfo userInfo = members.get(position);
|
||||
holder.binding.unreadTv.setVisibility(View.GONE);
|
||||
if (position == 0 && isShowInvited) {
|
||||
holder.binding.avatarView.setData(com.netease.yunxin.kit.contactkit.ui.R.drawable.ic_creategroup_add, "");
|
||||
holder.binding.icDelete.setVisibility(View.GONE);
|
||||
holder.binding.tvName.setText(mContext.getResources().getString(R.string.invcode_friend_txt));
|
||||
holder.binding.tvNameActivetime.setVisibility(View.GONE);
|
||||
} else {
|
||||
TeamMember teamMember = NIMClient.getService(TeamService.class).queryTeamMemberBlock(teamId, userInfo.getAccount());
|
||||
if(teamMember!=null){
|
||||
if(teamMember.getType() == TeamMemberType.Manager){
|
||||
holder.binding.unreadTv.setVisibility(View.VISIBLE);
|
||||
holder.binding.unreadTv.setText(R.string.teamsetting_other_teammanager);
|
||||
holder.binding.unreadTv.setBackgroundResource(com.netease.yunxin.kit.conversationkit.ui.R.drawable.bg_conversation_red_dot1);
|
||||
}else if(teamMember.getType() == TeamMemberType.Owner){
|
||||
holder.binding.unreadTv.setVisibility(View.VISIBLE);
|
||||
holder.binding.unreadTv.setText(com.netease.yunxin.kit.teamkit.ui.R.string.team_owner);
|
||||
holder.binding.unreadTv.setBackgroundResource(com.netease.yunxin.kit.conversationkit.ui.R.drawable.bg_conversation_red_dot);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
if (isEdit) {
|
||||
if (teamMember != null && (teamMember.getType() == TeamMemberType.Manager || teamMember.getType() == TeamMemberType.Owner)) {
|
||||
holder.binding.icDelete.setVisibility(View.GONE);
|
||||
} else {
|
||||
holder.binding.icDelete.setVisibility(View.VISIBLE);
|
||||
}
|
||||
if (selectedInt.indexOf(position) >= 0) {
|
||||
holder.binding.icDelete.setBackgroundResource(R.mipmap.dialog_gou_t);
|
||||
} else {
|
||||
holder.binding.icDelete.setBackgroundResource(R.mipmap.dialog_gou_ff);
|
||||
}
|
||||
// holder.binding.icDelete.setVisibility(userInfo.getAccount().equals(IMKitClient.account()) ? View.GONE : View.VISIBLE);
|
||||
} else if (mType == 1) {
|
||||
|
||||
if (selectpostion >= 0 && position == selectpostion) {
|
||||
holder.binding.icDelete.setBackgroundResource(R.mipmap.dialog_gou_tt);
|
||||
} else {
|
||||
holder.binding.icDelete.setBackgroundResource(R.drawable.bg_d8d8d8_singleunselector);
|
||||
}
|
||||
holder.binding.icDelete.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
holder.binding.icDelete.setVisibility(View.GONE);
|
||||
}
|
||||
String avaterurl = userInfo.getAvatar();
|
||||
if (TextUtils.isEmpty(avaterurl)) {
|
||||
holder.binding.avatarView.setData(R.mipmap.default_head_img, userInfo.getName(), 0);
|
||||
} else {
|
||||
holder.binding.avatarView.setData(avaterurl, userInfo.getName());
|
||||
}
|
||||
String name = userInfo.getName();
|
||||
if (ContactRepo.isFriend(userInfo.getAccount())) {
|
||||
String alias = ContactRepo.getFriend(userInfo.getAccount()).getAlias();
|
||||
if (!TextUtils.isEmpty(alias)) {
|
||||
name = alias;
|
||||
}
|
||||
}
|
||||
holder.binding.tvName.setText(name);
|
||||
if (mapTime != null && mapTime.size() > 0) {
|
||||
holder.binding.tvNameActivetime.setVisibility(View.VISIBLE);
|
||||
holder.binding.tvNameActivetime.setTextColor(Color.parseColor("#FE6881"));
|
||||
holder.binding.tvNameActivetime.setBackgroundResource(R.drawable.cornor_stroke_fe6881_2dp);
|
||||
String time = parseTimeLong(holder.binding.tvNameActivetime, mapTime.get(userInfo.getAccount()));
|
||||
holder.binding.tvNameActivetime.setText(time);
|
||||
} else {
|
||||
holder.binding.tvNameActivetime.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
holder.binding.jinyanIv.setVisibility(View.GONE);
|
||||
if(!TextUtils.isEmpty(userInfo.getSignature())&&userInfo.getSignature().equals("1")){
|
||||
holder.binding.jinyanIv.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
holder.binding.avatarView.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (itemClickListener != null) {
|
||||
itemClickListener.onAddClick(userInfo, position);
|
||||
}
|
||||
}
|
||||
});
|
||||
holder.binding.shouhongbaoSwitch.setOnClickListener(v -> {
|
||||
if (itemClickListener != null) {
|
||||
itemClickListener.onSwithType(userInfo, position,true,
|
||||
holder.binding.shouhongbaoSwitch.isChecked()?1:0,holder.binding.fahongbaoSwitch.isChecked()?1:0);
|
||||
}
|
||||
});
|
||||
|
||||
holder.binding.fahongbaoSwitch.setOnClickListener(v -> {
|
||||
if (itemClickListener != null) {
|
||||
itemClickListener.onSwithType(userInfo, position,false,
|
||||
holder.binding.shouhongbaoSwitch.isChecked()?1:0,holder.binding.fahongbaoSwitch.isChecked()?1:0);
|
||||
}
|
||||
});
|
||||
|
||||
holder.binding.fahongbaoSwitch.setChecked(teamMembersList2Activity.getSwitchValue(Long.parseLong(userInfo.getAccount()),false));
|
||||
|
||||
holder.binding.shouhongbaoSwitch.setChecked(teamMembersList2Activity.getSwitchValue(Long.parseLong(userInfo.getAccount()),true));
|
||||
|
||||
holder.binding.getRoot().setOnClickListener(view -> {
|
||||
if (itemClickListener != null) {
|
||||
if (position == 0 && isShowInvited) {
|
||||
// itemClickListener.onAddClick(); //邀请好友
|
||||
} else {
|
||||
if (mType == 1) { //转让
|
||||
if (selectpostion == position) {
|
||||
selectpostion = -1;
|
||||
} else {
|
||||
selectpostion = position;
|
||||
}
|
||||
notifyDataSetChanged();
|
||||
} else {
|
||||
if (isEdit && holder.binding.icDelete.getVisibility() == View.VISIBLE) {
|
||||
//管理员删除用户选择
|
||||
int index = selectedInt.indexOf(position);
|
||||
if (index >= 0) {
|
||||
selectedInt.remove(index);
|
||||
} else {
|
||||
selectedInt.add(position);
|
||||
}
|
||||
notifyItemChanged(position);
|
||||
|
||||
} else {
|
||||
itemClickListener.onItemClick(userInfo, position);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
相差天数
|
||||
*/
|
||||
public static int differentDays(long timeseconds) {
|
||||
Date date1 = new Date(timeseconds);
|
||||
Date date2 = new Date(System.currentTimeMillis()); //当前日期
|
||||
Calendar cal1 = Calendar.getInstance();
|
||||
cal1.setTime(date1);
|
||||
|
||||
Calendar cal2 = Calendar.getInstance();
|
||||
cal2.setTime(date2);
|
||||
int day1 = cal1.get(Calendar.DAY_OF_YEAR);
|
||||
int day2 = cal2.get(Calendar.DAY_OF_YEAR);
|
||||
|
||||
int year1 = cal1.get(Calendar.YEAR);
|
||||
int year2 = cal2.get(Calendar.YEAR);
|
||||
if (year1 != year2) //不同年
|
||||
{
|
||||
int timeDistance = 0;
|
||||
for (int i = year1; i < year2; i++) {
|
||||
if (i % 4 == 0 && i % 100 != 0 || i % 400 == 0) //闰年
|
||||
{
|
||||
timeDistance += 366;
|
||||
} else //不是闰年
|
||||
{
|
||||
timeDistance += 365;
|
||||
}
|
||||
}
|
||||
|
||||
return timeDistance + (day2 - day1);
|
||||
} else //同年
|
||||
{
|
||||
return day2 - day1;
|
||||
}
|
||||
}
|
||||
|
||||
public String parseTimeLong(TextView textView, long timestra) {
|
||||
int days = differentDays(timestra);
|
||||
String time;
|
||||
if (days == 0) {
|
||||
time = textView.getResources().getString(R.string.today_txt);
|
||||
} else if (days == 1) {
|
||||
time = textView.getResources().getString(R.string.yesterday_txt);
|
||||
} else if (days <= 6) {
|
||||
time = String.format(textView.getResources().getString(R.string.jinjiri_txt), days + 1);
|
||||
} else if (days <= 29) {
|
||||
time = String.format(textView.getResources().getString(R.string.jinjiri_txt), days + 1);
|
||||
} else {
|
||||
textView.setTextColor(Color.parseColor("#cbcbcb"));
|
||||
textView.setBackgroundResource(R.drawable.cornor_stroke_cbcbcb_2dp);
|
||||
time = String.format(textView.getResources().getString(R.string.jitianqi_txt), days + 1);
|
||||
}
|
||||
return time;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
return members.size();
|
||||
}
|
||||
|
||||
|
||||
public interface ItemClickListener {
|
||||
void onItemClick(UserInfo item, int position);
|
||||
|
||||
void onAddClick(UserInfo item, int position);
|
||||
|
||||
void onSwithType(UserInfo userInfo,int position,boolean isGrab,int allowGrab,int allowSend);
|
||||
}
|
||||
|
||||
protected class TeamMembersViewHolder extends RecyclerView.ViewHolder {
|
||||
|
||||
TeamMembersViewHolder2Binding binding;
|
||||
|
||||
public TeamMembersViewHolder(@NonNull ViewBinding binding) {
|
||||
super(binding.getRoot());
|
||||
this.binding = (TeamMembersViewHolder2Binding) binding;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -910,7 +910,7 @@ public class RegisterActivity extends BaseActivity {
|
||||
String stsCredentialsBean;
|
||||
|
||||
private void toShangchuanAli(File file ) {
|
||||
showLoadingDialog();
|
||||
showLoadingDialog("正在上传头像");
|
||||
// Api.getInstance().stsCredentials()
|
||||
// .subscribeOn(Schedulers.io())
|
||||
// .observeOn(AndroidSchedulers.mainThread())
|
||||
|
||||
@@ -53,6 +53,7 @@ import androidx.fragment.app.Fragment;
|
||||
import androidx.lifecycle.ViewModelProvider;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.viewpager2.widget.ViewPager2;
|
||||
|
||||
import com.codersun.fingerprintcompat.AonFingerChangeCallback;
|
||||
import com.codersun.fingerprintcompat.FingerManager;
|
||||
@@ -403,6 +404,9 @@ public class MainActivity extends BaseActivity {
|
||||
WindowCompat.setDecorFitsSystemWindows(getWindow(), false);
|
||||
ViewGroup.LayoutParams layoutParams = activityMainBinding.bottomV.getLayoutParams();
|
||||
layoutParams.height = getNavigationBarHeight(this);
|
||||
if(Build.MANUFACTURER.equals("HUAWEI")){
|
||||
layoutParams.height = 0;
|
||||
}
|
||||
activityMainBinding.bottomV.setLayoutParams(layoutParams);
|
||||
|
||||
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);
|
||||
@@ -410,7 +414,7 @@ public class MainActivity extends BaseActivity {
|
||||
ChatDataUtils.set(this, ChatKitUIConstant.SERVICES_LOGIN, false);
|
||||
ChatKitUIConstant.isSendGiftRedPacket = DataUtils.getIsSendGiftRedPacket();
|
||||
initView();
|
||||
getServiceId();
|
||||
// getServiceId();
|
||||
|
||||
ChatObserverRepo.registerReceiveMessageObserve(receiveMessageObserver);
|
||||
// EventCenter.registerEventNotify(skinNotify);
|
||||
@@ -788,10 +792,34 @@ public class MainActivity extends BaseActivity {
|
||||
|
||||
fragmentAdapter = new FragmentAdapter(this);
|
||||
fragmentAdapter.setFragmentList(fragments);
|
||||
activityMainBinding.viewPager.setUserInputEnabled(false);
|
||||
// activityMainBinding.viewPager.setUserInputEnabled(false);
|
||||
activityMainBinding.viewPager.setAdapter(fragmentAdapter);
|
||||
activityMainBinding.viewPager.setCurrentItem(START_INDEX, false);
|
||||
activityMainBinding.viewPager.setOffscreenPageLimit(fragments.size());
|
||||
activityMainBinding.viewPager.registerOnPageChangeCallback(new ViewPager2.OnPageChangeCallback() {
|
||||
@Override
|
||||
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
|
||||
super.onPageScrolled(position, positionOffset, positionOffsetPixels);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPageSelected(int position) {
|
||||
super.onPageSelected(position);
|
||||
resetTabStyle();
|
||||
if(position == 0){
|
||||
activityMainBinding.contact.setTextColor(
|
||||
getResources().getColor(R.color.color_fe6881));
|
||||
activityMainBinding.contact.setCompoundDrawablesWithIntrinsicBounds(
|
||||
null, getResources().getDrawable(R.mipmap.chat_img_t), null, null);
|
||||
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);
|
||||
}else{
|
||||
activityMainBinding.mine.setTextColor(getResources().getColor(R.color.color_fe6881));
|
||||
activityMainBinding.mine.setCompoundDrawablesWithIntrinsicBounds(
|
||||
null, getResources().getDrawable(R.mipmap.wo_t), null, null);
|
||||
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);
|
||||
}
|
||||
}
|
||||
});
|
||||
mCurrentTab = activityMainBinding.contactBtnGroup;
|
||||
resetTabSkin(isCommonSkin);
|
||||
checkZhiWen();
|
||||
@@ -840,7 +868,7 @@ public class MainActivity extends BaseActivity {
|
||||
if (obj instanceof HmsScan) {
|
||||
if (!TextUtils.isEmpty(((HmsScan) obj).getOriginalValue())) {
|
||||
String result1 = ((HmsScan) obj).getOriginalValue();
|
||||
Log.v("LAILIAOLIAO", "行动码是啥:" + result1);
|
||||
Log.v("LAILIAOLIAO", "二维码是啥:" + result1);
|
||||
// 开始解析2维码内容并进入相应的处理逻辑
|
||||
processQRCodeScanResult(this, result1);
|
||||
}
|
||||
@@ -899,14 +927,14 @@ public class MainActivity extends BaseActivity {
|
||||
} else {
|
||||
QRCodeScheme.QRCodeData qrData = QRCodeScheme.parseCodeData(originalQrcodeStr);
|
||||
// 2维码内容前缀(形如“time_go_mm://add_user/”)
|
||||
LogUtils.i("行动码是啥111:" + GsonUtils.beanToJSONString(qrData));
|
||||
LogUtils.i("二维码是啥111:" + GsonUtils.beanToJSONString(qrData));
|
||||
|
||||
String scheme = qrData.getScheme();
|
||||
// 2维码内容(形如“400069”)
|
||||
String value = qrData.getValue();
|
||||
String uid = qrData.getUserId();
|
||||
if (!CommonUtils.isStringEmpty(scheme, true) && !CommonUtils.isStringEmpty(value, true)) {
|
||||
LogUtils.i("行动码是啥222:" + scheme);
|
||||
LogUtils.i("二维码是啥222:" + scheme);
|
||||
|
||||
switch (scheme) {
|
||||
case QRCodeScheme.QR_CODE_SCHEME_ADD_USER:
|
||||
@@ -1015,19 +1043,16 @@ public class MainActivity extends BaseActivity {
|
||||
|
||||
private void showGiftView(String machineId, String orderNos, String moneys) {
|
||||
this.orderNo = orderNos;
|
||||
LogUtils.i("进来了啊");
|
||||
if (bindBean != null) {
|
||||
if (!bindBean.getPhoneBind()) {
|
||||
showDialog();
|
||||
} else if (!bindBean.getPayPasswordSet()) {
|
||||
showDialogPay();
|
||||
} else {
|
||||
LogUtils.i("进来了啊11111");
|
||||
|
||||
if (DataUtils.get(MainActivity.this, "hasFinger", false)) {
|
||||
showPayCashFingerDialog(machineId, moneys, TYPE_PAYMENT_GIFT);
|
||||
} else {
|
||||
LogUtils.i("进来了啊22222222");
|
||||
|
||||
showPayCashDialog(machineId, moneys, TYPE_PAYMENT_GIFT);
|
||||
}
|
||||
@@ -1298,12 +1323,10 @@ public class MainActivity extends BaseActivity {
|
||||
joinTitleTv = (TextView) bottomView.findViewById(R.id.join_title_tv);
|
||||
groupHeadIv = (ContactAvatarView) bottomView.findViewById(R.id.group_head_iv);
|
||||
joinTv = (TextView) bottomView.findViewById(R.id.join_tv);
|
||||
LogUtils.i("1111111111111111122222222222:" + IMApplication.schemeTeamId);
|
||||
|
||||
Team team = NIMClient.getService(TeamService.class).queryTeamBlock(groupId);
|
||||
groupNameTv = (TextView) bottomView.findViewById(R.id.group_name_tv);
|
||||
if (team != null) {
|
||||
LogUtils.i("11111111111111111333333333333:" + IMApplication.schemeTeamId);
|
||||
|
||||
if (TextUtils.isEmpty(team.getIcon())) {
|
||||
groupHeadIv.setData(com.netease.yunxin.kit.contactkit.ui.R.mipmap.ic_group_defaulthead, "head");
|
||||
@@ -1312,11 +1335,9 @@ public class MainActivity extends BaseActivity {
|
||||
}
|
||||
groupNameTv.setText(team.getName());
|
||||
if (team.isMyTeam()) {
|
||||
LogUtils.i("加入群聊成功1111111111111111111");
|
||||
joinTitleTv.setText(R.string.jinru_group_txt);
|
||||
joinTv.setText(R.string.jinru_group_txt);
|
||||
} else {
|
||||
LogUtils.i("加入群聊成功22222222222222");
|
||||
|
||||
joinTitleTv.setText(R.string.join_group_txt);
|
||||
joinTv.setText(R.string.join_group_txt);
|
||||
@@ -1328,15 +1349,12 @@ public class MainActivity extends BaseActivity {
|
||||
.withParam(RouterConstant.CHAT_KRY, team)
|
||||
.withContext(MainActivity.this)
|
||||
.navigate();
|
||||
LogUtils.i("加入群聊成功33333333333333");
|
||||
|
||||
} else {
|
||||
NIMClient.getService(TeamService.class).applyJoinTeam(groupId, null).setCallback(new RequestCallback<Team>() {
|
||||
@Override
|
||||
public void onSuccess(Team team1) {
|
||||
LogUtils.i("加入群聊成功4444444444444444444");
|
||||
|
||||
LogUtils.i("加入群聊成功:" + GsonUtils.beanToJSONString(team1));
|
||||
bottomSheetDialog.dismiss();
|
||||
|
||||
XKitRouter.withKey(RouterConstant.PATH_FUN_CHAT_TEAM_PAGE)
|
||||
@@ -1381,18 +1399,14 @@ public class MainActivity extends BaseActivity {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
LogUtils.i("1111111111111111144444444444:" + IMApplication.schemeTeamId);
|
||||
|
||||
joinTitleTv.setText(R.string.join_group_txt);
|
||||
joinTv.setText(R.string.join_group_txt);
|
||||
getJoinInfo(groupId, false, bottomSheetDialog);
|
||||
LogUtils.i("加入群聊成功555555555555");
|
||||
|
||||
joinTv.setOnClickListener(v -> NIMClient.getService(TeamService.class).applyJoinTeam(groupId, null).setCallback(new RequestCallback<Team>() {
|
||||
@Override
|
||||
public void onSuccess(Team team1) {
|
||||
LogUtils.i("加入群聊成功:" + GsonUtils.beanToJSONString(true));
|
||||
LogUtils.i("加入群聊成功6666666666666666");
|
||||
bottomSheetDialog.dismiss();
|
||||
XKitRouter.withKey(RouterConstant.PATH_FUN_CHAT_TEAM_PAGE)
|
||||
.withParam(RouterConstant.CHAT_KRY, team1)
|
||||
@@ -1436,12 +1450,7 @@ public class MainActivity extends BaseActivity {
|
||||
}
|
||||
|
||||
|
||||
coloseIv.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
bottomSheetDialog.dismiss();
|
||||
}
|
||||
});
|
||||
coloseIv.setOnClickListener(v -> bottomSheetDialog.dismiss());
|
||||
|
||||
bottomSheetDialog.setContentView(bottomView);
|
||||
bottomSheetDialog.show();
|
||||
@@ -1459,11 +1468,9 @@ public class MainActivity extends BaseActivity {
|
||||
@Override
|
||||
public void onSuccess(Team result) {
|
||||
if (!b) {
|
||||
LogUtils.i("加入群聊成功7777777777777777");
|
||||
groupHeadIv.setData(result.getIcon(), result.getName());
|
||||
groupNameTv.setText(result.getName());
|
||||
} else {
|
||||
LogUtils.i("加入群聊成功88888888888888");
|
||||
dialog.dismiss();
|
||||
XKitRouter.withKey(RouterConstant.PATH_FUN_CHAT_TEAM_PAGE)
|
||||
.withParam(RouterConstant.CHAT_KRY, result)
|
||||
@@ -1488,7 +1495,6 @@ public class MainActivity extends BaseActivity {
|
||||
private void sendMachine(String scheme) {
|
||||
scheme = scheme.replace("https://admin.letschat2023.com/#/downLoad", "https://www.baidu.com");
|
||||
Uri uri = Uri.parse(scheme);
|
||||
LogUtils.i("数据是啥:" + scheme);
|
||||
String id = uri.getQueryParameter("deviceId"); //id 值 10943
|
||||
Intent intent = new Intent(MainActivity.this, AuthorizeActivity.class);
|
||||
intent.putExtra("deviceId", id);
|
||||
@@ -1511,12 +1517,10 @@ public class MainActivity extends BaseActivity {
|
||||
@Override
|
||||
public void onSuccess(Result<BindBean> feedbackResp) {
|
||||
bindBean = feedbackResp.data;
|
||||
LogUtils.i("获取到的数据:" + GsonUtils.beanToJSONString(bindBean));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(int code, String msg) {
|
||||
LogUtils.i("获取到的错误:" + code + "" + msg);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1524,7 +1528,6 @@ public class MainActivity extends BaseActivity {
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
ALog.d(Constant.PROJECT_TAG, "MainActivity:onDestroy");
|
||||
// EventCenter.unregisterEventNotify(skinNotify);
|
||||
ChatObserverRepo.unregisterReceiveMessageObserve(receiveMessageObserver);
|
||||
if (mEventSubscription != null) {
|
||||
@@ -2004,15 +2007,15 @@ public class MainActivity extends BaseActivity {
|
||||
|
||||
if (feedbackResp.data != null && feedbackResp.data.size() > 0) {
|
||||
for (ConfigBean configBean : feedbackResp.data) {
|
||||
// if (configBean.getId() == 1) {
|
||||
// DataUtils.set(MainActivity.this, "transfer_cash", configBean.getVal().equals("1"));
|
||||
// }
|
||||
if (configBean.getId() == 1) {
|
||||
DataUtils.set(MainActivity.this, "transfer_cash", configBean.getVal().equals("1"));
|
||||
}
|
||||
// if (configBean.getId() == 2) {
|
||||
// DataUtils.set(MainActivity.this, "transfer_jifen", configBean.getVal().equals("1"));
|
||||
// }
|
||||
if (configBean.getId() == 3) {
|
||||
DataUtils.set(MainActivity.this, "transfer_score", configBean.getVal().equals("1"));
|
||||
}
|
||||
// if (configBean.getId() == 3) {
|
||||
// DataUtils.set(MainActivity.this, "transfer_score", configBean.getVal().equals("1"));
|
||||
// }
|
||||
if (configBean.getId() == 4) {
|
||||
DataUtils.set(MainActivity.this, "redpkg_score", configBean.getVal().equals("1"));
|
||||
}
|
||||
|
||||
@@ -660,9 +660,9 @@ public class ChatConversationFragment extends BaseFragment implements ILoadListe
|
||||
conversationViewBottom.setViewHolderFactory(funViewHolderFactory);
|
||||
conversationViewShiJie.setViewHolderFactory(funViewHolderFactory);
|
||||
if (conversationType == 2) {
|
||||
if(ApiService.AREA_CODE.equals("+86")) {
|
||||
if (ApiService.AREA_CODE.equals("+86")) {
|
||||
viewBinding.layoutShijiechat.setVisibility(View.VISIBLE);
|
||||
}else{
|
||||
} else {
|
||||
viewBinding.layoutShijiechat.setVisibility(View.GONE);
|
||||
|
||||
}
|
||||
@@ -1008,9 +1008,9 @@ public class ChatConversationFragment extends BaseFragment implements ILoadListe
|
||||
viewBinding.layoutOneroot.setVisibility(View.GONE);
|
||||
viewBinding.layoutShijiechat.setVisibility(View.GONE);
|
||||
} else {
|
||||
if(ApiService.AREA_CODE.equals("+86")) {
|
||||
if (ApiService.AREA_CODE.equals("+86")) {
|
||||
viewBinding.layoutShijiechat.setVisibility(View.VISIBLE);
|
||||
}else{
|
||||
} else {
|
||||
viewBinding.layoutShijiechat.setVisibility(View.GONE);
|
||||
|
||||
}
|
||||
@@ -1125,11 +1125,32 @@ public class ChatConversationFragment extends BaseFragment implements ILoadListe
|
||||
View bottomView = LayoutInflater.from(getActivity()).inflate(R.layout.bottom_sheet_layout_conversation, null);
|
||||
bottomSheetDialog.setContentView(bottomView);
|
||||
bottomSheetDialog.show();
|
||||
|
||||
TextView zhiding_tv = (TextView) bottomView.findViewById(R.id.zhiding_tv);
|
||||
TextView coloseIv1 = (TextView) bottomView.findViewById(R.id.colose_iv);
|
||||
TextView hideTv = (TextView) bottomView.findViewById(R.id.hide_tv);
|
||||
TextView deleteTv = (TextView) bottomView.findViewById(R.id.delete_tv);
|
||||
|
||||
if (dataBean.infoData.isStickTop()) {
|
||||
zhiding_tv.setText(getString(com.netease.yunxin.kit.conversationkit.ui.R.string.cancel_stick_title));
|
||||
} else {
|
||||
zhiding_tv.setText(getString(com.netease.yunxin.kit.conversationkit.ui.R.string.stick_title));
|
||||
|
||||
}
|
||||
|
||||
zhiding_tv.setOnClickListener(v -> {
|
||||
if (dataBean.infoData.isStickTop()) {
|
||||
viewModel.removeStick((ConversationBean) data);
|
||||
// NIMClient.getService(MsgService.class).removeStickTopSession(dataBean.infoData.getContactId(), dataBean.infoData.getSessionType(),""); //删除会话 没删聊天记录
|
||||
|
||||
} else {
|
||||
viewModel.addStickTop((ConversationBean) data);
|
||||
// NIMClient.getService(MsgService.class).addStickTopSession(dataBean.infoData.getContactId(), dataBean.infoData.getSessionType(),""); //删除会话 没删聊天记录
|
||||
|
||||
}
|
||||
bottomSheetDialog.dismiss();
|
||||
|
||||
});
|
||||
|
||||
coloseIv1.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
|
||||
@@ -23,6 +23,7 @@ import com.hbl.lewan.IMUIKitConfig;
|
||||
import com.hbl.lewan.R;
|
||||
import com.hbl.lewan.databinding.FragmentChatBinding;
|
||||
import com.hbl.lewan.imkit.selector.FunContactSelectorActivity;
|
||||
import com.hbl.lewan.imkit.verify.FunVerifyListActivity;
|
||||
import com.hbl.lewan.main.FragmentAdapter;
|
||||
import com.hbl.lewan.main.MainActivity;
|
||||
import com.hbl.lewan.main.index.add.AddFriendsActivity;
|
||||
@@ -48,9 +49,11 @@ import com.netease.yunxin.kit.chatkit.repo.ContactRepo;
|
||||
import com.netease.yunxin.kit.chatkit.ui.fun.FunChatForwardSelectDialog;
|
||||
import com.netease.yunxin.kit.common.ui.fragments.BaseFragment;
|
||||
import com.netease.yunxin.kit.common.utils.NetworkUtils;
|
||||
import com.netease.yunxin.kit.contactkit.ui.fun.contact.FunContactFragment;
|
||||
import com.netease.yunxin.kit.contactkit.ui.fun.search.FunSearchActivity;
|
||||
import com.netease.yunxin.kit.conversationkit.ui.common.ConversationConstant;
|
||||
import com.netease.yunxin.kit.conversationkit.ui.model.ConversationBean;
|
||||
import com.netease.yunxin.kit.conversationkit.ui.normal.page.ConversationFragment;
|
||||
import com.netease.yunxin.kit.corekit.event.EventCenter;
|
||||
import com.netease.yunxin.kit.corekit.event.EventNotify;
|
||||
import com.netease.yunxin.kit.corekit.im.IMKitClient;
|
||||
@@ -71,7 +74,8 @@ import io.reactivex.schedulers.Schedulers;
|
||||
public class ChatTabFragment extends BaseFragment {
|
||||
|
||||
FragmentChatBinding viewBinding;
|
||||
ChatConversationFragment allConversationFragment;
|
||||
// ChatConversationFragment allConversationFragment;
|
||||
ConversationFragment contactFragment;
|
||||
ChatConversationFragment friendConversationFragment;
|
||||
ChatConversationFragment teamConversationFragment;
|
||||
// FollowListFragment followListFragment;
|
||||
@@ -243,7 +247,7 @@ public class ChatTabFragment extends BaseFragment {
|
||||
.subscribe(new BaseObserver<>() {
|
||||
@Override
|
||||
public void onSuccess(Result<NotifyCountBean> feedbackResp) {
|
||||
LogUtils.i("获取到的错误:" + feedbackResp + "" + feedbackResp.data);
|
||||
LogUtils.i("获取到:" + feedbackResp + "" + feedbackResp.data);
|
||||
int count = feedbackResp.data.getSystemMsgCount();
|
||||
int activityMsgCount = feedbackResp.data.getActivityMsgCount();
|
||||
int msgcount = DataUtils.get(getActivity(), "activity_message_count", 0);
|
||||
@@ -314,7 +318,8 @@ public class ChatTabFragment extends BaseFragment {
|
||||
|
||||
public void initView() {
|
||||
tabView = new View[]{viewBinding.layoutChatfmAll, viewBinding.layoutChatfmFriends, viewBinding.layoutChatfmGroup, viewBinding.layoutChatfmFollow};
|
||||
fragments.add(allConversationFragment = ChatConversationFragment.newInstance(0));
|
||||
// fragments.add(allConversationFragment = ChatConversationFragment.newInstance(0));
|
||||
fragments.add(contactFragment = new ConversationFragment());
|
||||
// fragments.add(friendConversationFragment = ChatConversationFragment.newInstance(1));
|
||||
// fragments.add(teamConversationFragment = ChatConversationFragment.newInstance(2));
|
||||
// followListFragment = new FollowListFragment();
|
||||
@@ -348,7 +353,9 @@ public class ChatTabFragment extends BaseFragment {
|
||||
viewBinding.ivIndexfmNotifytop.setOnClickListener(v -> {
|
||||
notifyCount = 0;
|
||||
setNotifyTotalCount();
|
||||
startActivity(new Intent(getActivity(), NotifyMessageActivity.class));
|
||||
// startActivity(new Intent(getActivity(), NotifyMessageActivity.class));
|
||||
startActivity(new Intent(getActivity(), FunVerifyListActivity.class));
|
||||
|
||||
});
|
||||
viewBinding.layoutChatfmCommonSearch.getRoot().setOnClickListener(view -> startActivity(new Intent(getActivity(), FunSearchActivity.class))
|
||||
);
|
||||
|
||||
@@ -465,7 +465,7 @@ public class HomeFragment extends BaseFragment {
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
getWallet();
|
||||
getNotifiesCount();
|
||||
// getNotifiesCount();
|
||||
if (verifyCount > 0) {
|
||||
getNotificationUnreadCount();
|
||||
}
|
||||
|
||||
@@ -457,7 +457,7 @@ public class AddFriendsActivity extends LllChatBaseActivity {
|
||||
String result1 = ((HmsScan) obj).getOriginalValue();
|
||||
// String result = CameraScan.parseScanResult(data);
|
||||
// Log.v(TAG, "2维码扫码结果:" + result);
|
||||
Log.v("LAILIAOLIAO", "行动码是啥:" + result1);
|
||||
Log.v("LAILIAOLIAO", "二维码是啥:" + result1);
|
||||
|
||||
// 开始解析2维码内容并进入相应的处理逻辑
|
||||
processQRCodeScanResult(this, result1);
|
||||
@@ -515,14 +515,14 @@ public class AddFriendsActivity extends LllChatBaseActivity {
|
||||
} else {
|
||||
QRCodeScheme.QRCodeData qrData = QRCodeScheme.parseCodeData(originalQrcodeStr);
|
||||
// 2维码内容前缀(形如“time_go_mm://add_user/”)
|
||||
LogUtils.i("行动码是啥111:" + GsonUtils.beanToJSONString(qrData));
|
||||
LogUtils.i("二维码是啥111:" + GsonUtils.beanToJSONString(qrData));
|
||||
|
||||
String scheme = qrData.getScheme();
|
||||
// 2维码内容(形如“400069”)
|
||||
String value = qrData.getValue();
|
||||
String uid = qrData.getUserId();
|
||||
if (!CommonUtils.isStringEmpty(scheme, true) && !CommonUtils.isStringEmpty(value, true)) {
|
||||
LogUtils.i("行动码是啥222:" + scheme);
|
||||
LogUtils.i("二维码是啥222:" + scheme);
|
||||
|
||||
switch (scheme) {
|
||||
case QRCodeScheme.QR_CODE_SCHEME_ADD_USER:
|
||||
|
||||
@@ -120,7 +120,7 @@ public class AccountAndSecurityActivity extends BaseActivity {
|
||||
//
|
||||
// wxAPI = WXAPIFactory.createWXAPI(this, IMUIKitConfig.WECHAT_APPID, true);
|
||||
// wxAPI.registerApp(IMUIKitConfig.WECHAT_APPID);
|
||||
// initListeners();
|
||||
initListeners();
|
||||
}
|
||||
|
||||
|
||||
@@ -183,6 +183,10 @@ public class AccountAndSecurityActivity extends BaseActivity {
|
||||
viewBinding.settingTitleBar.setOnBackIconClickListener(v -> onBackPressed());
|
||||
|
||||
viewBinding.zhmmBt.setOnClickListener(v -> {
|
||||
if(loginBean!=null&&(loginBean.getUserType()+"").equals("2")){
|
||||
ToastX.showShortToast("副号不支持修改密码");
|
||||
return;
|
||||
}
|
||||
if (bean != null) {
|
||||
if (bean.getPhoneBind() == false) {
|
||||
showDialog();
|
||||
@@ -200,6 +204,11 @@ public class AccountAndSecurityActivity extends BaseActivity {
|
||||
});
|
||||
|
||||
viewBinding.bindPhoneBt.setOnClickListener(v -> {
|
||||
if(loginBean!=null&&(loginBean.getUserType()+"").equals("2")){
|
||||
ToastX.showShortToast("副号不支持修改手机号");
|
||||
return;
|
||||
|
||||
}
|
||||
if (bean != null && bean.getPhoneBind() == false) {
|
||||
Intent intent = new Intent(AccountAndSecurityActivity.this, ChangeAccoutActionActivity.class);
|
||||
intent.putExtra("type", ChangeAccoutActionActivity.TYPE_BIND_PHONE);
|
||||
@@ -221,6 +230,10 @@ public class AccountAndSecurityActivity extends BaseActivity {
|
||||
// }
|
||||
});
|
||||
viewBinding.accoutBt.setOnClickListener(v -> {
|
||||
if(loginBean!=null&&(loginBean.getUserType()+"").equals("2")){
|
||||
ToastX.showShortToast("副号不支持修改乐玩账号");
|
||||
return;
|
||||
}
|
||||
startActivityForResult(new Intent(AccountAndSecurityActivity.this, SettingAccoutIdActivity.class), 888);
|
||||
});
|
||||
viewBinding.closeAccount.setOnClickListener(v -> {
|
||||
@@ -297,8 +310,10 @@ public class AccountAndSecurityActivity extends BaseActivity {
|
||||
bean = feedbackResp.data;
|
||||
//只有这是个参数允许切换
|
||||
// viewBinding.bindWechatTv.setText(feedbackResp.data.getWechatBind()?getString(R.string.yibangding_txt):getString(R.string.weibangding_txt));
|
||||
viewBinding.bindPhoneTv.setText(feedbackResp.data.getPhoneBind() ? (feedbackResp.data.getAreaCode() + feedbackResp.data.getPhone()) : getString(R.string.weibangding_txt));
|
||||
|
||||
if(!loginBean.getUserType().equals("2")) {
|
||||
viewBinding.bindPhoneTv.setText(feedbackResp.data.getPhoneBind() ? (feedbackResp.data.getAreaCode() + feedbackResp.data.getPhone()) : getString(R.string.weibangding_txt));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -329,22 +344,26 @@ public class AccountAndSecurityActivity extends BaseActivity {
|
||||
@Override
|
||||
public void onSuccess(Result<LoginBean> feedbackResp) {
|
||||
|
||||
LoginBean loginBean = DataUtils.getLocUserInfo();
|
||||
LoginBean loginBean1 = DataUtils.getLocUserInfo();
|
||||
|
||||
if (loginBean != null) {
|
||||
if (loginBean1 != null) {
|
||||
//只有这是个参数允许切换
|
||||
loginBean.setNwId(feedbackResp.data.getNwId());
|
||||
loginBean.setNwIdSetTime(feedbackResp.data.getNwIdSetTime());
|
||||
loginBean.getUser().setNwId(feedbackResp.data.getNwId());
|
||||
loginBean.getUser().setNwIdSetTime(feedbackResp.data.getNwIdSetTime());
|
||||
DataUtils.set(AccountAndSecurityActivity.this, "login_bean", GsonUtils.beanToJSONString(loginBean));
|
||||
|
||||
loginBean1.setNwId(feedbackResp.data.getNwId());
|
||||
loginBean1.setNwIdSetTime(feedbackResp.data.getNwIdSetTime());
|
||||
loginBean1.getUser().setNwId(feedbackResp.data.getNwId());
|
||||
loginBean1.getUser().setNwIdSetTime(feedbackResp.data.getNwIdSetTime());
|
||||
loginBean1.getUser().setUserType(feedbackResp.data.getUserType());
|
||||
DataUtils.set(AccountAndSecurityActivity.this, "login_bean", GsonUtils.beanToJSONString(loginBean1));
|
||||
loginBean = loginBean1;
|
||||
if (TextUtils.isEmpty(loginBean.getNwId())) {
|
||||
viewBinding.accoutTv.setText(getString(R.string.weishezhi_txt));
|
||||
} else {
|
||||
viewBinding.accoutTv.setText(loginBean.getNwId());
|
||||
}
|
||||
if(feedbackResp.data.getUserType().equals("2")){
|
||||
viewBinding.bindPhoneTv.setText(feedbackResp.data.getUser_mail());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import android.text.TextUtils;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
@@ -58,11 +59,14 @@ import com.hbl.lewan.utils.GsonUtils;
|
||||
import com.hbl.lewan.utils.LogUtils;
|
||||
import com.hbl.lewan.wallet.SetPayPasswordActivity;
|
||||
import com.hbl.lewan.wallet.TopUpActivity;
|
||||
import com.hbl.lewan.welcome.WelcomeActivity;
|
||||
import com.hbl.lewan.widget.CircleImageView;
|
||||
import com.netease.nimlib.sdk.auth.LoginInfo;
|
||||
import com.netease.yunxin.kit.alog.ALog;
|
||||
import com.netease.yunxin.kit.chatkit.ui.common.RxBus;
|
||||
import com.netease.yunxin.kit.chatkit.ui.data.ChatDatabase;
|
||||
import com.netease.yunxin.kit.common.ui.activities.BaseActivity;
|
||||
import com.netease.yunxin.kit.common.ui.dialog.LoadingDialog;
|
||||
import com.netease.yunxin.kit.common.ui.utils.ToastX;
|
||||
import com.netease.yunxin.kit.corekit.im.IMKitClient;
|
||||
import com.netease.yunxin.kit.corekit.im.login.LoginCallback;
|
||||
@@ -96,6 +100,7 @@ public class AccoutListActivity extends BaseActivity {
|
||||
iniAdapter();
|
||||
accounts();
|
||||
}
|
||||
Handler handler = new Handler();
|
||||
|
||||
|
||||
private void accounts() {
|
||||
@@ -107,6 +112,7 @@ public class AccoutListActivity extends BaseActivity {
|
||||
public void onSuccess(Result<List<AccountsBean>> feedbackResp) {
|
||||
if (feedbackResp.data != null && feedbackResp.data.size() > 0) {
|
||||
globalAmountList = (ArrayList<AccountsBean>) feedbackResp.data;
|
||||
// globalAmountList.add(new AccountsBean(-1));
|
||||
commonAdapter.setDates(globalAmountList);
|
||||
}
|
||||
}
|
||||
@@ -127,32 +133,46 @@ public class AccoutListActivity extends BaseActivity {
|
||||
@Override
|
||||
public void convert(ViewHolder holder, AccountsBean s, int index) {
|
||||
//{"userId":61330234,"phone":"jue00lie","nickname":"jue00lie","avatar":null}
|
||||
holder.setText(R.id.title_tv, s.getNickname());
|
||||
holder.setText(R.id.des_tv, "ID:" + s.getUserId());
|
||||
CircleImageView item_iv = holder.getView(R.id.item_iv);
|
||||
Glide.with(AccoutListActivity.this).load(s.getAvatar()).placeholder(R.mipmap.default_head_img).error(R.mipmap.default_head_img).into(item_iv);
|
||||
TextView dqsy_tv = holder.getView(R.id.dqsy_tv);
|
||||
if (IMKitClient.account().equals(s.getUserId() + "")) {
|
||||
dqsy_tv.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
dqsy_tv.setVisibility(View.GONE);
|
||||
}
|
||||
LinearLayout user_ly = holder.getView(R.id.user_ly);
|
||||
TextView add_accout_ly = holder.getView(R.id.add_accout_ly);
|
||||
TextView unreadTv = holder.getView(R.id.unreadTv);
|
||||
TextView dqsy_tv = holder.getView(R.id.dqsy_tv);
|
||||
CircleImageView item_iv = holder.getView(R.id.item_iv);
|
||||
|
||||
dqsy_tv.setVisibility(View.GONE);
|
||||
unreadTv.setVisibility(View.GONE);
|
||||
if (s.getUserId() == -1) {
|
||||
add_accout_ly.setVisibility(View.VISIBLE);
|
||||
user_ly.setVisibility(View.GONE);
|
||||
item_iv.setImageResource(R.mipmap.add_accouts_img);
|
||||
holder.getView(R.id.big_bg).setOnClickListener(v -> {
|
||||
|
||||
if (index == 0) {
|
||||
unreadTv.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
holder.getView(R.id.big_bg).setOnClickListener(v -> {
|
||||
ToastX.showShortToast("去添加账号");
|
||||
|
||||
});
|
||||
} else {
|
||||
add_accout_ly.setVisibility(View.GONE);
|
||||
user_ly.setVisibility(View.VISIBLE);
|
||||
holder.setText(R.id.title_tv, s.getNickname());
|
||||
holder.setText(R.id.des_tv, "ID:" + s.getNwId());
|
||||
Glide.with(AccoutListActivity.this).load(s.getAvatar()).placeholder(R.mipmap.default_head_img).error(R.mipmap.default_head_img).into(item_iv);
|
||||
if (IMKitClient.account().equals(s.getUserId() + "")) {
|
||||
return;
|
||||
dqsy_tv.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
changeUser(s);
|
||||
dqsy_tv.setVisibility(View.GONE);
|
||||
}
|
||||
if (index == 0) {
|
||||
unreadTv.setVisibility(View.VISIBLE);
|
||||
}
|
||||
holder.getView(R.id.big_bg).setOnClickListener(v -> {
|
||||
|
||||
});
|
||||
if (!IMKitClient.account().equals(s.getUserId() + "")) {
|
||||
changeUser(s);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
viewBinding.recycler.setAdapter(commonAdapter);
|
||||
@@ -161,8 +181,32 @@ public class AccoutListActivity extends BaseActivity {
|
||||
}
|
||||
|
||||
private void changeUser(AccountsBean s) {
|
||||
showLoadingDialog("正在切换账号");
|
||||
IMKitClient.logoutIM(
|
||||
new com.netease.yunxin.kit.corekit.im.login.LoginCallback<Void>() {
|
||||
@Override
|
||||
public void onError(int errorCode, @NonNull String errorMsg) {
|
||||
DataUtils.set(AccoutListActivity.this, IMUIKitConfig.LOGIN_ACCOUNT, "");
|
||||
DataUtils.set(AccoutListActivity.this, IMUIKitConfig.LOGIN_TOKEN, "");
|
||||
ChatDatabase.chatDatabase = null;
|
||||
handler.postDelayed(() -> changeUserNew(s),3000);
|
||||
}
|
||||
|
||||
Api.getInstance().changeAccount(s.getUserId()+"")
|
||||
@Override
|
||||
public void onSuccess(@Nullable Void data) {
|
||||
DataUtils.set(AccoutListActivity.this, IMUIKitConfig.LOGIN_ACCOUNT, "");
|
||||
DataUtils.set(AccoutListActivity.this, IMUIKitConfig.LOGIN_TOKEN, "");
|
||||
ChatDatabase.chatDatabase = null;
|
||||
handler.postDelayed(() -> changeUserNew(s),3000);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void changeUserNew(AccountsBean s) {
|
||||
Api.getInstance().changeAccount(s.getUserId() + "")
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new BaseObserver<>() {
|
||||
@@ -170,6 +214,7 @@ public class AccoutListActivity extends BaseActivity {
|
||||
public void onSuccess(Result<LoginBean> feedbackResp) {
|
||||
|
||||
if (TextUtils.isEmpty(feedbackResp.data.getUser().getChatToken())) {
|
||||
dimessLoadingDialog();
|
||||
ActionConfirmDialog actionConfirmDialog = new ActionConfirmDialog(AccoutListActivity.this, getString(R.string.zhbhf_jqsb_txt), false);
|
||||
actionConfirmDialog.show();
|
||||
return;
|
||||
@@ -184,11 +229,10 @@ public class AccoutListActivity extends BaseActivity {
|
||||
|
||||
@Override
|
||||
public void onError(int code, String msg) {
|
||||
dimessLoadingDialog();
|
||||
ToastX.showShortToast(msg);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void loginIM(String account, String token) {
|
||||
@@ -203,12 +247,14 @@ public class AccoutListActivity extends BaseActivity {
|
||||
new LoginCallback<>() {
|
||||
@Override
|
||||
public void onError(int errorCode, @NonNull String errorMsg) {
|
||||
dimessLoadingDialog();
|
||||
ToastX.showShortToast(
|
||||
String.format(getResources().getString(R.string.login_fail), errorCode));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSuccess(@Nullable LoginInfo data) {
|
||||
dimessLoadingDialog();
|
||||
DataUtils.set(AccoutListActivity.this, IMUIKitConfig.LOGIN_ACCOUNT, account);
|
||||
DataUtils.set(AccoutListActivity.this, IMUIKitConfig.LOGIN_TOKEN, token);
|
||||
DataUtils.set(AccoutListActivity.this, "last_login_time", System.currentTimeMillis());
|
||||
@@ -219,8 +265,31 @@ public class AccoutListActivity extends BaseActivity {
|
||||
}
|
||||
|
||||
|
||||
public LoadingDialog loadingDialog;
|
||||
|
||||
public void showLoadingDialog() {
|
||||
if (loadingDialog == null)
|
||||
loadingDialog = new LoadingDialog(this);
|
||||
loadingDialog.show();
|
||||
}
|
||||
|
||||
public void showLoadingDialog(String msg) {
|
||||
if (loadingDialog == null)
|
||||
loadingDialog = new LoadingDialog(this);
|
||||
loadingDialog.setLoadingText(msg);
|
||||
loadingDialog.show();
|
||||
}
|
||||
|
||||
|
||||
public void dimessLoadingDialog() {
|
||||
if (loadingDialog != null) {
|
||||
loadingDialog.dismiss();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void showMainActivityAndFinish() {
|
||||
ALog.d(Constant.PROJECT_TAG, AccoutListActivity.class.getName(), "showMainActivityAndFinish");
|
||||
ALog.d(Constant.PROJECT_TAG, AccoutListActivity.class.getName(), "showMainActivityAndFinish");
|
||||
RxBus.getInstance().post(117765); //5秒
|
||||
|
||||
Intent intent = new Intent();
|
||||
|
||||
@@ -82,6 +82,8 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.hbl.lewan.dialog.SelectLanguageDialog;
|
||||
import com.netease.yunxin.kit.corekit.im.utils.RouterConstant;
|
||||
import com.netease.yunxin.kit.corekit.route.XKitRouter;
|
||||
|
||||
import io.reactivex.android.schedulers.AndroidSchedulers;
|
||||
import io.reactivex.schedulers.Schedulers;
|
||||
@@ -255,8 +257,12 @@ public class MineFragment extends BaseFragment {
|
||||
checkAccounts();
|
||||
});
|
||||
|
||||
binding.friendTv.setOnClickListener(v -> startActivity(new Intent(getActivity(), FriendPermissionsActivity.class)));
|
||||
|
||||
binding.friendTv.setOnClickListener(v ->
|
||||
XKitRouter.withKey(RouterConstant.PATH_FUN_MY_BLACK_PAGE)
|
||||
.withContext(getActivity())
|
||||
.navigate()
|
||||
);
|
||||
// startActivity(new Intent(getActivity(), FriendPermissionsActivity.class))
|
||||
binding.toMerchantTv.setOnClickListener(v -> {
|
||||
Intent intent = new Intent(getActivity(), JsBridgeActivity.class);
|
||||
intent.putExtra("url", IMUIKitConfig.MERCHANT_URL);
|
||||
@@ -276,10 +282,10 @@ public class MineFragment extends BaseFragment {
|
||||
.subscribe(new BaseObserver<>() {
|
||||
@Override
|
||||
public void onSuccess(Result<List<AccountsBean>> feedbackResp) {
|
||||
if(feedbackResp.data!=null && feedbackResp.data.size()>1){
|
||||
startActivity(new Intent(getActivity(),AccoutListActivity.class));
|
||||
}else{
|
||||
ActionConfirmDialog actionConfirmDialog = new ActionConfirmDialog(getActivity(), "当前没有副号,是否需要购买", "取消","购买",true);
|
||||
if (feedbackResp.data != null && feedbackResp.data.size() > 1) {
|
||||
startActivity(new Intent(getActivity(), AccoutListActivity.class));
|
||||
} else {
|
||||
ActionConfirmDialog actionConfirmDialog = new ActionConfirmDialog(getActivity(), "当前没有副号,是否需要购买?", "取消", "购买", true);
|
||||
actionConfirmDialog.setOnToActionListener(new ActionConfirmDialog.OnToActionListener() {
|
||||
@Override
|
||||
public void toSumbit() {
|
||||
@@ -302,6 +308,8 @@ public class MineFragment extends BaseFragment {
|
||||
|
||||
}
|
||||
});
|
||||
// startActivity(new Intent(getActivity(),AccoutListActivity.class));
|
||||
|
||||
}
|
||||
|
||||
private void toWalletInfo(boolean b) {
|
||||
@@ -364,7 +372,7 @@ public class MineFragment extends BaseFragment {
|
||||
|
||||
private void getVersion() {
|
||||
try {
|
||||
Api.getInstance().version(com.hbl.lewan.network.ApiService.AREA_CODE.equals("+86")?7:0, DataUtils.getVersionCode(getActivity()), com.netease.yunxin.kit.chatkit.ui.network.ApiService.SUBSTATIONID1)
|
||||
Api.getInstance().version(com.hbl.lewan.network.ApiService.AREA_CODE.equals("+86") ? 7 : 0, DataUtils.getVersionCode(getActivity()), com.netease.yunxin.kit.chatkit.ui.network.ApiService.SUBSTATIONID1)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new BaseObserver<>() {
|
||||
@@ -377,7 +385,7 @@ public class MineFragment extends BaseFragment {
|
||||
VersionDialog actionDialog = new VersionDialog(getActivity(),
|
||||
String.format(getString(R.string.updateversion_txt), versionBean.getVersionName()),
|
||||
getDownloadText(versionBean), getString(R.string.xiacigengxin_txt),
|
||||
getString(R.string.login_form_have_latest_version_update_now),versionBean.getForceDownload()==0);
|
||||
getString(R.string.login_form_have_latest_version_update_now), versionBean.getForceDownload() == 0);
|
||||
actionDialog.setOnToActionListener(new VersionDialog.OnToActionListener() {
|
||||
@Override
|
||||
public void toSumbit() {
|
||||
@@ -419,7 +427,7 @@ public class MineFragment extends BaseFragment {
|
||||
}
|
||||
|
||||
private void checkUpdate(String url) {
|
||||
new AppUpdater(getActivity(), url).start();
|
||||
new AppUpdater(getActivity(), url).start();
|
||||
// Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||
// intent.setData(Uri.parse(url));
|
||||
// startActivity(intent);
|
||||
@@ -431,16 +439,16 @@ public class MineFragment extends BaseFragment {
|
||||
int loc = DataUtils.get(getActivity(), "locale", 1);
|
||||
switch (loc) {
|
||||
case 1:
|
||||
name = versionBean.getUpgradeHintZhCn().replace("\\n","\n");
|
||||
name = versionBean.getUpgradeHintZhCn().replace("\\n", "\n");
|
||||
break;
|
||||
case 2:
|
||||
name = versionBean.getUpgradeHintEnUs().replace("\\n","\n");
|
||||
name = versionBean.getUpgradeHintEnUs().replace("\\n", "\n");
|
||||
break;
|
||||
case 3:
|
||||
name = versionBean.getUpgradeHintJaJp().replace("\\n","\n");
|
||||
name = versionBean.getUpgradeHintJaJp().replace("\\n", "\n");
|
||||
break;
|
||||
default:
|
||||
name = versionBean.getUpgradeHintZhTw().replace("\\n","\n");
|
||||
name = versionBean.getUpgradeHintZhTw().replace("\\n", "\n");
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
@@ -107,6 +107,7 @@ public class SettingAccoutIdActivity extends BaseActivity {
|
||||
loginBean.setNwIdSetTime(feedbackResp.data.getNwIdSetTime());
|
||||
loginBean.getUser().setNwId(feedbackResp.data.getNwId());
|
||||
loginBean.getUser().setNwIdSetTime(feedbackResp.data.getNwIdSetTime());
|
||||
loginBean.getUser().setUserType(feedbackResp.data.getUserType());
|
||||
DataUtils.set(SettingAccoutIdActivity.this, "login_bean", GsonUtils.beanToJSONString(loginBean));
|
||||
|
||||
showChange(loginBean);
|
||||
|
||||
@@ -243,7 +243,7 @@ public class UserHeadEditActivity extends BaseActivity implements CommonCallback
|
||||
String stsCredentialsBean;
|
||||
|
||||
private void toShangchuanAli(File file, boolean isHead) {
|
||||
showLoadingDialog();
|
||||
showLoadingDialog(isHead?"正在上传头像":"正在上传背景图");
|
||||
Api.getInstance().stsCredentials1()
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
@@ -342,6 +342,7 @@ public class UserHeadEditActivity extends BaseActivity implements CommonCallback
|
||||
} else {
|
||||
// 上传失败
|
||||
LogUtils.i("结果是啥失败:" + GsonUtils.beanToJSONString(info));
|
||||
ToastX.showShortToast(info.error);
|
||||
}
|
||||
}, options);
|
||||
}
|
||||
|
||||
@@ -233,7 +233,7 @@ public class UserInfoActivity extends BaseActivity {
|
||||
String result1 = ((HmsScan) obj).getOriginalValue();
|
||||
// String result = CameraScan.parseScanResult(data);
|
||||
// Log.v(TAG, "2维码扫码结果:" + result);
|
||||
Log.v("LAILIAOLIAO", "行动码是啥:" + result1);
|
||||
Log.v("LAILIAOLIAO", "二维码是啥:" + result1);
|
||||
|
||||
// 开始解析2维码内容并进入相应的处理逻辑
|
||||
processQRCodeScanResult(this, result1);
|
||||
@@ -294,7 +294,7 @@ public class UserInfoActivity extends BaseActivity {
|
||||
} else {
|
||||
QRCodeScheme.QRCodeData qrData = QRCodeScheme.parseCodeData(originalQrcodeStr);
|
||||
// 2维码内容前缀(形如“time_go_mm://add_user/”)
|
||||
LogUtils.i("行动码是啥111:" + GsonUtils.beanToJSONString(qrData));
|
||||
LogUtils.i("二维码是啥111:" + GsonUtils.beanToJSONString(qrData));
|
||||
|
||||
String scheme = qrData.getScheme();
|
||||
// 2维码内容(形如“400069”)
|
||||
@@ -302,7 +302,7 @@ public class UserInfoActivity extends BaseActivity {
|
||||
String uid = qrData.getUserId();
|
||||
|
||||
if (!CommonUtils.isStringEmpty(scheme, true) && !CommonUtils.isStringEmpty(value, true)) {
|
||||
LogUtils.i("行动码是啥222:" + scheme);
|
||||
LogUtils.i("二维码是啥222:" + scheme);
|
||||
|
||||
switch (scheme) {
|
||||
case QRCodeScheme.QR_CODE_SCHEME_ADD_USER:
|
||||
@@ -751,6 +751,11 @@ public class UserInfoActivity extends BaseActivity {
|
||||
v -> EditUserInfoActivity.launch(getApplicationContext(), Constant.EDIT_EMAIL, launcher));
|
||||
binding.flPhone.setOnClickListener(
|
||||
v -> {
|
||||
if(locUser!=null&&(locUser.getUserType()+"").equals("2")){
|
||||
ToastX.showShortToast("副号不支持修改手机号");
|
||||
return;
|
||||
}
|
||||
|
||||
if (bean != null && bean.getPhoneBind() == false) {
|
||||
Intent intent = new Intent(UserInfoActivity.this, ChangeAccoutActionActivity.class);
|
||||
intent.putExtra("type", ChangeAccoutActionActivity.TYPE_BIND_PHONE);
|
||||
@@ -895,7 +900,8 @@ public class UserInfoActivity extends BaseActivity {
|
||||
public void onSuccess(Result<BindBean> feedbackResp) {
|
||||
bean = feedbackResp.data;
|
||||
//只有这是个参数允许切换
|
||||
binding.tvPhone.setText(bean.getAreaCode() + "" + bean.getPhone());
|
||||
if(!loginBean.getUserType().equals("2"))
|
||||
binding.tvPhone.setText(bean.getAreaCode()+""+bean.getPhone());
|
||||
|
||||
}
|
||||
|
||||
@@ -980,6 +986,9 @@ public class UserInfoActivity extends BaseActivity {
|
||||
@Override
|
||||
public void onSuccess(Result<LoginBean> feedbackResp) {
|
||||
locUser = feedbackResp.data;
|
||||
if(feedbackResp.data.getUserType().equals("2")) {
|
||||
binding.tvPhone.setText(locUser.getUser_mail());
|
||||
}
|
||||
changeIndex(feedbackResp.data);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,22 @@ public class AccountsBean {
|
||||
private String phone;
|
||||
private String nickname;
|
||||
private String avatar;
|
||||
private String nwId;
|
||||
|
||||
public AccountsBean() {
|
||||
}
|
||||
|
||||
public AccountsBean(int userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getNwId() {
|
||||
return nwId;
|
||||
}
|
||||
|
||||
public void setNwId(String nwId) {
|
||||
this.nwId = nwId;
|
||||
}
|
||||
|
||||
public int getUserId() {
|
||||
return userId;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.hbl.lewan.network;
|
||||
|
||||
|
||||
import com.blankj.utilcode.util.LogUtils;
|
||||
import com.hbl.lewan.BuildConfig;
|
||||
import com.hbl.lewan.model.AccountsBean;
|
||||
import com.hbl.lewan.model.ActivityMsgBean;
|
||||
@@ -71,13 +70,11 @@ import com.netease.yunxin.kit.chatkit.ui.model.RedpacketBean;
|
||||
import com.netease.yunxin.kit.chatkit.ui.model.RedpacketGroupBean;
|
||||
import com.netease.yunxin.kit.chatkit.ui.model.TransferBean;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import io.reactivex.Observable;
|
||||
import okhttp3.MultipartBody;
|
||||
import okhttp3.RequestBody;
|
||||
import retrofit2.http.Body;
|
||||
import retrofit2.http.DELETE;
|
||||
import retrofit2.http.Field;
|
||||
@@ -1211,6 +1208,13 @@ public interface ApiService {
|
||||
Observable<Result<ListBeanResult<TiXianLogBean>>> withdraw(@Query("page") int page, @Query("size") int size);
|
||||
|
||||
|
||||
|
||||
@POST("/group/switch")
|
||||
Observable<Result> groupSwitch(@Body Map<String, Object> requestBody);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ import com.hbl.lewan.utils.GsonUtils;
|
||||
import com.hbl.lewan.utils.ImageCacheLoader;
|
||||
import com.hbl.lewan.utils.LogUtils;
|
||||
import com.hbl.lewan.wallet.WalletInfoActivity;
|
||||
import com.hbl.lewan.wallet.WalletInfoNewActivity;
|
||||
import com.netease.nimlib.sdk.NIMClient;
|
||||
import com.netease.nimlib.sdk.uinfo.UserService;
|
||||
import com.netease.nimlib.sdk.uinfo.model.NimUserInfo;
|
||||
@@ -331,9 +332,9 @@ public class ReceiveRedPacketActivity extends BaseActivity implements View.OnCli
|
||||
viewBinding.toWalletTv.setText(R.string.ddfglq_txt);
|
||||
// titleTipsTvuser.setText(String.format("1个红包共%s%.2f",getString(R.string.danwei_txt), redpacketBean.getAmount() / 100f));
|
||||
if (redpacketBean.getCoinType() == 0) {
|
||||
viewBinding.titleTipsTvuser.setText(getString(R.string.red_envelope_amount_txt) + AppUtils.getQian(redpacketGroupBean.getAmount()) + getTypeName() + ",等待对方领取");
|
||||
viewBinding.titleTipsTvuser.setText(getString(R.string.red_envelope_amount_txt) + AppUtils.getQian(redpacketBean.getAmount()) + getTypeName() + ",等待对方领取");
|
||||
} else {
|
||||
viewBinding.titleTipsTvuser.setText(getString(R.string.red_envelope_amount_txt) +AppUtils.getQian(redpacketGroupBean.getAmount()) + getTypeName() + ",等待对方领取");
|
||||
viewBinding.titleTipsTvuser.setText(getString(R.string.red_envelope_amount_txt) +AppUtils.getQian(redpacketBean.getAmount()) + getTypeName() + ",等待对方领取");
|
||||
}
|
||||
|
||||
} else if (redpacketBean.getStatus() == 1) {
|
||||
@@ -348,7 +349,7 @@ public class ReceiveRedPacketActivity extends BaseActivity implements View.OnCli
|
||||
viewBinding.toWalletTv.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent(ReceiveRedPacketActivity.this, WalletInfoActivity.class);
|
||||
Intent intent = new Intent(ReceiveRedPacketActivity.this, WalletInfoNewActivity.class);
|
||||
intent.putExtra("isG", redpacketBean.getCoinType().equals(0));
|
||||
startActivity(intent);
|
||||
|
||||
@@ -359,7 +360,7 @@ public class ReceiveRedPacketActivity extends BaseActivity implements View.OnCli
|
||||
}
|
||||
|
||||
viewBinding.endLy.setVisibility(View.GONE);
|
||||
viewBinding.priceTv.setText(AppUtils.getQian(redpacketGroupBean.getAmount()) + getTypeName());
|
||||
viewBinding.priceTv.setText(AppUtils.getQian(redpacketBean.getAmount()) + getTypeName());
|
||||
viewBinding.timeTv.setText(redpacketBean.getReceiveTime() + "");
|
||||
|
||||
if ((redpacketBean.getReceiverUid() + "").equals(IMKitClient.account())) {
|
||||
|
||||
@@ -319,12 +319,13 @@ public class SendGiftRedPacketActivity extends BaseActivity {
|
||||
}
|
||||
|
||||
} else {
|
||||
if (Float.parseFloat(viewBinding.numberHintEt.getText().toString().trim()) > IMUIKitConfig.SINGLE_MAX_MONEY) {
|
||||
// ToastUtils.showShort(String.format(getString(R.string.max_red_packet_tips_txt),getString(R.string.danwei_txt),Const.SINGLE_MAX_MONEY));
|
||||
ToastX.showShortToast(getString(R.string.dghbjebndy_txt) + " " + IMUIKitConfig.SINGLE_MAX_MONEY);
|
||||
|
||||
return;
|
||||
}
|
||||
// if (Float.parseFloat(viewBinding.numberHintEt.getText().toString().trim()) > IMUIKitConfig.SINGLE_MAX_MONEY) {
|
||||
//// ToastUtils.showShort(String.format(getString(R.string.max_red_packet_tips_txt),getString(R.string.danwei_txt),Const.SINGLE_MAX_MONEY));
|
||||
// ToastX.showShortToast(getString(R.string.dghbjebndy_txt) + " " + IMUIKitConfig.SINGLE_MAX_MONEY);
|
||||
//
|
||||
// return;
|
||||
// }
|
||||
}
|
||||
if (walletBean != null) {
|
||||
if (Float.parseFloat(viewBinding.numberTv.getText().toString().trim()) > (walletBean.getGiftCoin() / 100f)) {
|
||||
|
||||
@@ -172,7 +172,17 @@ public class SendRedPacketActivity extends BaseActivity {
|
||||
// this.setTitle(getString(R.string.fshb_txt));
|
||||
if (isGroup) {
|
||||
// viewBinding.jintLeftTv.setText(R.string.zjine_txt);
|
||||
viewBinding.tipsTv.setVisibility(View.VISIBLE);
|
||||
|
||||
if(getIntent().getBooleanExtra("is_zhuanshu",false)){
|
||||
isPinShouQi = false;
|
||||
userInfo = (UserInfo) getIntent().getSerializableExtra("user_Bean");
|
||||
viewBinding.tipsTv.setVisibility(View.GONE);
|
||||
viewBinding.zhuanshuNextIv.setVisibility(View.GONE);
|
||||
viewBinding.zhuanshuLy.setEnabled(false);
|
||||
}else{
|
||||
viewBinding.tipsTv.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
|
||||
changeType();
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ public class TransferAccountsActivity extends BaseActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
getWindow().setStatusBarColor(getResources().getColor(R.color.color_fffafa));
|
||||
getWindow().setStatusBarColor(getResources().getColor(R.color.white));
|
||||
getWindow().setNavigationBarColor(getResources().getColor(R.color.color_fffafa));
|
||||
super.onCreate(savedInstanceState);
|
||||
viewBinding = ActivityTransferAccountsBinding.inflate(getLayoutInflater());
|
||||
|
||||
@@ -61,7 +61,7 @@ public class TransferInfoActivity extends BaseActivity
|
||||
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
getWindow().setStatusBarColor(getResources().getColor(R.color.color_fcfcfc));
|
||||
getWindow().setStatusBarColor(getResources().getColor(R.color.white));
|
||||
getWindow().setNavigationBarColor(getResources().getColor(R.color.color_white));
|
||||
super.onCreate(savedInstanceState);
|
||||
viewBinding = ActivityTransferInfoBinding.inflate(getLayoutInflater());
|
||||
|
||||
@@ -66,7 +66,7 @@ public class QRCodeScheme {
|
||||
* 构造指定群聊的加群2维码的字符串。
|
||||
*
|
||||
* @param gid 群id
|
||||
* @param sharedByUid 行动码分享者的uid
|
||||
* @param sharedByUid 二维码分享者的uid
|
||||
* @return 将用于生成2维码的字符串
|
||||
*/
|
||||
public static String constructJoinGroupCodeStr(@NonNull String gid, @NonNull String sharedByUid) {
|
||||
@@ -76,7 +76,7 @@ public class QRCodeScheme {
|
||||
/**
|
||||
* 解析2维码内容。
|
||||
*
|
||||
* @param qrcodeStr 扫描出的原始行动码字符串
|
||||
* @param qrcodeStr 扫描出的原始二维码字符串
|
||||
* @return 无论能否成功解析,都会返回QRCodeData对象
|
||||
*/
|
||||
public static QRCodeData parseCodeData(String qrcodeStr){
|
||||
@@ -97,7 +97,7 @@ public class QRCodeScheme {
|
||||
String scheme = qrcodeStr.substring(0, qrcodeStr.lastIndexOf("/") + 1);
|
||||
// 2维码内容
|
||||
String value = qrcodeStr.substring(qrcodeStr.lastIndexOf("/") + 1);
|
||||
LogUtils.i("行动码是啥:"+scheme+";;"+value);
|
||||
LogUtils.i("二维码是啥:"+scheme+";;"+value);
|
||||
// 设置
|
||||
d.setScheme(scheme).setValue(value).setUserId(uid);
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ public class ShareDateUtils {
|
||||
@Override
|
||||
public void onSuccess(@Nullable List<ConversationInfo> param) {
|
||||
for (ConversationInfo conversationInfo : param) {
|
||||
LogUtils.i("用户信息:" + GsonUtils.beanToJSONString(conversationInfo));
|
||||
// LogUtils.i("用户信息:" + GsonUtils.beanToJSONString(conversationInfo));
|
||||
|
||||
if (conversationInfo.getTeamInfo() != null) {
|
||||
titleUsers.add(new UserShareBean(conversationInfo.getTeamInfo()));
|
||||
@@ -152,7 +152,7 @@ public class ShareDateUtils {
|
||||
@Override
|
||||
public void onSuccess(@Nullable List<FriendInfo> param) {
|
||||
for (FriendInfo conversationInfo : param) {
|
||||
LogUtils.i("用户信息1:" + GsonUtils.beanToJSONString(conversationInfo));
|
||||
// LogUtils.i("用户信息1:" + GsonUtils.beanToJSONString(conversationInfo));
|
||||
boolean isAt = false;
|
||||
for (int i = 0; i < titleUsers.size(); i++) {
|
||||
if (titleUsers.get(i).getFriendInfo() != null) {
|
||||
|
||||
@@ -353,7 +353,7 @@ public class BindWeChatOrAliPayActivity extends BaseActivity {
|
||||
String stsCredentialsBean;
|
||||
|
||||
private void toShangchuanAli(File file) {
|
||||
showLoadingDialog();
|
||||
showLoadingDialog("正在上传图片");
|
||||
Api.getInstance().stsCredentials1()
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
|
||||
@@ -14,7 +14,10 @@ import com.hbl.lewan.R;
|
||||
import com.hbl.lewan.databinding.ActivityMywalletBinding;
|
||||
import com.hbl.lewan.databinding.ActivityWalletInfoNewBinding;
|
||||
import com.hbl.lewan.dialog.ActionConfirmDialog;
|
||||
import com.hbl.lewan.main.mine.AccoutListActivity;
|
||||
import com.hbl.lewan.main.mine.BuyAccountActivity;
|
||||
import com.hbl.lewan.main.mine.ChangeAccoutActionActivity;
|
||||
import com.hbl.lewan.model.AccountsBean;
|
||||
import com.hbl.lewan.model.BindBean;
|
||||
import com.hbl.lewan.model.LoginBean;
|
||||
import com.hbl.lewan.model.WalletBean;
|
||||
@@ -30,6 +33,8 @@ import com.netease.yunxin.kit.common.ui.activities.BaseActivity;
|
||||
import com.netease.yunxin.kit.common.ui.utils.ToastX;
|
||||
import com.netease.yunxin.kit.corekit.im.IMKitClient;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.reactivex.android.schedulers.AndroidSchedulers;
|
||||
import io.reactivex.schedulers.Schedulers;
|
||||
|
||||
@@ -59,6 +64,48 @@ public class MyWalletActivity extends BaseActivity {
|
||||
bindInfo();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void checkAccounts() {
|
||||
Api.getInstance().accounts()
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new BaseObserver<>() {
|
||||
@Override
|
||||
public void onSuccess(Result<List<AccountsBean>> feedbackResp) {
|
||||
if(feedbackResp.data!=null && feedbackResp.data.size()>1){
|
||||
// startActivity(new Intent(MyWalletActivity.this, AccoutListActivity.class));
|
||||
viewBinding.gmfhLy.setVisibility(View.GONE);
|
||||
viewBinding.gmfhLine.setVisibility(View.GONE);
|
||||
}else{
|
||||
viewBinding.gmfhLy.setVisibility(View.VISIBLE);
|
||||
viewBinding.gmfhLine.setVisibility(View.VISIBLE);
|
||||
|
||||
// ActionConfirmDialog actionConfirmDialog = new ActionConfirmDialog(getActivity(), "当前没有副号,是否需要购买", "取消","购买",true);
|
||||
// actionConfirmDialog.setOnToActionListener(new ActionConfirmDialog.OnToActionListener() {
|
||||
// @Override
|
||||
// public void toSumbit() {
|
||||
// startActivity(new Intent(getActivity(), BuyAccountActivity.class));
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void toCancel() {
|
||||
//
|
||||
// }
|
||||
// });
|
||||
// actionConfirmDialog.show();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(int code, String msg) {
|
||||
LogUtils.i("获取到的错误:" + code + "" + msg);
|
||||
ToastX.showShortToast(msg);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
LoginBean locUser;
|
||||
|
||||
private void getUserInfo(int type) {
|
||||
@@ -111,6 +158,8 @@ public class MyWalletActivity extends BaseActivity {
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
getWallet();
|
||||
checkAccounts();
|
||||
|
||||
}
|
||||
|
||||
private void bindInfo() {
|
||||
@@ -134,7 +183,12 @@ public class MyWalletActivity extends BaseActivity {
|
||||
|
||||
protected void initView() {
|
||||
viewBinding.contactListActivityTitleBar.getBackImageView().setOnClickListener(v -> finish());
|
||||
|
||||
viewBinding.gmfhBt.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
startActivity(new Intent(MyWalletActivity.this, BuyAccountActivity.class));
|
||||
}
|
||||
});
|
||||
viewBinding.lqmxBt.setOnClickListener(v -> {
|
||||
if (bindBean != null) {
|
||||
if (!bindBean.getPhoneBind()) {
|
||||
|
||||
@@ -79,10 +79,19 @@ public class PaySettingActivity extends BaseActivity implements SelectPayTypeDia
|
||||
viewBinding.mianmiSc.setChecked(DataUtils.get(PaySettingActivity.this, "hasMianMi", false));
|
||||
viewBinding.zhiwenSc.setChecked(DataUtils.get(PaySettingActivity.this, "hasFinger", false));
|
||||
viewBinding.mianmiV.setOnClickListener(v -> {
|
||||
if(loginBean!=null&&(loginBean.getUserType()+"").equals("2")){
|
||||
ToastX.showShortToast("副号不支持修改密码");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (bean != null && !bean.getPayPasswordSet()) {
|
||||
showDialogPay();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
boolean isCheck = DataUtils.get(PaySettingActivity.this, "hasMianMi", false);
|
||||
if (isCheck) {
|
||||
|
||||
@@ -205,6 +214,8 @@ public class PaySettingActivity extends BaseActivity implements SelectPayTypeDia
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void showDialogPay() {
|
||||
|
||||
com.netease.yunxin.kit.chatkit.ui.dialog.ActionConfirmDialog actionDialog = new com.netease.yunxin.kit.chatkit.ui.dialog.ActionConfirmDialog(PaySettingActivity.this,
|
||||
@@ -325,6 +336,10 @@ public class PaySettingActivity extends BaseActivity implements SelectPayTypeDia
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
|
||||
loginBean = DataUtils.getLocUserInfo();
|
||||
|
||||
|
||||
bindInfo(IMKitClient.account());
|
||||
}
|
||||
|
||||
|
||||
@@ -276,6 +276,7 @@ public class TiXianActivity extends BaseActivity {
|
||||
bankBean =aliPayBeans.get(0);
|
||||
}else{
|
||||
viewBinding.shoukuanBt.setText("");
|
||||
bankBean = null;
|
||||
}
|
||||
if(tiXianConfBean!=null) {
|
||||
viewBinding.tipsTv.setText(Html.fromHtml("单笔提现手续费<font color = '#FA6947'>" + tiXianConfBean.getBaseFee() + "</font>元<br>提现费率<font color = '#FA6947'>" + tiXianConfBean.getFeeRate() + "%</font><br>预计到账时间<font color = '#FA6947'>2</font>小时以内"));
|
||||
@@ -291,6 +292,8 @@ public class TiXianActivity extends BaseActivity {
|
||||
bankBean =bankBeans.get(0);
|
||||
}else{
|
||||
viewBinding.shoukuanBt.setText("");
|
||||
bankBean = null;
|
||||
|
||||
}
|
||||
if(tiXianConfBean!=null) {
|
||||
viewBinding.tipsTv.setText(Html.fromHtml("单笔提现手续费<font color = '#FA6947'>" + tiXianConfBean.getBaseFee() + "</font>元<br>提现费率<font color = '#FA6947'>" + tiXianConfBean.getFeeRate() + "%</font><br>预计到账时间<font color = '#FA6947'>2</font>小时以内"));
|
||||
|
||||
23
app/src/main/res/drawable/pass_word_bg1.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<animated-rotate
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:fromDegrees="0"
|
||||
android:toDegrees="360"
|
||||
android:pivotX="50%"
|
||||
android:pivotY="50%"
|
||||
>
|
||||
<shape
|
||||
android:shape="ring"
|
||||
android:innerRadiusRatio="3"
|
||||
android:thicknessRatio="8"
|
||||
android:useLevel="false"
|
||||
>
|
||||
<gradient
|
||||
android:type="sweep"
|
||||
android:useLevel="false"
|
||||
android:startColor="#6D80FF"
|
||||
android:centerColor="#886D80FF"
|
||||
android:endColor="#006D80FF"
|
||||
android:centerY="0.50" />
|
||||
</shape>
|
||||
</animated-rotate>
|
||||
7
app/src/main/res/drawable/shape_dialog_bg222.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<corners android:radius="12dp" />
|
||||
<solid android:color="@color/white" />
|
||||
<stroke android:width="@dimen/dp_1" android:color="@color/color_f4f4f4"/>
|
||||
|
||||
</shape>
|
||||
@@ -182,7 +182,7 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/flteamurl"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
@@ -214,7 +214,7 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/flteaminfo"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
android:visibility="gone"
|
||||
@@ -247,7 +247,7 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/rlteam_announcement"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
android:visibility="gone"
|
||||
@@ -277,7 +277,7 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/rlteam_clearhistory"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
@@ -303,10 +303,11 @@
|
||||
app:srcCompat="@mipmap/ic_setting_enter" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fljinyan"
|
||||
android:id="@+id/flhbkz"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:visibility="gone"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
@@ -314,6 +315,37 @@
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/rlteam_clearhistory">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvhbkz"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:drawablePadding="@dimen/dp_5"
|
||||
android:gravity="center"
|
||||
android:text="红包控制"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/sp_16"
|
||||
app:drawableStartCompat="@mipmap/hbkz_red_img1" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
app:srcCompat="@mipmap/ic_setting_enter" />
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fljinyan"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:visibility="gone"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/flhbkz">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvjinyan"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -336,7 +368,7 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/rlteam_jubao"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
@@ -365,7 +397,7 @@
|
||||
<FrameLayout
|
||||
android:id="@+id/rlteam_set"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_height="@dimen/dp_45"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
android:visibility="gone"
|
||||
|
||||
@@ -188,8 +188,7 @@
|
||||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/sp_14"
|
||||
tools:text="dkjklasjgsdg dsal kl;fdkg" />
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="#FFFFFF"
|
||||
android:clipChildren="false"
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:visibility="gone"
|
||||
android:background="@color/color_e8e8e8" />
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
|
||||
@@ -226,6 +226,7 @@
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:visibility="gone"
|
||||
android:background="#f4f4f4" />
|
||||
|
||||
<TextView
|
||||
@@ -234,6 +235,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_60"
|
||||
android:drawablePadding="@dimen/dp_15"
|
||||
android:visibility="gone"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/setting_notify_push_call"
|
||||
android:textColor="@color/color_333333"
|
||||
|
||||
@@ -13,12 +13,11 @@
|
||||
android:layout_height="wrap_content"
|
||||
>
|
||||
<ImageView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="211dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:scaleType="fitXY"
|
||||
android:src="@mipmap/qianbao_top_bg"
|
||||
app:layout_constraintDimensionRatio="375:211"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
@@ -32,67 +31,83 @@
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:titleText="我的钱包"
|
||||
app:titleTextColor="@android:color/black" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/top_cly"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="180dp"
|
||||
android:layout_marginStart="@dimen/dp_12"
|
||||
android:layout_marginEnd="@dimen/dp_12"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
android:layout_marginTop="?actionBarSize"
|
||||
android:background="@mipmap/qianbao_top_float_bg"
|
||||
android:orientation="vertical"
|
||||
app:cardCornerRadius="@dimen/dp_10"
|
||||
app:cardElevation="0dp"
|
||||
app:cardMaxElevation="0dp"
|
||||
app:layout_constraintDimensionRatio="346:180"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_35"
|
||||
android:layout_marginTop="@dimen/dp_30"
|
||||
android:text="我的零钱"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/jinbi_yue_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_35"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:textColor="#fffcf0a1"
|
||||
android:textSize="30sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/top_cly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="@dimen/dp_25"
|
||||
android:gravity="center_horizontal|bottom"
|
||||
android:orientation="horizontal">
|
||||
android:background="@mipmap/qianbao_top_float_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/cz_bt"
|
||||
android:layout_width="161dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginEnd="@dimen/dp_5"
|
||||
android:background="@mipmap/qianbao_top_tixian"
|
||||
android:gravity="center"
|
||||
android:text="充值"
|
||||
android:textColor="#fff6f8fd"
|
||||
android:textSize="16sp" />
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:text="我的零钱"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tx_bt"
|
||||
android:layout_width="161dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginStart="@dimen/dp_5"
|
||||
android:background="@mipmap/qianbao_top_topup"
|
||||
android:gravity="center"
|
||||
android:text="提现"
|
||||
android:textColor="#fff6f8fd"
|
||||
android:textSize="16sp" />
|
||||
android:id="@+id/jinbi_yue_tv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:textColor="#fffcf0a1"
|
||||
android:textSize="30sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="@dimen/dp_20"
|
||||
android:gravity="center_horizontal|bottom"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/cz_bt"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginEnd="@dimen/dp_10"
|
||||
android:layout_marginStart="@dimen/dp_20"
|
||||
android:background="@drawable/button_true_bg1"
|
||||
android:gravity="center"
|
||||
android:text="充值"
|
||||
android:textColor="#fff6f8fd"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tx_bt"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginEnd="@dimen/dp_20"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="@dimen/dp_10"
|
||||
android:background="@drawable/button_true_bg11"
|
||||
android:gravity="center"
|
||||
android:text="提现"
|
||||
android:textColor="#fff6f8fd"
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<ScrollView
|
||||
@@ -100,6 +115,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/index_user_bg"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="@dimen/dp_15"
|
||||
android:layout_marginStart="@dimen/dp_12"
|
||||
android:layout_marginEnd="@dimen/dp_12"
|
||||
android:scrollbars="none">
|
||||
@@ -223,7 +239,36 @@
|
||||
android:layout_marginLeft="@dimen/dp_15"
|
||||
android:layout_marginRight="@dimen/dp_15"
|
||||
android:background="#D8D8D8" />
|
||||
<LinearLayout
|
||||
android:id="@+id/gmfh_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_57"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone">
|
||||
|
||||
<Button
|
||||
android:id="@+id/gmfh_bt"
|
||||
style="@style/settings_item_bg_group_full_20191"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:drawablePadding="@dimen/dp_15"
|
||||
android:gravity="center_vertical"
|
||||
android:text="购买副号"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/sp_14"
|
||||
app:drawableLeftCompat="@mipmap/goumaifuhao"
|
||||
app:drawableRightCompat="@drawable/ic_frame_mine_right_arrow" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/gmfh_line"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1px"
|
||||
android:visibility="gone"
|
||||
android:layout_marginLeft="@dimen/dp_15"
|
||||
android:layout_marginRight="@dimen/dp_15"
|
||||
android:background="#D8D8D8" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_57"
|
||||
|
||||
@@ -139,6 +139,7 @@
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="53dp"
|
||||
android:paddingEnd="@dimen/dp_15"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginLeft="@dimen/dp_30"
|
||||
android:layout_marginRight="@dimen/dp_30"
|
||||
@@ -181,8 +182,9 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/index_next_img"
|
||||
android:id="@+id/zhuanshu_next_iv"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginEnd="15dp"/>
|
||||
/>
|
||||
|
||||
|
||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||
|
||||
109
app/src/main/res/layout/activity_team_members1.xml
Normal file
@@ -0,0 +1,109 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) 2022 NetEase, Inc. All rights reserved.
|
||||
~ Use of this source code is governed by a MIT license that can be
|
||||
~ found in the LICENSE file.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/layout_selectorroot"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.BackTitleBar
|
||||
android:id="@+id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:titleText="红包控制"
|
||||
app:titleTextColor="@color/color_333333" />
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_40_dp"
|
||||
android:layout_marginStart="@dimen/dimen_15_dp"
|
||||
android:layout_marginTop="@dimen/dimen_10_dp"
|
||||
android:layout_marginEnd="@dimen/dimen_15_dp"
|
||||
android:background="@drawable/fun_bg_addfriends_verifymsg"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edit_selector_friends"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.9"
|
||||
android:background="@null"
|
||||
android:drawableStart="@drawable/fun_ic_conversation_search"
|
||||
android:drawablePadding="@dimen/dimen_5_dp"
|
||||
android:hint="@string/fun_contact_createteam_tips"
|
||||
android:imeOptions="actionSearch"
|
||||
android:paddingStart="@dimen/dimen_15_dp"
|
||||
android:singleLine="true"
|
||||
android:textColorHint="@color/color_cccccc"
|
||||
android:textCursorDrawable="@null" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/ic_clean_edit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="0.1"
|
||||
android:visibility="gone"
|
||||
app:srcCompat="@drawable/ic_selector_close" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/tvteammembers"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:text="成员"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_10"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:gravity="center_horizontal"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:text="收红包"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:gravity="center_horizontal"
|
||||
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_14"
|
||||
android:text="发红包"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_members"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dimen_20_dp" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -14,7 +14,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/st"
|
||||
android:background="@color/color_fffafa"
|
||||
android:background="@color/white"
|
||||
app:titleText="@string/zhuanzhang_title_txt"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
@@ -215,6 +215,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:visibility="gone"
|
||||
android:layout_marginRight="@dimen/dp_30"
|
||||
android:orientation="horizontal">
|
||||
|
||||
@@ -242,6 +243,7 @@
|
||||
android:layout_marginLeft="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:layout_marginRight="@dimen/dp_30"
|
||||
android:visibility="gone"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
@@ -289,8 +291,8 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="88dp"
|
||||
android:layout_marginLeft="@dimen/dp_30"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginRight="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:background="@drawable/input_bg_t2"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="15dp">
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:titleText="@string/zhuanzhang_title_txt"
|
||||
android:background="@color/color_fcfcfc"
|
||||
android:background="@color/white"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="50dp"
|
||||
android:text="@string/transfer_instructions_txt"
|
||||
android:text="转账说明"
|
||||
android:textColor="#7E7B84"
|
||||
android:textSize="14sp" />
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="50dp"
|
||||
android:text="@string/transfer_time_txt"
|
||||
android:text="转账时间"
|
||||
android:textColor="#7E7B84"
|
||||
android:textSize="14sp" />
|
||||
|
||||
@@ -204,7 +204,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|right"
|
||||
android:minHeight="50dp"
|
||||
android:text="赠送说明"
|
||||
android:text="转账说明"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="14sp" />
|
||||
</LinearLayout>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="3"
|
||||
android:layout_weight="4"
|
||||
android:gravity="center_horizontal">
|
||||
|
||||
|
||||
@@ -35,9 +35,8 @@
|
||||
android:layout_height="@dimen/dp_106"
|
||||
app:es_shape_type="rectangle"
|
||||
app:ease_radius="10dp"
|
||||
android:visibility="gone"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginTop="@dimen/dp_200"
|
||||
android:visibility="visible"
|
||||
android:layout_centerInParent="true"
|
||||
android:src="@mipmap/ic_launche" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -59,7 +58,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:layout_marginRight="@dimen/dp_20"
|
||||
android:background="@mipmap/start_login1"
|
||||
android:background="@drawable/bg_topup_btn"
|
||||
android:gravity="center"
|
||||
android:text="@string/login_txt"
|
||||
android:textColor="@color/color_white"
|
||||
@@ -70,9 +69,9 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:layout_marginRight="@dimen/dp_20"
|
||||
android:background="@mipmap/start_reg1"
|
||||
android:background="@drawable/button_true_bg1"
|
||||
android:gravity="center"
|
||||
android:text="@string/reg_txt"
|
||||
android:textColor="@color/white"
|
||||
|
||||
@@ -17,7 +17,19 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/zhiding_tv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dimen_50_dp"
|
||||
android:gravity="center"
|
||||
android:text="置顶该聊天"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:background="#F9F9F9" />
|
||||
<TextView
|
||||
android:id="@+id/hide_tv"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -120,6 +120,7 @@
|
||||
android:background="@color/transparent"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/species_txt"
|
||||
android:visibility="gone"
|
||||
android:textColor="#333333"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
|
||||
@@ -119,6 +119,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:visibility="gone"
|
||||
android:background="@color/transparent"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/species_txt"
|
||||
|
||||
@@ -12,10 +12,9 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/card_view"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="146dp"
|
||||
android:background="@mipmap/chat_bg_index"
|
||||
app:layout_constraintDimensionRatio="375:146"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
@@ -25,10 +25,9 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/card_view"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="175dp"
|
||||
android:background="@mipmap/user_info_bg1"
|
||||
app:layout_constraintDimensionRatio="375:175"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
@@ -174,17 +173,16 @@
|
||||
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="205dp"
|
||||
android:visibility="visible"
|
||||
app:layout_constraintDimensionRatio="375:205"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginLeft="@dimen/dp_15"
|
||||
android:layout_marginRight="@dimen/dp_15"
|
||||
android:background="@drawable/index_user_bg1"
|
||||
@@ -533,13 +531,14 @@
|
||||
|
||||
android:drawablePadding="@dimen/dp_15"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/haoyouquanxian_txt"
|
||||
android:text="@string/black_list_txt"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/sp_14"
|
||||
app:drawableLeftCompat="@mipmap/icon_friend_quanxian"
|
||||
app:drawableRightCompat="@drawable/ic_frame_mine_right_arrow" />
|
||||
|
||||
</LinearLayout>
|
||||
<!-- android:text="@string/haoyouquanxian_txt"-->
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
@@ -743,7 +742,7 @@
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
android:text="切换账号"
|
||||
android:textColor="#616161"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/dp_16"
|
||||
tools:ignore="NotSibling,SpUsage" />
|
||||
|
||||
|
||||
@@ -20,10 +20,12 @@
|
||||
app:es_shape_type="round"
|
||||
android:src="@mipmap/ic_launche"/>
|
||||
<LinearLayout
|
||||
android:id="@+id/user_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_56"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginStart="@dimen/dp_10"
|
||||
android:visibility="gone"
|
||||
android:layout_weight="1">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
@@ -70,6 +72,18 @@
|
||||
android:textSize="14sp"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/add_accout_ly"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_56"
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone"
|
||||
android:text="添加账号"
|
||||
android:textSize="@dimen/sp_14"
|
||||
android:textColor="@color/color_666666"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginStart="@dimen/dp_10"
|
||||
android:layout_weight="1"/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
41
app/src/main/res/layout/loading_dialog_layout.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (c) 2022 NetEase, Inc. All rights reserved. -->
|
||||
<!-- Use of this source code is governed by a MIT license that can be -->
|
||||
<!-- found in the LICENSE file. -->
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:background="@color/transparent">
|
||||
<RelativeLayout
|
||||
android:layout_width="@dimen/dp_240"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:background="@drawable/shape_dialog_bg222">
|
||||
<ProgressBar
|
||||
android:id="@+id/pb"
|
||||
style="@style/LoadingDialogTheme"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/dp_40"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:indeterminateDrawable="@drawable/pass_word_bg1"
|
||||
android:layout_gravity="center_horizontal" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/pb"
|
||||
android:gravity="center"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginBottom="40dp"
|
||||
android:layout_marginStart="@dimen/dp_10"
|
||||
android:layout_marginEnd="@dimen/dp_10"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="14sp"
|
||||
tools:text="loading"
|
||||
tools:visibility="visible" />
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
124
app/src/main/res/layout/team_members_view_holder2.xml
Normal file
@@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ Copyright (c) 2022 NetEase, Inc. All rights reserved.
|
||||
~ Use of this source code is governed by a MIT license that can be
|
||||
~ found in the LICENSE file.
|
||||
-->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/root_view"
|
||||
android:paddingStart="@dimen/dp_15"
|
||||
android:paddingEnd="@dimen/dp_15"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:id="@+id/ic_delete"
|
||||
android:layout_width="@dimen/dp_20"
|
||||
android:layout_height="@dimen/dp_20"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/avatar_view"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@+id/avatar_view" />
|
||||
|
||||
<com.netease.yunxin.kit.common.ui.widgets.ContactAvatarView
|
||||
android:id="@+id/avatar_view"
|
||||
android:layout_width="@dimen/dimen_45_dp"
|
||||
android:layout_height="@dimen/dimen_45_dp"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginBottom="@dimen/dp_10"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
app:avatarCorner="@dimen/dimen_45_dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/ic_delete"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_goneMarginStart="0dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/dp_15"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/color_333333"
|
||||
android:textSize="@dimen/text_size_16"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintBottom_toTopOf="@+id/tv_name_activetime"
|
||||
app:layout_constraintStart_toEndOf="@+id/avatar_view"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/unreadTv"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/dimen_2_dp"
|
||||
android:background="@drawable/bg_conversation_red_dot"
|
||||
android:gravity="center"
|
||||
android:paddingStart="@dimen/dimen_5_dp"
|
||||
android:paddingEnd="@dimen/dimen_5_dp"
|
||||
android:textColor="@color/color_white"
|
||||
android:textSize="@dimen/text_size_12"
|
||||
android:visibility="gone"
|
||||
android:layout_marginStart="@dimen/dp_5"
|
||||
app:layout_constraintBottom_toBottomOf="@id/tv_name"
|
||||
app:layout_constraintTop_toTopOf="@id/tv_name"
|
||||
app:layout_constraintLeft_toRightOf="@id/tv_name" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_name_activetime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/dp_5"
|
||||
android:paddingEnd="@dimen/dp_5"
|
||||
android:textSize="@dimen/sp_12"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/avatar_view"
|
||||
app:layout_constraintLeft_toLeftOf="@+id/tv_name" />
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/jinyan_red_img"
|
||||
android:layout_marginEnd="@dimen/dp_15"
|
||||
android:id="@+id/jinyan_iv"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/fahongbao_switch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dimen_24_dp"
|
||||
android:clickable="true"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:thumb="@drawable/switch_thumb_selector"
|
||||
app:track="@drawable/switch_track_selector"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
|
||||
<androidx.appcompat.widget.SwitchCompat
|
||||
android:id="@+id/shouhongbao_switch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/dimen_24_dp"
|
||||
android:layout_marginEnd="@dimen/dp_12"
|
||||
android:clickable="false"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:thumb="@drawable/switch_thumb_selector"
|
||||
app:track="@drawable/switch_track_selector"
|
||||
app:layout_constraintRight_toLeftOf="@id/fahongbao_switch"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<View
|
||||
android:id="@+id/lineteamsetting"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_0_5"
|
||||
android:background="@color/color_ededed"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
BIN
app/src/main/res/mipmap-xxhdpi/add_accouts_img.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/goumaifuhao.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/hbkz_red_img1.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 370 KiB After Width: | Height: | Size: 286 KiB |
|
Before Width: | Height: | Size: 655 KiB After Width: | Height: | Size: 2.1 MiB |
@@ -169,7 +169,7 @@
|
||||
<string name="delete_text">删除</string>
|
||||
|
||||
<string name="addfriend_invite_text">邀请</string>
|
||||
<string name="addfriend_qrcode_text">行动码</string>
|
||||
<string name="addfriend_qrcode_text">二维码</string>
|
||||
<string name="addfriend_search_text">搜索</string>
|
||||
<string name="addfriend_open_text">启用</string>
|
||||
<string name="addfriend_add_text">添加</string>
|
||||
@@ -221,15 +221,15 @@
|
||||
<string name="jtzw_txt">简体中文</string>
|
||||
<string name="yinyu_txt">英语</string>
|
||||
<string name="riyu_txt">日语</string>
|
||||
<string name="save_code_add_friend_txt">使用此行动码或链接来添加好友!</string>
|
||||
<string name="save_code_add_friend_txt">使用此二维码或链接来添加好友!</string>
|
||||
<string name="copy_link_txt">复制链接</string>
|
||||
<string name="share_txt">分享</string>
|
||||
<string name="save_txt">保存</string>
|
||||
<string name="shuaxin_qrcode_txt">刷新行动码</string>
|
||||
<string name="qrcode_generate_activity_qr_save_sucess">行动码已成功保存到系统相册!</string>
|
||||
<string name="qrcode_generate_activity_qr_save_fail">行动码保存失败!</string>
|
||||
<string name="qrcode_generate_activity_qr_generate_fail">行动码生成失败!</string>
|
||||
<string name="qrcode_share_succ_txt">行动码分享成功</string>
|
||||
<string name="shuaxin_qrcode_txt">刷新二维码</string>
|
||||
<string name="qrcode_generate_activity_qr_save_sucess">二维码已成功保存到系统相册!</string>
|
||||
<string name="qrcode_generate_activity_qr_save_fail">二维码保存失败!</string>
|
||||
<string name="qrcode_generate_activity_qr_generate_fail">二维码生成失败!</string>
|
||||
<string name="qrcode_share_succ_txt">二维码分享成功</string>
|
||||
<string name="qrcode_scan_activity_not_invalid_qrcode">无效的2维码!</string>
|
||||
<string name="lailiaozhanghao_txt">乐玩账号</string>
|
||||
<string name="shuaxinchenggong_txt">刷新成功</string>
|
||||
@@ -239,7 +239,7 @@
|
||||
<string name="gexingqianming_txt">个性签名</string>
|
||||
<string name="dianhuahaoma_txt">电话号码</string>
|
||||
<string name="yxtrtgidss_txt">允许他人通过账号添加</string>
|
||||
<string name="wdewm_txt">我的行动码</string>
|
||||
<string name="wdewm_txt">我的二维码</string>
|
||||
<string name="szgrzltxyfm_txt">设置头像与封面</string>
|
||||
<string name="grzlfm_txt">个人资料封面</string>
|
||||
<string name="kaxj_txt">开启相机</string>
|
||||
@@ -257,8 +257,8 @@
|
||||
<string name="allow_add_me_at_group_txt">允许通过群聊方式添加我</string>
|
||||
<string name="black_list_txt">黑名单</string>
|
||||
<string name="qszacc_txt">请设置乐玩账号</string>
|
||||
<string name="qszacc1_txt">MM账户ID支持英文、数字、下划线</string>
|
||||
<string name="qszacc_hint_txt">请输入MM账户</string>
|
||||
<string name="qszacc1_txt">乐玩账户ID支持英文、数字、下划线</string>
|
||||
<string name="qszacc_hint_txt">请输入乐玩账户</string>
|
||||
<string name="meiyuegaiyici_txt">每月只可修改一次,请谨慎修改!</string>
|
||||
<string name="zsvbxg_txt">您暂时不能修改MMID</string>
|
||||
<string name="zsbnxg1_txt">MMID一个月只可修改一次,您将于%s年%s月%s日才可修改!</string>
|
||||
@@ -314,7 +314,7 @@
|
||||
<string name="lahei_tips_txt">拉黑后好友将进入黑名单您将不再收到对方消息</string>
|
||||
<string name="mykfxfddx_txt">没有可分享的对象</string>
|
||||
<string name="zhbhf_jqsb_txt">账号不合法,IM鉴权失败</string>
|
||||
<string name="saoyisao_tips_txt">扫描行动码,轻松加好友或启动其他功能!</string>
|
||||
<string name="saoyisao_tips_txt">扫描二维码,轻松加好友或启动其他功能!</string>
|
||||
<string name="qrcode_scan_activity_not_surpport_qrcontent">不支持的2维码内容!</string>
|
||||
<string name="shouquandenglu_txt">授权登录</string>
|
||||
<string name="tltdbj_txt">淘乐町门店设备登录</string>
|
||||
@@ -363,15 +363,15 @@
|
||||
<string name="send_in_redtype_txt1">塞金币进红包</string>
|
||||
<string name="no_get_to_back_txt">未领取的红包,将于24小时退回</string>
|
||||
<string name="zhuanzhangobject_txt">点击选择赠送对象</string>
|
||||
<string name="zhuanzhangjine_txt">赠送数量</string>
|
||||
<string name="zhuanzhangjineto_txt">赠送给:%s</string>
|
||||
<string name="zhuanzhangjine_txt">金额</string>
|
||||
<string name="zhuanzhangjineto_txt">转账给:%s</string>
|
||||
<string name="shouxufei_txt">手续费</string>
|
||||
<string name="shouxufeitips_jinbi_txt"><![CDATA[含手续费<b><font color=\'#FF4161\'>%d</font></b>cash]]></string>
|
||||
<string name="shouxufeitips_yinbi_txt"><![CDATA[含手续费<b><font color=\'#FF4161\'>%d</font></b>积分]]></string>
|
||||
<string name="totaljine_txt">统计支付数量</string>
|
||||
<string name="cashbuzu_txt">当前cash余额不足</string>
|
||||
<string name="lipinjifenbuzu_txt">当前礼品积分余额不足</string>
|
||||
<string name="transfer_instructions_hint_txt">(选填)输入赠送说明</string>
|
||||
<string name="transfer_instructions_hint_txt">(选填)转账说明</string>
|
||||
<string name="fqzz_txt">发起赠送</string>
|
||||
<string name="no_get_to_back_t_txt">24小时内未领取,赠送数量将被自动领取</string>
|
||||
<string name="timeout_transfer_tips_txt">24小时内未领取,赠送数量将被自动领取</string>
|
||||
@@ -414,19 +414,19 @@
|
||||
<string name="hqqbxxsb_txt">获取钱包信息失败</string>
|
||||
<string name="send_in_redenvelope_txt2">塞礼品积分进红包</string>
|
||||
<string name="zhuanzhang_txt">[礼品积分赠送]</string>
|
||||
<string name="zzjebnwk_txt">赠送数量不能为空</string>
|
||||
<string name="zzjebnwk_txt">转账金额不能为空</string>
|
||||
<string name="zzjebnwk_txt1">收款数量不能为空</string>
|
||||
|
||||
<string name="zzjebnsy_txt">赠送数量不能小于0.01</string>
|
||||
<string name="zzjebnsy_txt1">收款数量不能为空不能小于0.01</string>
|
||||
|
||||
<string name="hqqbxxsb_tx">获取钱包信息失败</string>
|
||||
<string name="nqdythzz_txt">确定要退还赠送吗?</string>
|
||||
<string name="nqdythzz_txt1">您确定要退还%s的赠送吗?</string>
|
||||
<string name="nqdythzz_txt">确定要退还转账吗?</string>
|
||||
<string name="nqdythzz_txt1">您确定要退还%s的转账吗?</string>
|
||||
<string name="tuihuan_txt">退还</string>
|
||||
<string name="ndqbbdj_txt">您的Cash被冻结,如需解冻请联系客服</string>
|
||||
<string name="ndqbbdj_txt">您的余额被冻结,如需解冻请联系客服</string>
|
||||
<string name="lxkh_txt">联系客服</string>
|
||||
<string name="zhuanzhang_tips1_txt">1天内对方未领取,赠送数量将自动打到对方的余额</string>
|
||||
<string name="zhuanzhang_tips1_txt">1天内对方未领取,转账将自动打到对方的余额</string>
|
||||
<string name="daishoukuan_txt">待%s收款</string>
|
||||
<string name="yishoukuan_txt">%s已收款</string>
|
||||
<string name="yzdsk_txt">%s已自动领取</string>
|
||||
@@ -441,7 +441,7 @@
|
||||
<string name="nyth_txt">已退还</string>
|
||||
<string name="ytkddfye_txt">已退还到对方余额</string>
|
||||
<string name="wbdsjhytkddfye_txt">系统已自动退还</string>
|
||||
<string name="zhuanzhang_title_txt">赠送</string>
|
||||
<string name="zhuanzhang_title_txt">转账</string>
|
||||
<string name="fahongbao_txt">发红包</string>
|
||||
<string name="ge_txt">个</string>
|
||||
<string name="voom_message_txt">[短影音消息]</string>
|
||||
@@ -500,9 +500,9 @@
|
||||
<string name="jinbihongbao_tuikuan_txt">红包-退还</string>
|
||||
<string name="jinbihongbao_laizi_txt">红包-来自</string>
|
||||
<string name="jinbihongbao_wfg_txt">红包-我发给</string>
|
||||
<string name="jinbizhuanzhang_tk_txt">Cash赠送-退还</string>
|
||||
<string name="jinbizhuanzhang_laizi_txt">Cash赠送-来自</string>
|
||||
<string name="jinbizhuanzhang_wofagei_txt">Cash赠送-我发给</string>
|
||||
<string name="jinbizhuanzhang_tk_txt">转账-退还</string>
|
||||
<string name="jinbizhuanzhang_laizi_txt">转账-来自</string>
|
||||
<string name="jinbizhuanzhang_wofagei_txt">转账-我发给</string>
|
||||
<string name="jinbiqunhongbao_tuikuan_txt">群红包-退还</string>
|
||||
<string name="jinbiqunhongbao_txt">群红包</string>
|
||||
<string name="jinbiqunhongbao_wfg_txt">群红包-我发给</string>
|
||||
@@ -583,7 +583,7 @@
|
||||
<string name="teamsetting_other_teamname">群名称</string>
|
||||
<string name="teamsetting_other_addtype">自动添加成员</string>
|
||||
<string name="teamsetting_other_addtypedesc">成员在收到邀请后立即被添加至群。您可以关闭此设置仅仅允许接收邀请的成员加入群。</string>
|
||||
<string name="teamsetting_other_teamurl">使用群链接 行动码让用户加入此群</string>
|
||||
<string name="teamsetting_other_teamurl">使用群链接 二维码让用户加入此群</string>
|
||||
<string name="teamsetting_other_teamaddfriends">是否允许群内添加好友</string>
|
||||
<string name="teamsetting_other_teamallow">允许</string>
|
||||
<string name="teamsetting_other_teamallow_not">不允许</string>
|
||||
@@ -605,13 +605,13 @@
|
||||
<string name="mianmixieyi_tips_txt">请先阅读并同意《免密支付协议》</string>
|
||||
<string name="woyiyuedubintongyi_txt">我已阅读并同意</string>
|
||||
<string name="mianmi_title_txt1">免密支付协议</string>
|
||||
<string name="personsetting_bingbiopen">封锁</string>
|
||||
<string name="personsetting_bingbicancel">解封</string>
|
||||
<string name="personsetting_bingbiopen">加入黑名单</string>
|
||||
<string name="personsetting_bingbicancel">解除黑名单</string>
|
||||
<string name="erweimashouklaizi_txt">收款-来自</string>
|
||||
<string name="erweimashouklaizi_txt1">行动码收款-來自</string>
|
||||
<string name="erweimashouklaizi_txt1">二维码收款-來自</string>
|
||||
|
||||
<string name="saomafukuan_txt">赠送-给</string>
|
||||
<string name="saomafukuan_txt2">行动码付款-给</string>
|
||||
<string name="saomafukuan_txt2">二维码付款-给</string>
|
||||
|
||||
<string name="join_group_txt">加入群聊</string>
|
||||
<string name="jinru_group_txt">进入群聊</string>
|
||||
@@ -648,9 +648,9 @@
|
||||
<string name="zdxzsg_txt">最多选择三个</string>
|
||||
<string name="setting_cleanhistory">聊天记录被清除后无法恢复,确认要继续吗?</string>
|
||||
<string name="toast_teamname">请设置群名称</string>
|
||||
<string name="xiangshuijinbi_txt">向 %s Cash赠送</string>
|
||||
<string name="xiangshuijinbi_txt">向 %s 转账</string>
|
||||
<string name="xiangshuiyinbi_txt">向 %s 礼品积分赠送</string>
|
||||
<string name="xiangshuijinbi_txt1">来自 %s 的Cash赠送</string>
|
||||
<string name="xiangshuijinbi_txt1">来自 %s 的转账</string>
|
||||
<string name="xiangshuiyinbi_txt1">来自 %s 的礼品积分赠送</string>
|
||||
<string name="saoyisao_txt">扫一扫</string>
|
||||
<string name="shoukuan_title_txt">收款</string>
|
||||
@@ -687,7 +687,7 @@
|
||||
<string name="accout_password_txt3">设置密码</string>
|
||||
<string name="quxiugai_txt">去修改</string>
|
||||
<string name="set_pay_pass_txt2">忘记支付密码</string>
|
||||
<string name="erweimashoufukuan_txt">行动码收付款</string>
|
||||
<string name="erweimashoufukuan_txt">二维码收付款</string>
|
||||
<string name="fukuanmafukuan_txt">付款码付款</string>
|
||||
<string name="fukuanmashoukuan_txt">付款码收款</string>
|
||||
<string name="querenzantingmianmizhifu_txt">确认暂停使用付款码免密支付吗</string>
|
||||
@@ -708,7 +708,7 @@
|
||||
<string name="wodetongbi_txt">我的礼金</string>
|
||||
<string name="tongbiyue_txt">禮金余额</string>
|
||||
<string name="tongbimingxi_txt">铜币明细</string>
|
||||
<string name="saomiaoerweima_txt">扫描行动码</string>
|
||||
<string name="saomiaoerweima_txt">扫描二维码</string>
|
||||
<string name="yichaoshi_txt">已超时,请重新支付</string>
|
||||
<string name="gengaibangdingshoujihao_txt">更换绑定手机号</string>
|
||||
<string name="yibangshoujihao_txt">已绑手机号</string>
|
||||
|
||||