public class UnknownMessageItemProvider extends BaseNotificationMessageItemProvider<UnknownMessage>
Constructor and Description |
---|
UnknownMessageItemProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
bindMessageContentViewHolder(ViewHolder holder,
ViewHolder parentHolder,
UnknownMessage message,
UiMessage uiMessage,
int position,
java.util.List<UiMessage> list,
IViewProviderListener<UiMessage> listener) |
android.text.Spannable |
getSummarySpannable(android.content.Context context,
UnknownMessage unknownMessage)
在会话列表页某条会话最后一条消息为该类型消息时,会话里需要展示的内容。
比如: 图片消息在会话里需要展示为"图片",那返回对应的字符串资源即可。
|
protected boolean |
isMessageViewType(MessageContent messageContent) |
protected ViewHolder |
onCreateMessageContentViewHolder(android.view.ViewGroup parent,
int viewType) |
bindViewHolder, isItemViewType, isSummaryType, onCreateViewHolder, showSummaryWithName
protected ViewHolder onCreateMessageContentViewHolder(android.view.ViewGroup parent, int viewType)
onCreateMessageContentViewHolder
in class BaseNotificationMessageItemProvider<UnknownMessage>
protected void bindMessageContentViewHolder(ViewHolder holder, ViewHolder parentHolder, UnknownMessage message, UiMessage uiMessage, int position, java.util.List<UiMessage> list, IViewProviderListener<UiMessage> listener)
bindMessageContentViewHolder
in class BaseNotificationMessageItemProvider<UnknownMessage>
protected boolean isMessageViewType(MessageContent messageContent)
isMessageViewType
in class BaseNotificationMessageItemProvider<UnknownMessage>
public android.text.Spannable getSummarySpannable(android.content.Context context, UnknownMessage unknownMessage)
IConversationSummaryProvider
context
- 上下文unknownMessage
- 消息内容