Commit b822f79b by YKai

feat:转客服样式修改

parent 03e4a5ff
...@@ -31,6 +31,21 @@ public class MsgViewHolderSwitchKeFuTips extends MsgViewHolderBase { ...@@ -31,6 +31,21 @@ public class MsgViewHolderSwitchKeFuTips extends MsgViewHolderBase {
} }
@Override @Override
protected boolean isShowBubble() {
return false;
}
@Override
protected boolean isShowHeadImage() {
return false;
}
@Override
protected boolean isMiddleItem() {
return true;
}
@Override
protected void bindContentView() { protected void bindContentView() {
CustomAttachmentSwitchKeFuTips customBusinessCard = (CustomAttachmentSwitchKeFuTips) message.getAttachment(); CustomAttachmentSwitchKeFuTips customBusinessCard = (CustomAttachmentSwitchKeFuTips) message.getAttachment();
textViewTips.setText(customBusinessCard.to_content); textViewTips.setText(customBusinessCard.to_content);
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center_horizontal" android:gravity="center"
android:paddingTop="@dimen/platform_dp_3"
android:paddingBottom="@dimen/platform_dp_3"
android:paddingLeft="@dimen/platform_dp_6"
android:paddingRight="@dimen/platform_dp_6"
android:background="@drawable/im_kefu_tips_bg"
> >
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/im_kefu_tips_bg"
android:paddingTop="3dp"
android:paddingBottom="@dimen/platform_dp_3"
android:paddingLeft="@dimen/platform_dp_2"
android:paddingRight="@dimen/platform_dp_2"
android:id="@+id/tips_kefu" android:id="@+id/tips_kefu"
android:textColor="@color/black"
android:text="将为您服务" android:text="将为您服务"
/> />
</LinearLayout> </LinearLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#30999999" /> <solid android:color="#30999999" />
<corners android:radius="@dimen/platform_dp_10" /> <corners android:radius="10dp"/>
</shape> </shape>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment