public class IMChattingPageUI
extends BaseAdvice
Constructor and Description |
---|
IMChattingPageUI(Pointcut pointcut) |
Modifier and Type | Method and Description |
---|---|
int |
getChattingBackgroundResId()
设置背景图片的资源文件
|
View |
getChattingFragmentCustomViewAdvice(Fragment fragment,
Intent intent)
NOT FOR OPENIM
|
int |
getCustomChattingInputEditTextHeight()
返回自定义聊天窗口消息输入框的高度
|
int |
getCustomChattingReplyBarHeight()
返回自定义聊天窗口底部消息发送框的高度
|
int |
getCustomLeftLinkTextColorId()
返回自定义的接收消息超链接文字颜色的资源Id
|
int |
getCustomLeftTextColorId()
返回收到消息的文字颜色
|
int |
getCustomRightLinkTextColorId()
返回自定义的发送消息的超链接文字颜色的资源Id
|
int |
getCustomRightTextColorId()
返回自己发送的文字颜色
|
View |
getCustomTitleView(Fragment fragment,
Context context,
LayoutInflater inflater,
YWConversation conversation)
聊天窗口的自定义标题 的view
|
int |
getDefaultHeadImageResId()
返回默认头像资源Id
|
int |
getDefaultRoomHeadImageResId()
返回讨论组默认图标资源Id
|
int |
getDefaultTribeHeadImageResId()
返回群默认图标资源Id
|
int |
getExpandViewCheckedBgResId()
返回"+号"按钮选中图标背景资源Id
|
int |
getExpandViewUnCheckedBgResId()
返回"+号"按钮取消选中图标背景资源Id
|
int |
getFaceViewBgResId()
返回表情按钮图标背景资源Id
|
View |
getGoneViewWhenSendBtnVisible()
返回当发送按钮显示时需要隐藏的按钮
|
java.lang.String |
getImageSavePath(Fragment fragment,
YWMessage message)
自定义图片的本地保存地址
|
int |
getKeyboardViewBgResId()
返回键盘按钮图标资源Id
|
int |
getLeftCustomMsgBackgroundResId(YWConversation conversation)
Deprecated.
|
int |
getLeftGeoMsgBackgroundResId(YWConversation conversation)
Deprecated.
|
int |
getLeftImageMsgBackgroundResId()
Deprecated.
|
int |
getLeftTextMsgBackgroundResId()
Deprecated.
|
int |
getMsgBackgroundResId(YWConversation conversation,
YWMessage message,
boolean self)
设置消息气泡背景图,需要.9图
|
int |
getRightCustomMsgBackgroundResId(YWConversation conversation)
Deprecated.
|
int |
getRightGeoMsgBackgroundResId(YWConversation conversation)
Deprecated.
|
int |
getRightImageMsgBackgroundResId()
Deprecated.
|
int |
getRightTextMsgBackgroundResId()
Deprecated.
|
float |
getRoundRadiusDps()
设置聊天界面图片圆角的边角半径的长度(单位:dp)
|
int |
getRoundRectRadius()
返回设置圆角矩形的圆角半径大小
|
int |
getSendButtonBgId()
返回发送按钮背景资源Id
|
int |
getVoiceViewBgResId()
返回语音按钮图标背景资源Id
|
void |
init(Fragment f,
YWConversation conversation) |
boolean |
isNeedRoundRectHead()
是否需要圆角矩形的头像
|
boolean |
isUseChattingCustomViewAdvice(Fragment fragment,
Intent intent)
NOT FOR OPENIM
|
void |
modifyLeftItemParentViewAfterSetValue(YWMessage msg,
RelativeLayout leftItemParentView,
Fragment fragment,
YWConversation conversation)
getView方法内,返回View之前,对[聊天界面的左边消息item的View]做最后调整。
|
void |
modifyRightItemParentViewAfterSetValue(YWMessage msg,
RelativeLayout rightItemParentView,
Fragment fragment,
YWConversation conversation)
getView方法内,返回View之前,对[聊天界面的右边消息item的View]做最后调整。
|
boolean |
needHideChattingReplyBar()
是否隐藏聊天窗口底部的消息发送框,默认为不隐藏
|
boolean |
needHideFaceView()
是否隐藏表情发送入口,默认不隐藏
|
boolean |
needHideTitleView(Fragment fragment,
YWConversation conversation)
是否隐藏聊天窗口标题栏
|
boolean |
needHideVoiceView()
是否隐藏语音发送入口,默认不隐藏
|
boolean |
needRoundChattingImage()
设置是否需要将聊天界面的图片设置为圆角
|
void |
onActivityCreated(Bundle savedInstanceState,
Fragment fragment,
YWConversation conversation) |
boolean |
onBackPressed(Fragment f) |
void |
onDestory() |
void |
onDestroy(Fragment fragment,
YWConversation conversation) |
boolean |
onImagePreviewTitleButtonClick(Fragment fragment,
YWMessage message)
自定义图片预览页面顶部titlebar右侧按钮的点击行为。
|
void |
onResume(Fragment fragment,
YWConversation conversation) |
void |
onStart(Fragment f,
Intent intent,
ChattingDetailPresenter presenter) |
Bitmap |
processBitmapOfLeftImageMsg(Bitmap input)
用于更灵活地加工[左边图片消息]的Bitmap用于显示,SDK内部会缓存之,后续直接使用缓存的Bitmap显示。例如:对图像进行[裁减],[圆角处理]等等
重要:使用该方法时:
1.请将
needRoundChattingImage() 设为return false(不裁剪圆角),两者是互斥关系
2.建议将getLeftImageMsgBackgroundResId() 设为return-1(背景透明) |
Bitmap |
processBitmapOfRightImageMsg(Bitmap input)
用于更灵活地加工[右边图片消息]的Bitmap用于显示,SDK内部会缓存之,后续直接使用缓存的Bitmap显示。例如:对图像进行[裁减],[圆角处理]等等
重要:使用该方法时:
1.请将
needRoundChattingImage() 设为return false(不裁剪圆角),两者是互斥关系
2.建议将getRightImageMsgBackgroundResId() 设为return-1(背景透明) |
public int getMsgBackgroundResId(YWConversation conversation, YWMessage message, boolean self)
conversation
- 当前消息所在会话message
- 需要设置背景的消息self
- 是否是自己发送的消息,true:自己发送的消息, false:别人发送的消息public int getChattingBackgroundResId()
public boolean needRoundChattingImage()
public float getRoundRadiusDps()
public Bitmap processBitmapOfLeftImageMsg(Bitmap input)
needRoundChattingImage()
设为return false(不裁剪圆角),两者是互斥关系
2.建议将getLeftImageMsgBackgroundResId()
设为return-1(背景透明)input
- 网络获取的聊天图片public Bitmap processBitmapOfRightImageMsg(Bitmap input)
needRoundChattingImage()
设为return false(不裁剪圆角),两者是互斥关系
2.建议将getRightImageMsgBackgroundResId()
设为return-1(背景透明)input
- 网络获取的聊天图片public View getCustomTitleView(Fragment fragment, Context context, LayoutInflater inflater, YWConversation conversation)
fragment
- context
- inflater
- conversation
- public boolean needHideTitleView(Fragment fragment, YWConversation conversation)
fragment
- 聊天窗口fragmentconversation
- 当前聊天窗口对应的会话public boolean onImagePreviewTitleButtonClick(Fragment fragment, YWMessage message)
public java.lang.String getImageSavePath(Fragment fragment, YWMessage message)
fragment
- 聊天窗口fragmentmessage
- 图片消息public int getDefaultHeadImageResId()
public void modifyLeftItemParentViewAfterSetValue(YWMessage msg, RelativeLayout leftItemParentView, Fragment fragment, YWConversation conversation)
msg
- leftItemParentView
- fragment
- conversation
- public boolean isNeedRoundRectHead()
getRoundRectRadius()
给出圆角的设置半径,否则无圆角效果public void modifyRightItemParentViewAfterSetValue(YWMessage msg, RelativeLayout rightItemParentView, Fragment fragment, YWConversation conversation)
msg
- rightItemParentView
- fragment
- conversation
- public int getRoundRectRadius()
public int getDefaultTribeHeadImageResId()
public int getDefaultRoomHeadImageResId()
public boolean needHideChattingReplyBar()
public boolean needHideFaceView()
public boolean needHideVoiceView()
public int getCustomChattingReplyBarHeight()
public int getCustomChattingInputEditTextHeight()
public View getGoneViewWhenSendBtnVisible()
public int getCustomLeftTextColorId()
public int getCustomRightTextColorId()
public View getChattingFragmentCustomViewAdvice(Fragment fragment, Intent intent)
public boolean isUseChattingCustomViewAdvice(Fragment fragment, Intent intent)
public int getLeftTextMsgBackgroundResId()
getMsgBackgroundResId(YWConversation, YWMessage, boolean)
public int getLeftImageMsgBackgroundResId()
getMsgBackgroundResId(YWConversation, YWMessage, boolean)
public int getLeftGeoMsgBackgroundResId(YWConversation conversation)
getMsgBackgroundResId(YWConversation, YWMessage, boolean)
conversation
- public int getLeftCustomMsgBackgroundResId(YWConversation conversation)
getMsgBackgroundResId(YWConversation, YWMessage, boolean)
conversation
- public int getRightTextMsgBackgroundResId()
getMsgBackgroundResId(YWConversation, YWMessage, boolean)
public int getRightImageMsgBackgroundResId()
getMsgBackgroundResId(YWConversation, YWMessage, boolean)
public int getRightGeoMsgBackgroundResId(YWConversation conversation)
getMsgBackgroundResId(YWConversation, YWMessage, boolean)
conversation
- public int getRightCustomMsgBackgroundResId(YWConversation conversation)
getMsgBackgroundResId(YWConversation, YWMessage, boolean)
conversation
- public void init(Fragment f, YWConversation conversation)
public boolean onBackPressed(Fragment f)
public void onDestory()
public void onStart(Fragment f, Intent intent, ChattingDetailPresenter presenter)
public void onActivityCreated(Bundle savedInstanceState, Fragment fragment, YWConversation conversation)
public void onResume(Fragment fragment, YWConversation conversation)
public void onDestroy(Fragment fragment, YWConversation conversation)
public int getCustomRightLinkTextColorId()
public int getCustomLeftLinkTextColorId()
public int getFaceViewBgResId()
public int getExpandViewCheckedBgResId()
public int getExpandViewUnCheckedBgResId()
public int getSendButtonBgId()
public int getVoiceViewBgResId()
public int getKeyboardViewBgResId()