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
c2bd38a5
Commit
c2bd38a5
authored
Apr 08, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:群聊结束相关UI
parent
9af4760a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
7 deletions
+45
-7
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+8
-4
YDLTeamMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLTeamMessageFragment.java
+1
-3
im_background_team_over.xml
m-im/src/main/res_uikit/drawable/im_background_team_over.xml
+10
-0
im_nim_message_activity_bottom_layout.xml
m-im/src/main/res_uikit/layout/im_nim_message_activity_bottom_layout.xml
+1
-0
im_nim_message_activity_team_over_layout.xml
m-im/src/main/res_uikit/layout/im_nim_message_activity_team_over_layout.xml
+25
-0
No files found.
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
c2bd38a5
...
...
@@ -207,8 +207,9 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
private
RelativeLayout
constraint_ll
;
private
LinearLayout
ll_info_detail
;
private
RelativeLayout
rela_zixun
;
protected
RelativeLayout
rela_zixun
;
private
LinearLayout
team_over_end
;
private
RelativeLayout
textMessageLayout
;
private
ValueAnimator
anim_out
;
private
ObjectAnimator
sourceLayoutAnim
;
private
ValueAnimator
anim_in
;
...
...
@@ -344,6 +345,8 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
ll_info_detail
=
rootView
.
findViewById
(
R
.
id
.
ll_info_detail
);
tv_doctor_name
=
rootView
.
findViewById
(
R
.
id
.
tv_doctor_name
);
rl_contain
=
rootView
.
findViewById
(
R
.
id
.
rl_contain
);
team_over_end
=
rootView
.
findViewById
(
R
.
id
.
team_over_end
);
textMessageLayout
=
rootView
.
findViewById
(
R
.
id
.
textMessageLayout
);
messageListView
.
setItemAnimator
(
null
);
//和助理私聊时的常用语逻辑
// rl_common_question_enter = rootView.findViewById(R.id.rl_common_question);
...
...
@@ -374,11 +377,12 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
}
else
{
initView
();
}
//
群聊则隐藏立即咨询按钮
//
如果是群聊
if
(
SessionTypeEnum
.
Team
==
sessionType
){
rela_zixun
.
setVisibility
(
View
.
GONE
);
titleBar
.
setTitleRightDraw
(
null
);
// textMessageLayout.setVisibility(View.GONE);
// team_over_end.setVisibility(View.VISIBLE);
}
}
/**
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLTeamMessageFragment.java
View file @
c2bd38a5
package
com
.
yidianling
.
uikit
.
business
.
session
.
fragment
;
import
android.os.Bundle
;
import
android.util.Log
;
import
com.netease.nimlib.sdk.msg.model.IMMessage
;
...
...
@@ -54,6 +55,4 @@ public class YDLTeamMessageFragment extends YDLMessageFragment {
Log
.
e
(
"hzs"
,
"-------------setTeam------------TeammessageFragment"
);
this
.
team
=
team
;
}
}
\ No newline at end of file
m-im/src/main/res_uikit/drawable/im_background_team_over.xml
0 → 100644
View file @
c2bd38a5
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:exitFadeDuration=
"@android:integer/config_shortAnimTime"
>
<corners
android:radius=
"@dimen/dp_4"
/>
<solid
android:color=
"#E7ECF0"
/>
</shape>
\ No newline at end of file
m-im/src/main/res_uikit/layout/im_nim_message_activity_bottom_layout.xml
View file @
c2bd38a5
...
...
@@ -6,6 +6,7 @@
android:orientation=
"vertical"
>
<include
layout=
"@layout/im_nim_message_activity_text_layout"
/>
<include
layout=
"@layout/im_nim_message_activity_team_over_layout"
/>
<com.yidianling.nimbase.business.session.emoji.EmoticonPickerView
android:id=
"@+id/emoticon_picker_view"
...
...
m-im/src/main/res_uikit/layout/im_nim_message_activity_team_over_layout.xml
0 → 100644
View file @
c2bd38a5
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/dp_72"
tools:ignore=
"MissingDefaultResource"
android:gravity=
"center"
android:background=
"@drawable/im_background_team_over"
android:visibility=
"visible"
android:id=
"@+id/team_over_end"
android:layout_marginStart=
"@dimen/platform_dp_40"
android:layout_marginEnd=
"@dimen/platform_dp_40"
android:layout_marginBottom=
"@dimen/platform_dp_12"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"群聊已结束,如有问题请联系个案管理师"
android:textColor=
"#0c1d31"
android:textSize=
"@dimen/im_text_size_16"
>
</TextView>
</LinearLayout>
\ No newline at end of file
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