MessageItemProvider
package: com.paradigm.botkit.message
Inherits from: java.lang.Object
Overview
消息展示单元视图生成器的基类,各中类型的消息单元视图生成器都应从此类派生
Methods
public View createMessageView(Context context, Drawable portraitUser, Drawable portraitRobot)
参数 |
类型 |
说明 |
context |
Context |
应用上下文 |
portraitUser |
Drawable |
用户头像 |
portraitRobot |
Drawable |
客服头像 |
public void bindMessageView(View v, Message message, String timeString)
参数 |
类型 |
说明 |
v |
View |
消息展示单元视图 |
message |
Message |
消息数据模型 |
timeString |
String |
消息时间字符串 |
public abstract View createContentView(Context context)
参数 |
类型 |
说明 |
context |
Context |
应用上下文 |
public abstract void bindContentView(View v, Message message);
参数 |
类型 |
说明 |
v |
View |
消息展示单元视图 |
message |
Message |
消息数据模型 |
public boolean isShowContentBubble()
参数 |
类型 |
说明 |
返回值 |
boolean |
是否显示气泡 |