私聊违规提示优化
This commit is contained in:
BIN
nim_uikit/res/drawable-xhdpi/nim_ic_failed.png
Normal file
BIN
nim_uikit/res/drawable-xhdpi/nim_ic_failed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 828 B |
@@ -104,8 +104,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/message_item_alert"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginLeft="2dp"
|
||||
android:layout_marginRight="2dp"
|
||||
|
@@ -2,6 +2,7 @@ package com.netease.nim.uikit.business.session.viewholder;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.Gravity;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
@@ -35,11 +36,7 @@ import com.netease.nimlib.sdk.msg.model.IMMessage;
|
||||
*/
|
||||
public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItemFetchLoadAdapter, BaseViewHolder, IMMessage> {
|
||||
|
||||
public MsgViewHolderBase(BaseMultiItemFetchLoadAdapter adapter) {
|
||||
super(adapter);
|
||||
this.adapter = adapter;
|
||||
}
|
||||
|
||||
public ImageView nameIconView;
|
||||
// basic
|
||||
protected View view;
|
||||
protected Context context;
|
||||
@@ -56,15 +53,16 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem
|
||||
protected FrameLayout contentContainer;
|
||||
protected LinearLayout nameContainer;
|
||||
protected TextView readReceiptTextView;
|
||||
|
||||
private HeadImageView avatarLeft;
|
||||
private HeadImageView avatarRight;
|
||||
|
||||
public ImageView nameIconView;
|
||||
|
||||
// contentContainerView的默认长按事件。如果子类需要不同的处理,可覆盖onItemLongClick方法
|
||||
// 但如果某些子控件会拦截触摸消息,导致contentContainer收不到长按事件,子控件也可在inflate时重新设置
|
||||
protected View.OnLongClickListener longClickListener;
|
||||
private HeadImageView avatarLeft;
|
||||
private HeadImageView avatarRight;
|
||||
|
||||
public MsgViewHolderBase(BaseMultiItemFetchLoadAdapter adapter) {
|
||||
super(adapter);
|
||||
this.adapter = adapter;
|
||||
}
|
||||
|
||||
/// -- 以下接口可由子类覆盖或实现
|
||||
// 返回具体消息类型内容展示区域的layout res id
|
||||
@@ -233,6 +231,9 @@ public abstract class MsgViewHolderBase extends RecyclerViewHolder<BaseMultiItem
|
||||
* 设置消息发送状态
|
||||
*/
|
||||
private void setStatus() {
|
||||
String AntiSpamRes = message.getYidunAntiSpamRes();
|
||||
//todo 要升级安全通道新版才有数据
|
||||
Log.d("setStatus", "AntiSpamRes=" + AntiSpamRes);
|
||||
MsgStatusEnum status = message.getStatus();
|
||||
switch (status) {
|
||||
case fail:
|
||||
|
Reference in New Issue
Block a user