Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
b822f79b
Commit
b822f79b
authored
Jan 26, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:转客服样式修改
parent
03e4a5ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
8 deletions
+25
-8
MsgViewHolderSwitchKeFuTips.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderSwitchKeFuTips.java
+15
-0
im_nim_switch_kefu_tips.xml
m-im/src/main/res/layout/im_nim_switch_kefu_tips.xml
+9
-7
im_kefu_tips_bg.xml
m-im/src/main/res_avchat/drawable/im_kefu_tips_bg.xml
+1
-1
No files found.
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderSwitchKeFuTips.java
View file @
b822f79b
...
...
@@ -31,6 +31,21 @@ public class MsgViewHolderSwitchKeFuTips extends MsgViewHolderBase {
}
@Override
protected
boolean
isShowBubble
()
{
return
false
;
}
@Override
protected
boolean
isShowHeadImage
()
{
return
false
;
}
@Override
protected
boolean
isMiddleItem
()
{
return
true
;
}
@Override
protected
void
bindContentView
()
{
CustomAttachmentSwitchKeFuTips
customBusinessCard
=
(
CustomAttachmentSwitchKeFuTips
)
message
.
getAttachment
();
textViewTips
.
setText
(
customBusinessCard
.
to_content
);
...
...
m-im/src/main/res/layout/im_nim_switch_kefu_tips.xml
View file @
b822f79b
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:orientation=
"vertical"
android:layout_width=
"
match_par
ent"
android:layout_width=
"
wrap_cont
ent"
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
android:layout_width=
"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:textColor=
"@color/black"
android:text=
"将为您服务"
/>
</LinearLayout>
\ No newline at end of file
m-im/src/main/res_avchat/drawable/im_kefu_tips_bg.xml
View file @
b822f79b
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"#30999999"
/>
<corners
android:radius=
"
@dimen/platform_dp_10"
/>
<corners
android:radius=
"
10dp"
/>
</shape>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment