add 分享
add 推送(搜索还没做、卡片还没做) add 打招呼
@@ -0,0 +1,53 @@
|
||||
package com.yunbao.common.adapter;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
|
||||
import com.yunbao.common.R;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MessageSayHiDialogTagListAdapter extends RecyclerView.Adapter<MessageSayHiDialogTagListAdapter.ViewHolder> {
|
||||
List<String> urls = new ArrayList<>();
|
||||
|
||||
public void setUrls(List<String> urls) {
|
||||
this.urls = urls;
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public MessageSayHiDialogTagListAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||
return new ViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.view_msg_chat_top_tag, parent, false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull MessageSayHiDialogTagListAdapter.ViewHolder holder, int position) {
|
||||
holder.show(urls.get(position));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
return urls.size();
|
||||
}
|
||||
|
||||
public static class ViewHolder extends RecyclerView.ViewHolder {
|
||||
TextView tagView;
|
||||
|
||||
public ViewHolder(@NonNull View itemView) {
|
||||
super(itemView);
|
||||
tagView = itemView.findViewById(R.id.tag);
|
||||
}
|
||||
|
||||
public void show(String tag) {
|
||||
tagView.setText(String.format("%s", tag));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.yunbao.common.bean;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public class MessageSayHiBean extends BaseModel{
|
||||
@SerializedName("user")
|
||||
private MessageUserInfoBean user;
|
||||
@SerializedName("model")
|
||||
private String model;
|
||||
@SerializedName("nextTime")
|
||||
private int nextTime;
|
||||
@SerializedName("status")
|
||||
private int status;
|
||||
|
||||
public MessageUserInfoBean getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
public void setUser(MessageUserInfoBean user) {
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public String getModel() {
|
||||
return model;
|
||||
}
|
||||
|
||||
public void setModel(String model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
public int getNextTime() {
|
||||
return nextTime;
|
||||
}
|
||||
|
||||
public void setNextTime(int nextTime) {
|
||||
this.nextTime = nextTime;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.yunbao.common.bean;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public class MessageSayHiStartBean extends BaseModel{
|
||||
@SerializedName("time")
|
||||
private int nextTime;
|
||||
|
||||
public int getNextTime() {
|
||||
return nextTime;
|
||||
}
|
||||
|
||||
public void setNextTime(int nextTime) {
|
||||
this.nextTime = nextTime;
|
||||
}
|
||||
}
|
||||
@@ -11,8 +11,27 @@ public class MessageUserInfoBean extends BaseModel{
|
||||
UserLevel level;
|
||||
@SerializedName("gift_num")
|
||||
int giftNum;
|
||||
@SerializedName("msg")
|
||||
String sayHiMsg;
|
||||
|
||||
int status; //0 需要跳转到 编辑资料页面
|
||||
String extras;
|
||||
|
||||
public String getExtras() {
|
||||
return extras;
|
||||
}
|
||||
|
||||
public String getSayHiMsg() {
|
||||
return sayHiMsg;
|
||||
}
|
||||
|
||||
public void setSayHiMsg(String sayHiMsg) {
|
||||
this.sayHiMsg = sayHiMsg;
|
||||
}
|
||||
|
||||
public void setExtras(String extras) {
|
||||
this.extras = extras;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.yunbao.common.dialog;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.lxj.xpopup.XPopup;
|
||||
import com.lxj.xpopup.enums.PopupAnimation;
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.bean.MessageUserInfoBean;
|
||||
import com.yunbao.common.custom.RatioRoundImageView;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.utils.DpUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.ViewUtils;
|
||||
|
||||
import io.rong.imkit.utils.RouteUtils;
|
||||
import io.rong.imlib.model.Conversation;
|
||||
|
||||
public class MessageChatNotifyDialog extends AbsDialogPositionPopupWindow {
|
||||
private MessageUserInfoBean liveBean;
|
||||
private DialogInterface.OnDismissListener onDismissListener;
|
||||
|
||||
private TextView anchorName;
|
||||
private RatioRoundImageView avatar;
|
||||
|
||||
|
||||
public MessageChatNotifyDialog(@NonNull Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public MessageChatNotifyDialog(@NonNull Context context, MessageUserInfoBean bean) {
|
||||
super(context);
|
||||
this.liveBean = bean;
|
||||
}
|
||||
|
||||
public MessageChatNotifyDialog setOnDismissListener(DialogInterface.OnDismissListener onDismissListener) {
|
||||
this.onDismissListener = onDismissListener;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void buildDialog(XPopup.Builder builder) {
|
||||
builder.positionByWindowCenter(true);
|
||||
builder.moveUpToKeyboard(false);
|
||||
builder.dismissOnTouchOutside(false);
|
||||
builder.dismissOnBackPressed(false);
|
||||
builder.isTouchThrough(true);
|
||||
builder.isClickThrough(true);
|
||||
builder.isCenterHorizontal(true);
|
||||
builder.hasShadowBg(false);
|
||||
builder.animationDuration(500);
|
||||
builder.popupAnimation(PopupAnimation.ScaleAlphaFromCenter);
|
||||
builder.offsetY(DpUtil.dp2px(60));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int bindLayoutId() {
|
||||
return R.layout.view_message_chat_new_notify;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onShow() {
|
||||
super.onShow();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate() {
|
||||
super.onCreate();
|
||||
findViewById(R.id.liveGo).setOnClickListener(v -> {
|
||||
Conversation.ConversationType type = Conversation.ConversationType.PRIVATE;
|
||||
RouteUtils.routeToConversationActivity(mContext, type, liveBean.getUser().getId() + "", null);
|
||||
});
|
||||
avatar = findViewById(R.id.avatar);
|
||||
anchorName = findViewById(R.id.anchorName);
|
||||
ImgLoader.display(mContext, liveBean.getUser().getAvatar(), avatar);
|
||||
anchorName.setText(liveBean.getUser().getUserNicename());
|
||||
if (StringUtil.isEmpty(liveBean.getExtras())) {
|
||||
((TextView) findViewById(R.id.description)).setText(liveBean.getUser().getSignature());
|
||||
} else {
|
||||
((TextView) findViewById(R.id.description)).setText(liveBean.getUser().getSignature());
|
||||
}
|
||||
new Handler(Looper.getMainLooper()).postDelayed(() -> {
|
||||
dismiss();
|
||||
if (onDismissListener != null) {
|
||||
onDismissListener.onDismiss(null);
|
||||
}
|
||||
}, 3000);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
package com.yunbao.common.dialog;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.util.Log;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.lxj.xpopup.XPopup;
|
||||
import com.lxj.xpopup.enums.PopupAnimation;
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.adapter.MessageSayHiDialogTagListAdapter;
|
||||
import com.yunbao.common.bean.MessageSayHiBean;
|
||||
import com.yunbao.common.bean.MessageUserInfoBean;
|
||||
import com.yunbao.common.custom.RatioRoundImageView;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
import com.yunbao.common.utils.DpUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.ViewUtils;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import io.rong.imkit.IMCenter;
|
||||
import io.rong.imkit.utils.RouteUtils;
|
||||
import io.rong.imlib.IRongCallback;
|
||||
import io.rong.imlib.RongIMClient;
|
||||
import io.rong.imlib.model.Conversation;
|
||||
import io.rong.imlib.model.Message;
|
||||
import io.rong.message.TextMessage;
|
||||
|
||||
public class MessageSayHiNotifyDialog extends AbsDialogCenterPopupWindow {
|
||||
private MessageUserInfoBean userInfoBean;
|
||||
private OnItemClickListener<String> onDismissListener;
|
||||
|
||||
private TextView anchorName;
|
||||
private RatioRoundImageView avatar;
|
||||
|
||||
|
||||
public MessageSayHiNotifyDialog(@NonNull Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public MessageSayHiNotifyDialog(@NonNull Context context, MessageUserInfoBean bean) {
|
||||
super(context);
|
||||
this.userInfoBean = bean;
|
||||
}
|
||||
|
||||
public MessageSayHiNotifyDialog setOnDismissListener(OnItemClickListener<String> onDismissListener) {
|
||||
this.onDismissListener = onDismissListener;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void buildDialog(XPopup.Builder builder) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int bindLayoutId() {
|
||||
return R.layout.view_message_say_hi_now_notify;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onShow() {
|
||||
super.onShow();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDismiss() {
|
||||
super.onDismiss();
|
||||
if (onDismissListener != null) {
|
||||
onDismissListener.onItemClick(userInfoBean.getUser().getId() + "", isSayHi ? 2 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
boolean isSayHi = false;
|
||||
|
||||
@Override
|
||||
protected void onCreate() {
|
||||
super.onCreate();
|
||||
findViewById(R.id.liveGo).setOnClickListener(v -> {
|
||||
isSayHi = true;
|
||||
Conversation.ConversationType type = Conversation.ConversationType.PRIVATE;
|
||||
RouteUtils.routeToConversationActivity(mContext, type, userInfoBean.getUser().getId() + "", null);
|
||||
sendMsg(userInfoBean.getSayHiMsg());
|
||||
dismiss();
|
||||
});
|
||||
avatar = findViewById(R.id.avatar);
|
||||
anchorName = findViewById(R.id.anchorName);
|
||||
ImgLoader.display(mContext, userInfoBean.getUser().getAvatar(), avatar);
|
||||
anchorName.setText(userInfoBean.getUser().getUserNicename());
|
||||
((TextView) findViewById(R.id.description)).setText(userInfoBean.getUser().getSignature());
|
||||
ViewUtils.findViewById(findViewById(R.id.age), R.id.tag, TextView.class).setText(String.format("%s%s",
|
||||
WordUtil.getNewString(R.string.dialog_message_say_hi_age)
|
||||
, userInfoBean.getInfo().getAge()));
|
||||
showTag();
|
||||
}
|
||||
|
||||
private void showTag() {
|
||||
List<String> tags = new ArrayList<>();
|
||||
tags.add(userInfoBean.getInfo().getSex() == 1 ? WordUtil.getNewString(R.string.sex_male) : WordUtil.getNewString(R.string.sex_female));
|
||||
if (!StringUtil.isEmpty(userInfoBean.getInfo().getCareer())) {
|
||||
tags.add(userInfoBean.getInfo().getCareer());
|
||||
}
|
||||
if (!StringUtil.isEmpty(userInfoBean.getInfo().getHeight()) && !userInfoBean.getInfo().getHeight().equals("0")) {
|
||||
tags.add(userInfoBean.getInfo().getHeight());
|
||||
}
|
||||
List<String> t;
|
||||
if (WordUtil.isNewZh()) {
|
||||
t = userInfoBean.getInfo().getCn_label();
|
||||
} else {
|
||||
t = userInfoBean.getInfo().getEn_label();
|
||||
}
|
||||
if (t != null) {
|
||||
for (String tag : t) {
|
||||
if (!StringUtil.isEmpty(tag)) {
|
||||
tags.add(tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MessageSayHiDialogTagListAdapter adapter = new MessageSayHiDialogTagListAdapter();
|
||||
RecyclerView avatarList = findViewById(R.id.tag_list);
|
||||
avatarList.setAdapter(adapter);
|
||||
adapter.setUrls(tags);
|
||||
}
|
||||
|
||||
private void sendMsg(String msg) {
|
||||
sendMessage(Conversation.ConversationType.PRIVATE, userInfoBean.getUser().getId() + "", TextMessage.obtain(userInfoBean.getSayHiMsg()));
|
||||
}
|
||||
|
||||
public static void sendMessage(Conversation.ConversationType type, String targetId, TextMessage tipsContent) {
|
||||
IMCenter.getInstance().insertOutgoingMessage(type, targetId, Message.SentStatus.SENT, tipsContent, System.currentTimeMillis(), new RongIMClient.ResultCallback<Message>() {
|
||||
@Override
|
||||
public void onSuccess(Message message) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(RongIMClient.ErrorCode e) {
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -47,6 +47,8 @@ import com.yunbao.common.bean.MedalAchievementModel;
|
||||
import com.yunbao.common.bean.MessageChatIsAnchor;
|
||||
import com.yunbao.common.bean.MessageChatUserBean;
|
||||
import com.yunbao.common.bean.MessageHiBean;
|
||||
import com.yunbao.common.bean.MessageSayHiBean;
|
||||
import com.yunbao.common.bean.MessageSayHiStartBean;
|
||||
import com.yunbao.common.bean.MessageUserInfoBean;
|
||||
import com.yunbao.common.bean.MsgSwitchDetailModel;
|
||||
import com.yunbao.common.bean.NewPeopleInfo;
|
||||
@@ -1239,4 +1241,15 @@ public interface PDLiveApi {
|
||||
Observable<ResponseModel<List<BaseModel>>> setOpenOff(
|
||||
@Query("open_off") int status
|
||||
);
|
||||
@GET("/api/public/?service=Pdlmsg.sendBefore")
|
||||
Observable<ResponseModel<MessageSayHiBean>> getMessageSayHiTimer(
|
||||
);
|
||||
@GET("/api/public/?service=Pdlmsg.sendAfter")
|
||||
Observable<ResponseModel<List<BaseModel>>> callBackMessageSayHiTimer(
|
||||
@Query("tuid") String toUid,
|
||||
@Query("type") int type
|
||||
);
|
||||
@GET("/api/public/?service=Pdlmsg.getTips")
|
||||
Observable<ResponseModel<MessageSayHiStartBean>> getMessageSayHiStartTimer(
|
||||
);
|
||||
}
|
||||
|
||||
@@ -50,6 +50,8 @@ import com.yunbao.common.bean.MedalAchievementModel;
|
||||
import com.yunbao.common.bean.MessageChatIsAnchor;
|
||||
import com.yunbao.common.bean.MessageChatUserBean;
|
||||
import com.yunbao.common.bean.MessageHiBean;
|
||||
import com.yunbao.common.bean.MessageSayHiBean;
|
||||
import com.yunbao.common.bean.MessageSayHiStartBean;
|
||||
import com.yunbao.common.bean.MessageUserInfoBean;
|
||||
import com.yunbao.common.bean.NobleRankHideUserListModel;
|
||||
import com.yunbao.common.bean.NobleTrumpetModel;
|
||||
@@ -3174,10 +3176,11 @@ public class LiveNetManager {
|
||||
}
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
public void updateFile(File file, HttpCallback<AvatarBean> callback) {
|
||||
MultipartBody.Part uploadFile = createUploadFile(file);
|
||||
API.get().pdLiveApi(mContext)
|
||||
.updateFile(uploadFile, CommonAppConfig.getInstance().getUid(), CommonAppConfig.getInstance().getToken())
|
||||
.updateFile(uploadFile, CommonAppConfig.getInstance().getUid(), CommonAppConfig.getInstance().getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Consumer<ResponseModel<AvatarBean>>() {
|
||||
@@ -3196,10 +3199,11 @@ public class LiveNetManager {
|
||||
}
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
public void updateFileToMp3(File file, HttpCallback<AvatarBean> callback) {
|
||||
MultipartBody.Part uploadFile = createUploadFile(file);
|
||||
API.get().pdLiveApi(mContext)
|
||||
.updateFileToMp3(uploadFile, CommonAppConfig.getInstance().getUid(), CommonAppConfig.getInstance().getToken())
|
||||
.updateFileToMp3(uploadFile, CommonAppConfig.getInstance().getUid(), CommonAppConfig.getInstance().getToken())
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new Consumer<ResponseModel<AvatarBean>>() {
|
||||
@@ -3218,6 +3222,7 @@ public class LiveNetManager {
|
||||
}
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
public void initUserInfo(
|
||||
int sex,
|
||||
String user_nicename,
|
||||
@@ -3264,6 +3269,70 @@ public class LiveNetManager {
|
||||
}
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
public void getMessageSayHiTimer(
|
||||
HttpCallback<MessageSayHiBean> callback) {
|
||||
API.get().pdLiveApi(mContext)
|
||||
.getMessageSayHiTimer()
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(roomMicStatusModelResponseModel -> {
|
||||
if (callback != null) {
|
||||
callback.onSuccess(roomMicStatusModelResponseModel.getData().getInfo());
|
||||
}
|
||||
}, new Consumer<Throwable>() {
|
||||
@Override
|
||||
public void accept(Throwable throwable) throws Exception {
|
||||
throwable.printStackTrace();
|
||||
if (callback != null) {
|
||||
callback.onError(mContext.getString(R.string.net_error));
|
||||
}
|
||||
}
|
||||
}).isDisposed();
|
||||
}
|
||||
public void getMessageSayHiStartTimer(
|
||||
HttpCallback<MessageSayHiStartBean> callback) {
|
||||
API.get().pdLiveApi(mContext)
|
||||
.getMessageSayHiStartTimer()
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(roomMicStatusModelResponseModel -> {
|
||||
if (callback != null) {
|
||||
callback.onSuccess(roomMicStatusModelResponseModel.getData().getInfo());
|
||||
}
|
||||
}, new Consumer<Throwable>() {
|
||||
@Override
|
||||
public void accept(Throwable throwable) throws Exception {
|
||||
throwable.printStackTrace();
|
||||
if (callback != null) {
|
||||
callback.onError(mContext.getString(R.string.net_error));
|
||||
}
|
||||
}
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
public void callBackMessageSayHiTimer(String toUid,
|
||||
int type,
|
||||
HttpCallback<List<BaseModel>> callback) {
|
||||
API.get().pdLiveApi(mContext)
|
||||
.callBackMessageSayHiTimer(toUid, type)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(roomMicStatusModelResponseModel -> {
|
||||
if (callback != null) {
|
||||
callback.onSuccess(roomMicStatusModelResponseModel.getData().getInfo());
|
||||
}
|
||||
}, new Consumer<Throwable>() {
|
||||
@Override
|
||||
public void accept(Throwable throwable) throws Exception {
|
||||
throwable.printStackTrace();
|
||||
if (callback != null) {
|
||||
callback.onError(mContext.getString(R.string.net_error));
|
||||
}
|
||||
}
|
||||
}).isDisposed();
|
||||
}
|
||||
|
||||
private MultipartBody.Part createUploadFile(File file) {
|
||||
RequestBody requestBody = RequestBody.create(MediaType.parse("multipart/form-data"), file);
|
||||
return MultipartBody.Part.createFormData("file", file.getName(), requestBody);
|
||||
|
||||
@@ -0,0 +1,282 @@
|
||||
package com.yunbao.common.message.content;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.yunbao.common.interfaces.OnSendMessageListener;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
|
||||
import io.rong.common.ParcelUtils;
|
||||
import io.rong.imkit.IMCenter;
|
||||
import io.rong.imlib.MessageTag;
|
||||
import io.rong.imlib.RongIMClient;
|
||||
import io.rong.imlib.model.Conversation;
|
||||
import io.rong.imlib.model.Message;
|
||||
import io.rong.imlib.model.MessageContent;
|
||||
|
||||
@MessageTag(value = "MessageChatCardContent", flag = MessageTag.ISPERSISTED)
|
||||
public class MessageChatCardContent extends MessageContent implements Parcelable {
|
||||
private String cover;
|
||||
private String title;
|
||||
private String avatar;
|
||||
private String userName;
|
||||
private String uid;
|
||||
private String type;
|
||||
private String extraData;
|
||||
|
||||
public static <T> void sendMessage(Conversation.ConversationType type, String targetId, MessageChatCardContent tipsContent, OnSendMessageListener<T> listener) {
|
||||
IMCenter.getInstance().insertOutgoingMessage(type, targetId, Message.SentStatus.SENT, tipsContent, System.currentTimeMillis(), new RongIMClient.ResultCallback<Message>() {
|
||||
@Override
|
||||
public void onSuccess(Message message) {
|
||||
if (listener != null) {
|
||||
listener.onSuccess(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(RongIMClient.ErrorCode e) {
|
||||
if (listener != null) {
|
||||
listener.onError(e.code, e.msg);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private MessageChatCardContent() {
|
||||
}
|
||||
|
||||
public MessageChatCardContent(byte[] data) {
|
||||
if (data == null) {
|
||||
return;
|
||||
}
|
||||
String jsonStr = null;
|
||||
try {
|
||||
jsonStr = new String(data, "UTF-8");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
}
|
||||
if (jsonStr == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
JSONObject jsonObj = new JSONObject(jsonStr);
|
||||
// 消息携带用户信息时, 自定义消息需添加下面代码
|
||||
if (jsonObj.has("user")) {
|
||||
setUserInfo(parseJsonToUserInfo(jsonObj.getJSONObject("user")));
|
||||
}
|
||||
// 用于群组聊天, 消息携带 @ 人信息时, 自定义消息需添加下面代码
|
||||
if (jsonObj.has("mentionedInfo")) {
|
||||
setMentionedInfo(parseJsonToMentionInfo(jsonObj.getJSONObject("mentionedInfo")));
|
||||
}
|
||||
// 将所有自定义变量从收到的 json 解析并赋值
|
||||
if (jsonObj.has("cover")) {
|
||||
cover = jsonObj.optString("cover");
|
||||
}
|
||||
if (jsonObj.has("title")) {
|
||||
title = jsonObj.optString("title");
|
||||
}
|
||||
if (jsonObj.has("avatar")) {
|
||||
avatar = jsonObj.optString("avatar");
|
||||
}
|
||||
if (jsonObj.has("userName")) {
|
||||
userName = jsonObj.optString("userName");
|
||||
}
|
||||
if (jsonObj.has("uid")) {
|
||||
uid = jsonObj.optString("uid");
|
||||
}
|
||||
if (jsonObj.has("type")) {
|
||||
type = jsonObj.getString("type");
|
||||
}
|
||||
if (jsonObj.has("extraData")) {
|
||||
extraData = jsonObj.optString("extraData");
|
||||
}
|
||||
} catch (JSONException e) {
|
||||
}
|
||||
}
|
||||
|
||||
public String getCover() {
|
||||
return cover;
|
||||
}
|
||||
|
||||
public MessageChatCardContent setCover(String cover) {
|
||||
this.cover = cover;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public MessageChatCardContent setTitle(String title) {
|
||||
this.title = title;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getAvatar() {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
public MessageChatCardContent setAvatar(String avatar) {
|
||||
this.avatar = avatar;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public MessageChatCardContent setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
public MessageChatCardContent setUid(String uid) {
|
||||
this.uid = uid;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public MessageChatCardContent setType(String type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getExtraData() {
|
||||
return extraData;
|
||||
}
|
||||
|
||||
public void setExtraData(String extra) {
|
||||
this.extraData = extra;
|
||||
}
|
||||
|
||||
/**
|
||||
* cover 封面地址
|
||||
* title 标题
|
||||
* avatar 头像地址
|
||||
* userName 昵称
|
||||
* uid 被分享的用户id
|
||||
* type:1 直播间 0社区
|
||||
* extra 如果是直播间就传直播间id
|
||||
*/
|
||||
protected MessageChatCardContent(Parcel in) {
|
||||
setCover(ParcelUtils.readFromParcel(in));
|
||||
setTitle(ParcelUtils.readFromParcel(in));
|
||||
setAvatar(ParcelUtils.readFromParcel(in));
|
||||
setUserName(ParcelUtils.readFromParcel(in));
|
||||
setUid(ParcelUtils.readFromParcel(in));
|
||||
setType(ParcelUtils.readFromParcel(in));
|
||||
setExtraData(ParcelUtils.readFromParcel(in));
|
||||
setExtra(ParcelUtils.readFromParcel(in));
|
||||
}
|
||||
|
||||
// 快速构建消息对象方法
|
||||
public static MessageChatCardContent obtain(
|
||||
String cover,
|
||||
String title,
|
||||
String avatar,
|
||||
String userName,
|
||||
String uid,
|
||||
String type,
|
||||
String extraData
|
||||
) {
|
||||
MessageChatCardContent msg = new MessageChatCardContent();
|
||||
msg.cover = cover;
|
||||
msg.title = title;
|
||||
msg.avatar = avatar;
|
||||
msg.userName = userName;
|
||||
msg.uid = uid;
|
||||
msg.type = type;
|
||||
msg.extraData = extraData;
|
||||
return msg;
|
||||
}
|
||||
|
||||
|
||||
public static final Creator<MessageChatCardContent> CREATOR = new Creator<MessageChatCardContent>() {
|
||||
@Override
|
||||
public MessageChatCardContent createFromParcel(Parcel in) {
|
||||
return new MessageChatCardContent(in);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MessageChatCardContent[] newArray(int size) {
|
||||
return new MessageChatCardContent[size];
|
||||
}
|
||||
};
|
||||
/**
|
||||
* cover 封面地址
|
||||
* title 标题
|
||||
* avatar 头像地址
|
||||
* userName 昵称
|
||||
* uid 被分享的用户id
|
||||
* type:1 直播间 0社区
|
||||
* extra 如果是直播间就传直播间id
|
||||
*/
|
||||
@Override
|
||||
public byte[] encode() {
|
||||
JSONObject jsonObj = new JSONObject();
|
||||
try {
|
||||
// 消息携带用户信息时, 自定义消息需添加下面代码
|
||||
if (getJSONUserInfo() != null) {
|
||||
jsonObj.putOpt("user", getJSONUserInfo());
|
||||
}
|
||||
// 用于群组聊天, 消息携带 @ 人信息时, 自定义消息需添加下面代码
|
||||
if (getJsonMentionInfo() != null) {
|
||||
jsonObj.putOpt("mentionedInfo", getJsonMentionInfo());
|
||||
}
|
||||
// 将所有自定义消息的内容,都序列化至 json 对象中
|
||||
jsonObj.put("cover", this.cover);
|
||||
jsonObj.put("title", this.title);
|
||||
jsonObj.put("avatar", this.avatar);
|
||||
jsonObj.put("userName", this.userName);
|
||||
jsonObj.put("uid", this.uid);
|
||||
jsonObj.put("type", this.type);
|
||||
jsonObj.put("extraData", this.extraData);
|
||||
} catch (JSONException e) {
|
||||
}
|
||||
|
||||
try {
|
||||
return jsonObj.toString().getBytes("UTF-8");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
/**
|
||||
* cover 封面地址
|
||||
* title 标题
|
||||
* avatar 头像地址
|
||||
* userName 昵称
|
||||
* uid 被分享的用户id
|
||||
* type:1 直播间 0社区
|
||||
* extra 如果是直播间就传直播间id
|
||||
*/
|
||||
@Override
|
||||
public void writeToParcel(@NonNull Parcel dest, int flags) {
|
||||
ParcelUtils.writeToParcel(dest, cover);
|
||||
ParcelUtils.writeToParcel(dest, title);
|
||||
ParcelUtils.writeToParcel(dest, avatar);
|
||||
ParcelUtils.writeToParcel(dest, userName);
|
||||
ParcelUtils.writeToParcel(dest, uid);
|
||||
ParcelUtils.writeToParcel(dest, type);
|
||||
ParcelUtils.writeToParcel(dest, extraData);
|
||||
ParcelUtils.writeToParcel(dest, getExtra());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.yunbao.common.provider;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.Spannable;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.message.content.MessageChatCardContent;
|
||||
import com.yunbao.common.message.content.MessageChatTipsContent;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import io.rong.imkit.conversation.messgelist.provider.BaseMessageItemProvider;
|
||||
import io.rong.imkit.model.UiMessage;
|
||||
import io.rong.imkit.widget.adapter.IViewProviderListener;
|
||||
import io.rong.imkit.widget.adapter.ViewHolder;
|
||||
import io.rong.imlib.model.MessageContent;
|
||||
|
||||
public class MessageChatCardItemProvider extends BaseMessageItemProvider<MessageChatCardContent> {
|
||||
private Context mContext;
|
||||
|
||||
public MessageChatCardItemProvider(Context mContext) {
|
||||
this.mContext = mContext;
|
||||
mConfig.showPortrait = false;
|
||||
mConfig.showSummaryWithName = false;
|
||||
mConfig.showContentBubble = false;
|
||||
mConfig.centerInHorizontal = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ViewHolder onCreateMessageContentViewHolder(ViewGroup parent, int viewType) {
|
||||
return ViewHolder.createViewHolder(mContext, parent, R.layout.view_message_chat_tip);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void bindMessageContentViewHolder(ViewHolder holder, ViewHolder parentHolder, MessageChatCardContent content, UiMessage uiMessage, int position, List<UiMessage> list, IViewProviderListener<UiMessage> listener) {
|
||||
holder.setText(R.id.tips, content.getAvatar());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean onItemClick(ViewHolder holder, MessageChatCardContent messageChatTipsContent, UiMessage uiMessage, int position, List<UiMessage> list, IViewProviderListener<UiMessage> listener) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isMessageViewType(MessageContent messageContent) {
|
||||
return messageContent instanceof MessageChatTipsContent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Spannable getSummarySpannable(Context context, MessageChatCardContent content) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -58,7 +58,14 @@ public class AppManager {
|
||||
* 获取当前显示Activity(堆栈中最后一个传入的activity)
|
||||
*/
|
||||
public Activity getLastActivity() {
|
||||
if(activityStack.isEmpty()){
|
||||
return null;
|
||||
}
|
||||
Activity activity = activityStack.lastElement();
|
||||
if(activity==null||activity.isFinishing()){
|
||||
activityStack.remove(activity);
|
||||
return getLastActivity();
|
||||
}
|
||||
return activity;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.yunbao.common.utils;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.yunbao.common.bean.MessageUserInfoBean;
|
||||
import com.yunbao.common.dialog.MessageChatNotifyDialog;
|
||||
import com.yunbao.common.http.base.HttpCallback;
|
||||
import com.yunbao.common.http.live.LiveNetManager;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class MessageChatNotifyManager {
|
||||
private static MessageChatNotifyManager instance;
|
||||
private List<MessageUserInfoBean> startListNotifyList = new ArrayList<>();
|
||||
|
||||
public static MessageChatNotifyManager getInstance() {
|
||||
if (instance == null) {
|
||||
instance = new MessageChatNotifyManager();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
public void push(Context mContext, MessageUserInfoBean userInfo) {
|
||||
if (startListNotifyList.isEmpty()) {
|
||||
startListNotifyList.add(userInfo);
|
||||
notifyLiveFlot(mContext);
|
||||
} else {
|
||||
startListNotifyList.add(userInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private void notifyLiveFlot(Context mContext) {
|
||||
if (startListNotifyList.iterator().hasNext()) {
|
||||
MessageUserInfoBean bean = startListNotifyList.iterator().next();
|
||||
new MessageChatNotifyDialog(AppManager.getInstance().getLastActivity(), bean).setOnDismissListener(dialog -> {
|
||||
startListNotifyList.remove(bean);
|
||||
if (startListNotifyList.iterator().hasNext()) {
|
||||
notifyLiveFlot(mContext);
|
||||
}
|
||||
}).showDialog();
|
||||
} else {
|
||||
ToastUtil.showDebug("Not Message");
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void push(Context mContext, String targetId, String content) {
|
||||
LiveNetManager.get(mContext)
|
||||
.getOtherInfo(targetId, new HttpCallback<MessageUserInfoBean>() {
|
||||
@Override
|
||||
public void onSuccess(MessageUserInfoBean data) {
|
||||
data.setExtras(content);
|
||||
push(mContext, data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,224 @@
|
||||
package com.yunbao.common.utils;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
|
||||
import com.yunbao.common.CommonAppContext;
|
||||
import com.yunbao.common.bean.BaseModel;
|
||||
import com.yunbao.common.bean.MessageSayHiBean;
|
||||
import com.yunbao.common.bean.MessageSayHiStartBean;
|
||||
import com.yunbao.common.bean.MessageUserInfoBean;
|
||||
import com.yunbao.common.dialog.MessageChatNotifyDialog;
|
||||
import com.yunbao.common.dialog.MessageSayHiNotifyDialog;
|
||||
import com.yunbao.common.http.base.HttpCallback;
|
||||
import com.yunbao.common.http.live.LiveNetManager;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
public class MessageSayHiNotifyManager {
|
||||
private static final String TAG = "打招呼定时器";
|
||||
private static MessageSayHiNotifyManager instance;
|
||||
private Timer timer = null;
|
||||
private boolean isInit = false;
|
||||
private boolean isStopShow = false;
|
||||
private boolean isShowDialog = false;
|
||||
private boolean isRun = false;
|
||||
private MessageSayHiBean hiBean;
|
||||
private List<MessageUserInfoBean> startListNotifyList = new ArrayList<>();
|
||||
private String lastActivity;
|
||||
|
||||
public static MessageSayHiNotifyManager getInstance() {
|
||||
if (instance == null) {
|
||||
instance = new MessageSayHiNotifyManager();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
public void start() {
|
||||
if (isInit) return;
|
||||
Log.i(TAG, "start: 启动定时器");
|
||||
isInit = true;
|
||||
LiveNetManager.get(AppManager.getInstance().getLastActivity())
|
||||
.getMessageSayHiStartTimer(new HttpCallback<MessageSayHiStartBean>() {
|
||||
@Override
|
||||
public void onSuccess(MessageSayHiStartBean data) {
|
||||
timer = new Timer();
|
||||
timer.schedule(createTask(), data.getNextTime() * 1000L);
|
||||
hiBean = new MessageSayHiBean();
|
||||
hiBean.setModel("init");
|
||||
hiBean.setNextTime(data.getNextTime());
|
||||
Log.i(TAG, "onSuccess: 初始化定时器,第一轮时间:" + data.getNextTime());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public boolean isInit() {
|
||||
return isInit;
|
||||
}
|
||||
|
||||
public synchronized void next() {
|
||||
Log.i(TAG, "next: 获取下一轮定时器信息&显示当前弹框");
|
||||
LiveNetManager.get(AppManager.getInstance().getLastActivity())
|
||||
.getMessageSayHiTimer(new HttpCallback<MessageSayHiBean>() {
|
||||
@Override
|
||||
public void onSuccess(MessageSayHiBean data) {
|
||||
if (data.getStatus() == 0) {
|
||||
Log.i(TAG, "onSuccess: 定时器为关,不再轮训");
|
||||
return;
|
||||
}
|
||||
data.setNextTime(RandomUtil.nextInt(30));
|
||||
hiBean = data;
|
||||
showDialog(data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
|
||||
}
|
||||
|
||||
void showDialog(MessageSayHiBean bean) {
|
||||
if (isShowDialog) {
|
||||
Log.i(TAG, "showDialog: 展示对话框中");
|
||||
return;
|
||||
}
|
||||
if (isStopShow) {
|
||||
Log.i(TAG, "showDialog: 非目标页面,停止展示");
|
||||
lastActivity = null;
|
||||
isRun = false;
|
||||
return;
|
||||
}
|
||||
String simpleName = AppManager.getInstance().getLastActivity().getClass().getSimpleName();
|
||||
if (simpleName.equals(lastActivity)) {
|
||||
Log.i(TAG, "showDialog: 与上次触发是同一个页面,不展示");
|
||||
isRun = false;
|
||||
return;
|
||||
}
|
||||
isShowDialog = true;
|
||||
Log.i(TAG, "showDialog: 打开本轮打招呼弹框");
|
||||
lastActivity = AppManager.getInstance().getLastActivity().getClass().getSimpleName();
|
||||
new MessageSayHiNotifyDialog(AppManager.getInstance().getLastActivity(), bean.getUser()).setOnDismissListener((userId, position) ->
|
||||
{
|
||||
Log.i(TAG, "showDialog: 关闭打招呼弹窗,uid:" + userId + ",是否点击打招呼:" + (position == 2));
|
||||
isShowDialog = false;
|
||||
LiveNetManager.get(AppManager.getInstance().getLastActivity())
|
||||
.callBackMessageSayHiTimer(userId, position, new HttpCallback<List<BaseModel>>() {
|
||||
@Override
|
||||
public void onSuccess(List<BaseModel> data) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Log.i(TAG, "onSuccess: 启动定时器,下一轮时间:" + bean.getNextTime() + "秒");
|
||||
timer = new Timer();
|
||||
timer.schedule(createTask(), bean.getNextTime() * 1000L);
|
||||
}).showDialog();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void reload() {
|
||||
if (!isInit) {
|
||||
Log.i(TAG, "reload: 未初始化");
|
||||
return;
|
||||
}
|
||||
if (hiBean == null) return;
|
||||
Log.i(TAG, "reload: 重载定时器,当前Activity:" + AppManager.getInstance().getLastActivity());
|
||||
isStopShow = false;
|
||||
if (timer != null) {
|
||||
timer.cancel();
|
||||
}
|
||||
timer = new Timer();
|
||||
timer.schedule(createTask(), hiBean.getNextTime() * 1000L);
|
||||
}
|
||||
|
||||
public void resetActivity() {
|
||||
lastActivity = null;
|
||||
Log.i(TAG, "resetActivity: 重置Activity记录");
|
||||
if (!isRun) {
|
||||
reload();
|
||||
}
|
||||
}
|
||||
|
||||
public void stop() {
|
||||
Log.i(TAG, "stop: 停止定时器,当前Activity:" + AppManager.getInstance().getLastActivity());
|
||||
isStopShow = true;
|
||||
if (timer != null) {
|
||||
timer.cancel();
|
||||
timer = null;
|
||||
}
|
||||
}
|
||||
|
||||
private TimerTask createTask() {
|
||||
isRun = true;
|
||||
return new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
timer.cancel();
|
||||
cancel();
|
||||
Log.i(TAG, "run: 定时器到点,启动下一轮");
|
||||
next();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean cancel() {
|
||||
isRun = false;
|
||||
Log.i(TAG, "cancel: 定时器内部取消");
|
||||
return super.cancel();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public void push(Context mContext, MessageUserInfoBean userInfo) {
|
||||
if (startListNotifyList.isEmpty()) {
|
||||
startListNotifyList.add(userInfo);
|
||||
notifyLiveFlot(mContext);
|
||||
} else {
|
||||
startListNotifyList.add(userInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private void notifyLiveFlot(Context mContext) {
|
||||
if (startListNotifyList.iterator().hasNext()) {
|
||||
MessageUserInfoBean bean = startListNotifyList.iterator().next();
|
||||
new MessageChatNotifyDialog(AppManager.getInstance().getLastActivity(), bean).setOnDismissListener(dialog -> {
|
||||
startListNotifyList.remove(bean);
|
||||
if (startListNotifyList.iterator().hasNext()) {
|
||||
notifyLiveFlot(mContext);
|
||||
}
|
||||
}).showDialog();
|
||||
} else {
|
||||
ToastUtil.showDebug("Not Message");
|
||||
}
|
||||
}
|
||||
|
||||
public synchronized void push(Context mContext, String targetId, String content) {
|
||||
LiveNetManager.get(mContext)
|
||||
.getOtherInfo(targetId, new HttpCallback<MessageUserInfoBean>() {
|
||||
@Override
|
||||
public void onSuccess(MessageUserInfoBean data) {
|
||||
data.setExtras(content);
|
||||
push(mContext, data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -54,6 +54,9 @@ public abstract class AbsViewHolder implements LifeCycleListener {
|
||||
public View getContentView() {
|
||||
return mContentView;
|
||||
}
|
||||
public ViewGroup getRootView(){
|
||||
return mParentView;
|
||||
}
|
||||
|
||||
protected boolean canClick() {
|
||||
return ClickUtil.canClick();
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:width="68dp" android:height="37dp">
|
||||
<shape android:shape="rectangle">
|
||||
<gradient android:type="linear" android:useLevel="true" android:startColor="#ffff83c6" android:endColor="#ffeb6fff" android:angle="180" />
|
||||
<corners android:topLeftRadius="15dp" android:topRightRadius="15dp" android:bottomLeftRadius="15dp" android:bottomRightRadius="15dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:width="68dp" android:height="37dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#ffdfdfdf" />
|
||||
<corners android:topLeftRadius="15dp" android:topRightRadius="15dp" android:bottomLeftRadius="15dp" android:bottomRightRadius="15dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:width="68dp" android:height="37dp">
|
||||
<shape android:shape="rectangle">
|
||||
<stroke android:width="1dp" android:color="#ff777777" />
|
||||
<corners android:topLeftRadius="15dp" android:topRightRadius="15dp" android:bottomLeftRadius="15dp" android:bottomRightRadius="15dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
9
common/src/main/res/drawable/bg_msg_list_search.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:width="235dp" android:height="44dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#ffffffff" />
|
||||
<corners android:topLeftRadius="15dp" android:topRightRadius="15dp" android:bottomLeftRadius="15dp" android:bottomRightRadius="15dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:width="68dp" android:height="37dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#ffffffff" />
|
||||
<corners android:topLeftRadius="15dp" android:topRightRadius="15dp" android:bottomLeftRadius="15dp" android:bottomRightRadius="15dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
9
common/src/main/res/drawable/view_chat_top_tag.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:width="63dp" android:height="23dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#fffff6e8" />
|
||||
<corners android:topLeftRadius="20dp" android:topRightRadius="20dp" android:bottomLeftRadius="20dp" android:bottomRightRadius="20dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lt_nodata_msg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/ic_addressbook_not_search" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView12"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/not_data_message_address_book_list" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lt_nodata_msg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/ic_message_not_search" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView12"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/not_data_message_chat_list_search" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
28
common/src/main/res/layout/view_layout_msg.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lt_nodata_msg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/ic_message_not_chat_list" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/not_data_message_chat_list" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
27
common/src/main/res/layout/view_layout_msg_not_search.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/lt_nodata_msg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:visibility="visible">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/ic_message_not_search" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView12"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/not_data_message_chat_list_search" />
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
65
common/src/main/res/layout/view_message_chat_new_notify.xml
Normal file
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="329dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="81dp"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:background="@mipmap/bg_message_push">
|
||||
|
||||
<com.yunbao.common.custom.RatioRoundImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="18dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:layout_marginBottom="15dp"
|
||||
android:src="@mipmap/chat_head_mo"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:ri_ratio="0.5"
|
||||
app:riv_oval="true" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/anchorName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="6dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="TextView"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="13sp"
|
||||
app:layout_constraintStart_toEndOf="@+id/avatar"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/description"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:text="@string/main_anchor_live_notify_info"
|
||||
android:textColor="#CCFFFFFF"
|
||||
android:textSize="11sp"
|
||||
app:layout_constraintEnd_toStartOf="@+id/liveGo"
|
||||
app:layout_constraintStart_toStartOf="@+id/anchorName"
|
||||
app:layout_constraintTop_toBottomOf="@+id/anchorName"
|
||||
tools:text="123" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/liveGo"
|
||||
android:layout_width="68dp"
|
||||
android:layout_height="37dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:background="@drawable/bg_view_msg_chat_notify_btn"
|
||||
android:gravity="center"
|
||||
android:text="@string/dialog_message_chat_notify_btn"
|
||||
android:textColor="#333333"
|
||||
android:textSize="13sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
130
common/src/main/res/layout/view_message_say_hi_now_notify.xml
Normal file
@@ -0,0 +1,130 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="81dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:src="@mipmap/bg_dialog_say_hi"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
</ImageView>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/avatarLayout"
|
||||
android:layout_width="104dp"
|
||||
android:layout_height="104dp"
|
||||
android:layout_marginTop="15dp"
|
||||
android:background="@mipmap/bg_dialog_say_hi_avatar"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
>
|
||||
|
||||
<com.yunbao.common.custom.RatioRoundImageView
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="93dp"
|
||||
android:layout_height="93dp"
|
||||
android:src="@mipmap/chat_head_mo"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:ri_ratio="1"
|
||||
app:riv_oval="true" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/anchorName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="TextView"
|
||||
android:textColor="#333333"
|
||||
android:textSize="20sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/avatarLayout" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/description"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:text="@string/main_anchor_live_notify_info"
|
||||
android:textColor="#777777"
|
||||
android:gravity="center"
|
||||
android:textSize="11sp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/liveGo"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
tools:text="123" />
|
||||
|
||||
<include
|
||||
android:id="@+id/age"
|
||||
layout="@layout/view_msg_chat_top_tag"
|
||||
android:layout_width="70dp"
|
||||
android:layout_height="23dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/tag_list_layout"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/tag_list_layout"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="25dp"
|
||||
android:layout_marginStart="24dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/description"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:gravity="center"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:orientation="horizontal">
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/tag_list"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:orientation="horizontal"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||
tools:itemCount="3"
|
||||
tools:listitem="@layout/view_msg_chat_top_tag" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/liveGo"
|
||||
android:layout_width="168dp"
|
||||
android:layout_height="54dp"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:background="@drawable/bg_msg_address_book_user_btn_fan"
|
||||
android:gravity="center"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent" >
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:src="@mipmap/bg_dialog_say_hi_btn"
|
||||
android:layout_height="wrap_content"/>
|
||||
<TextView
|
||||
android:text="@string/dialog_message_say_hi_btn"
|
||||
android:textColor="#FFFFFF"
|
||||
android:layout_marginStart="5dp"
|
||||
android:textSize="13sp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
25
common/src/main/res/layout/view_msg_chat_top_tag.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_marginEnd="5dp"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<TextView
|
||||
android:gravity="start|center"
|
||||
android:paddingStart="6dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:textColor="#C38764"
|
||||
android:textSize="11sp"
|
||||
android:id="@+id/tag"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/view_chat_top_tag"
|
||||
android:scaleType="centerCrop"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="#标签" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
BIN
common/src/main/res/mipmap-xxhdpi/bg_dialog_say_hi.png
Normal file
|
After Width: | Height: | Size: 169 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/bg_dialog_say_hi_avatar.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/bg_dialog_say_hi_btn.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/bg_message_push.png
Normal file
|
After Width: | Height: | Size: 149 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/ic_addressbook_not_search.png
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/ic_message_not_chat_list.png
Normal file
|
After Width: | Height: | Size: 151 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/ic_message_not_search.png
Normal file
|
After Width: | Height: | Size: 85 KiB |
@@ -1451,4 +1451,12 @@ Limited ride And limited avatar frame</string>
|
||||
|
||||
<string name="back_community_sure">Sure</string>
|
||||
<string name="activity_msg_chat_input_hint">Say something</string>
|
||||
|
||||
<string name="not_data_message_chat_list">暫無新消息哦~</string>
|
||||
<string name="not_data_message_chat_list_search">暫無搜索結果,換個詞試試吧~~</string>
|
||||
<string name="not_data_message_address_book_list">當前列表為空~</string>
|
||||
<string name="not_data_message_address_book_list_search">暫無搜索結果,換個詞試試吧~</string>
|
||||
<string name="dialog_message_say_hi_age">Age:</string>
|
||||
<string name="dialog_message_say_hi_btn">Say Hi</string>
|
||||
<string name="dialog_message_chat_notify_btn">Reply</string>
|
||||
</resources>
|
||||
|
||||
@@ -1449,4 +1449,12 @@
|
||||
|
||||
<string name="back_community_sure">確定</string>
|
||||
<string name="activity_msg_chat_input_hint">說點什麼</string>
|
||||
|
||||
<string name="not_data_message_chat_list">暫無新消息哦~</string>
|
||||
<string name="not_data_message_chat_list_search">暫無搜索結果,換個詞試試吧~~</string>
|
||||
<string name="not_data_message_address_book_list">當前列表為空~</string>
|
||||
<string name="not_data_message_address_book_list_search">暫無搜索結果,換個詞試試吧~</string>
|
||||
<string name="dialog_message_say_hi_age">年齡:</string>
|
||||
<string name="dialog_message_say_hi_btn">打招呼</string>
|
||||
<string name="dialog_message_chat_notify_btn">回復</string>
|
||||
</resources>
|
||||
|
||||
@@ -1448,4 +1448,13 @@
|
||||
|
||||
<string name="back_community_sure">確定</string>
|
||||
<string name="activity_msg_chat_input_hint">說點什麼</string>
|
||||
|
||||
<string name="not_data_message_chat_list">暫無新消息哦~</string>
|
||||
<string name="not_data_message_chat_list_search">暫無搜索結果,換個詞試試吧~~</string>
|
||||
<string name="not_data_message_address_book_list">當前列表為空~</string>
|
||||
<string name="not_data_message_address_book_list_search">暫無搜索結果,換個詞試試吧~</string>
|
||||
<string name="dialog_message_say_hi_age">年齡:</string>
|
||||
<string name="dialog_message_say_hi_btn">打招呼</string>
|
||||
<string name="dialog_message_chat_notify_btn">回復</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -1445,4 +1445,12 @@
|
||||
|
||||
<string name="back_community_sure">確定</string>
|
||||
<string name="activity_msg_chat_input_hint">說點什麼</string>
|
||||
|
||||
<string name="not_data_message_chat_list">暫無新消息哦~</string>
|
||||
<string name="not_data_message_chat_list_search">暫無搜索結果,換個詞試試吧~~</string>
|
||||
<string name="not_data_message_address_book_list">當前列表為空~</string>
|
||||
<string name="not_data_message_address_book_list_search">暫無搜索結果,換個詞試試吧~</string>
|
||||
<string name="dialog_message_say_hi_age">年齡:</string>
|
||||
<string name="dialog_message_say_hi_btn">打招呼</string>
|
||||
<string name="dialog_message_chat_notify_btn">回復</string>
|
||||
</resources>
|
||||
|
||||
@@ -1455,4 +1455,12 @@ Limited ride And limited avatar frame</string>
|
||||
|
||||
<string name="back_community_sure">Sure</string>
|
||||
<string name="activity_msg_chat_input_hint">Say something</string>
|
||||
|
||||
<string name="not_data_message_chat_list">暫無新消息哦~</string>
|
||||
<string name="not_data_message_chat_list_search">暫無搜索結果,換個詞試試吧~~</string>
|
||||
<string name="not_data_message_address_book_list">當前列表為空~</string>
|
||||
<string name="not_data_message_address_book_list_search">暫無搜索結果,換個詞試試吧~</string>
|
||||
<string name="dialog_message_say_hi_age">年齡:</string>
|
||||
<string name="dialog_message_say_hi_btn">打招呼</string>
|
||||
<string name="dialog_message_chat_notify_btn">回復</string>
|
||||
</resources>
|
||||
|
||||