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
d1a049fa
Commit
d1a049fa
authored
May 24, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 消息类型32兼容新展示界面
parent
110d9a4e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
14 deletions
+24
-14
SessionHelper.java
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
+1
-1
MsgViewHolderConsultCallStatus.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderConsultCallStatus.java
+9
-11
im_ui_message_custom_consult_call_status.xml
m-im/src/main/res/layout/im_ui_message_custom_consult_call_status.xml
+14
-2
im_avchat_type_audio.png
m-im/src/main/res_avchat/drawable-xhdpi/im_avchat_type_audio.png
+0
-0
No files found.
m-im/src/main/java/com/yidianling/im/session/SessionHelper.java
View file @
d1a049fa
...
...
@@ -467,7 +467,7 @@ public class SessionHelper {
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachPleaseSubscribeConsultDate
.
class
,
MsgViewHolderPleaseSubscribeConsultDate
.
class
);
//请预约咨询时间
NimUIKit
.
registerMsgItemViewHolder
(
CustomCustomerServiceCardAttachment
.
class
,
MsgViewHolderCustomerServiceCard
.
class
);
//客服小壹名片
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentShareMsg
.
class
,
MsgViewHolderShareMsg
.
class
);
//分享推送
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachConsultCallStatus
.
class
,
MsgViewHolderConsultCallStatus
.
class
);
//咨询声网的拨打状态
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachConsultCallStatus
.
class
,
MsgViewHolderConsultCallStatus
.
class
);
//咨询声网的拨打状态
32
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachAssistantReceivedMoney
.
class
,
MsgViewHolderAssistantReceivedMoney
.
class
);
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentBusinessCard
.
class
,
MsgViewHolderBusinessCard
.
class
);
//专家自定义名片 ,TYPE=34
NimUIKit
.
registerMsgItemViewHolder
(
CustomAttachmentJumpToDaoYi
.
class
,
MsgViewHolderJumpToDaoYi
.
class
);
//跳转导医聊天窗口触发导医分配逻辑,TYPE=35
...
...
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderConsultCallStatus.java
View file @
d1a049fa
...
...
@@ -15,7 +15,8 @@ import com.yidianling.uikit.business.session.viewholder.MsgViewHolderBase;
*/
public
class
MsgViewHolderConsultCallStatus
extends
MsgViewHolderBase
{
private
ImageView
typeImage
;
private
ImageView
typeImageLeft
;
private
ImageView
typeImageRight
;
private
TextView
statusLabel
;
public
MsgViewHolderConsultCallStatus
(
BaseMultiItemFetchLoadAdapter
adapter
)
{
...
...
@@ -29,7 +30,8 @@ public class MsgViewHolderConsultCallStatus extends MsgViewHolderBase {
@Override
protected
void
inflateContentView
()
{
typeImage
=
findViewById
(
R
.
id
.
type_img
);
typeImageLeft
=
findViewById
(
R
.
id
.
type_img_left
);
typeImageRight
=
findViewById
(
R
.
id
.
type_img_right
);
statusLabel
=
findViewById
(
R
.
id
.
tv_state
);
}
...
...
@@ -43,20 +45,16 @@ public class MsgViewHolderConsultCallStatus extends MsgViewHolderBase {
private
void
layoutByDirection
(
CustomAttachConsultCallStatus
customAttachTipMsg
)
{
if
(
isReceivedMessage
())
{
typeImage
.
setImageResource
(
R
.
drawable
.
im_avchat_left_type_audio
);
typeImageLeft
.
setVisibility
(
View
.
VISIBLE
);
typeImageRight
.
setVisibility
(
View
.
GONE
);
}
else
{
typeImage
.
setImageResource
(
R
.
drawable
.
im_avchat_right_type_audio
);
typeImageLeft
.
setVisibility
(
View
.
GONE
);
typeImageRight
.
setVisibility
(
View
.
VISIBLE
);
}
if
(
TextUtils
.
equals
(
"1"
,
customAttachTipMsg
.
getStatus
()))
{
typeImage
.
setVisibility
(
View
.
VISIBLE
);
if
(
"true"
.
equals
(
customAttachTipMsg
.
getIsConsultOrder
()))
{
statusLabel
.
setText
(
"通话接听时长 "
+
customAttachTipMsg
.
getDuration
());
}
else
{
statusLabel
.
setText
(
"通话拨打时长 "
+
customAttachTipMsg
.
getDuration
());
}
statusLabel
.
setText
(
customAttachTipMsg
.
getDuration
());
}
else
{
typeImage
.
setVisibility
(
View
.
GONE
);
if
(
isReceivedMessage
())
{
statusLabel
.
setText
(
customAttachTipMsg
.
getCallee
());
}
else
{
...
...
m-im/src/main/res/layout/im_ui_message_custom_consult_call_status.xml
View file @
d1a049fa
...
...
@@ -9,14 +9,15 @@
android:orientation=
"horizontal"
>
<ImageView
android:id=
"@+id/type_img"
android:id=
"@+id/type_img
_left
"
android:layout_width=
"14dp"
android:layout_height=
"14dp"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"3dp"
android:layout_marginRight=
"3dp"
android:contentDescription=
"@string/im_empty"
android:src=
"@drawable/im_avchat_left_type_audio"
/>
android:visibility=
"gone"
android:src=
"@drawable/im_avchat_type_audio"
/>
<TextView
android:id=
"@+id/tv_state"
...
...
@@ -28,4 +29,15 @@
android:text=
"无人接听"
android:textColor=
"@color/platform_color_242424"
android:textSize=
"14sp"
/>
<ImageView
android:visibility=
"gone"
android:id=
"@+id/type_img_right"
android:layout_width=
"14dp"
android:layout_height=
"14dp"
android:layout_gravity=
"center_vertical"
android:layout_marginLeft=
"3dp"
android:layout_marginRight=
"3dp"
android:contentDescription=
"@string/im_empty"
android:src=
"@drawable/im_avchat_type_audio"
/>
</LinearLayout>
m-im/src/main/res_avchat/drawable-xhdpi/im_avchat_type_audio.png
0 → 100644
View file @
d1a049fa
515 Bytes
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