接口 IChatMessageItemSet
-
- 所有已知实现类:
EaseChatMessageListLayout
public interface IChatMessageItemSet
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidhideChatReceiveAvatar(boolean hide)Hide receiver's avatar, default is falsevoidhideChatSendAvatar(boolean hide)Hide sender's avatar, default is falsevoidsetAvatarDefaultSrc(android.graphics.drawable.Drawable src)Set default avatarvoidsetAvatarShapeType(int shapeType)Set avatar shapevoidsetItemReceiverBackground(android.graphics.drawable.Drawable bgDrawable)Set the receiver's backgroundvoidsetItemSenderBackground(android.graphics.drawable.Drawable bgDrawable)Set the background of the item sendervoidsetItemShowType(EaseChatMessageListLayout.ShowType type)Set the display style of the chat listvoidsetItemTextColor(int textColor)Set text message font colorvoidsetItemTextSize(int textSize)Set text message font sizevoidsetTimeBackground(android.graphics.drawable.Drawable bgDrawable)Set the timeline backgroundvoidsetTimeTextColor(int textColor)Set the timeline text colorvoidsetTimeTextSize(int textSize)Set the timeline text sizevoidshowNickname(boolean showNickname)Whether to show nickname
-
-
-
方法详细资料
-
setAvatarDefaultSrc
void setAvatarDefaultSrc(android.graphics.drawable.Drawable src)
Set default avatar- 参数:
src-
-
setAvatarShapeType
void setAvatarShapeType(int shapeType)
Set avatar shape- 参数:
shapeType-
-
showNickname
void showNickname(boolean showNickname)
Whether to show nickname- 参数:
showNickname-
-
setItemSenderBackground
void setItemSenderBackground(android.graphics.drawable.Drawable bgDrawable)
Set the background of the item sender- 参数:
bgDrawable-
-
setItemReceiverBackground
void setItemReceiverBackground(android.graphics.drawable.Drawable bgDrawable)
Set the receiver's background- 参数:
bgDrawable-
-
setItemTextSize
void setItemTextSize(int textSize)
Set text message font size- 参数:
textSize-
-
setItemTextColor
void setItemTextColor(@ColorInt int textColor)Set text message font color- 参数:
textColor-
-
setTimeTextSize
void setTimeTextSize(int textSize)
Set the timeline text size- 参数:
textSize-
-
setTimeTextColor
void setTimeTextColor(int textColor)
Set the timeline text color- 参数:
textColor-
-
setTimeBackground
void setTimeBackground(android.graphics.drawable.Drawable bgDrawable)
Set the timeline background- 参数:
bgDrawable-
-
setItemShowType
void setItemShowType(EaseChatMessageListLayout.ShowType type)
Set the display style of the chat list- 参数:
type-
-
hideChatReceiveAvatar
void hideChatReceiveAvatar(boolean hide)
Hide receiver's avatar, default is false- 参数:
hide-
-
hideChatSendAvatar
void hideChatSendAvatar(boolean hide)
Hide sender's avatar, default is false- 参数:
hide-
-
-