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
76cce4c0
Commit
76cce4c0
authored
Jul 07, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/4.2.60' into 4.2.60
parents
268dc798
508b1359
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
90 additions
and
60 deletions
+90
-60
config.gradle
config.gradle
+2
-2
NimApplication.java
m-im/src/main/java/com/yidianling/im/config/NimApplication.java
+1
-1
CustomAttachLingxiAnswerQuestion.java
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachLingxiAnswerQuestion.java
+5
-1
MsgViewHolderLingxiWhichQuestion.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiWhichQuestion.java
+52
-37
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+4
-2
im_custom_message_round_1da1f2_6dp_bg.xml
m-im/src/main/res/drawable/im_custom_message_round_1da1f2_6dp_bg.xml
+1
-1
im_lingxi_which_question_item.xml
m-im/src/main/res/layout/im_lingxi_which_question_item.xml
+2
-2
im_nim_lingxi_answer_question.xml
m-im/src/main/res/layout/im_nim_lingxi_answer_question.xml
+4
-3
im_nim_lingxi_multiple_choice.xml
m-im/src/main/res/layout/im_nim_lingxi_multiple_choice.xml
+5
-2
im_nim_lingxi_which_question.xml
m-im/src/main/res/layout/im_nim_lingxi_which_question.xml
+10
-4
im_nim_message_activity_text_layout.xml
m-im/src/main/res_uikit/layout/im_nim_message_activity_text_layout.xml
+1
-1
im_nim_message_item.xml
m-im/src/main/res_uikit/layout/im_nim_message_item.xml
+1
-2
im_nim_message_item_text.xml
m-im/src/main/res_uikit/layout/im_nim_message_item_text.xml
+1
-1
im_ydl_nim_message_fragment.xml
m-im/src/main/res_uikit/layout/im_ydl_nim_message_fragment.xml
+1
-1
No files found.
config.gradle
View file @
76cce4c0
...
@@ -10,7 +10,7 @@ ext {
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.03"
,
"m-fm"
:
"0.0.30.03"
,
"m-user"
:
"0.0.61.37"
,
"m-user"
:
"0.0.61.37"
,
"m-home"
:
"0.0.22.67"
,
"m-home"
:
"0.0.22.67"
,
"m-im"
:
"0.0.19.3
1
"
,
"m-im"
:
"0.0.19.3
3
"
,
"m-dynamic"
:
"0.0.7.24"
,
"m-dynamic"
:
"0.0.7.24"
,
"m-article"
:
"0.0.0.10"
,
"m-article"
:
"0.0.0.10"
,
...
@@ -93,7 +93,7 @@ ext {
...
@@ -93,7 +93,7 @@ ext {
"m-fm"
:
"0.0.30.01"
,
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.37"
,
"m-user"
:
"0.0.61.37"
,
"m-home"
:
"0.0.22.67"
,
"m-home"
:
"0.0.22.67"
,
"m-im"
:
"0.0.19.3
1
"
,
"m-im"
:
"0.0.19.3
3
"
,
"m-dynamic"
:
"0.0.7.24"
,
"m-dynamic"
:
"0.0.7.24"
,
"m-article"
:
"0.0.0.8"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-im/src/main/java/com/yidianling/im/config/NimApplication.java
View file @
76cce4c0
...
@@ -96,7 +96,7 @@ public class NimApplication {
...
@@ -96,7 +96,7 @@ public class NimApplication {
options
.
shouldHandleReceipt
=
true
;
options
.
shouldHandleReceipt
=
true
;
options
.
toolBarOptions
=
new
YDLToolBarOptions
();
options
.
toolBarOptions
=
new
YDLToolBarOptions
();
options
.
messageLeftBackground
=
R
.
drawable
.
im_message_receive_content_bg
;
options
.
messageLeftBackground
=
R
.
drawable
.
im_message_receive_content_bg
;
options
.
messageRightBackground
=
R
.
drawable
.
im_
message_send_content
_bg
;
options
.
messageRightBackground
=
R
.
drawable
.
im_
custom_message_round_1da1f2_6dp
_bg
;
return
options
;
return
options
;
}
}
...
...
m-im/src/main/java/com/yidianling/im/session/extension/CustomAttachLingxiAnswerQuestion.java
View file @
76cce4c0
...
@@ -7,10 +7,12 @@ import com.yidianling.im.session.viewholder.bean.QuestionItemBean;
...
@@ -7,10 +7,12 @@ import com.yidianling.im.session.viewholder.bean.QuestionItemBean;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
public
class
CustomAttachLingxiAnswerQuestion
extends
CustomAttachment
{
public
class
CustomAttachLingxiAnswerQuestion
extends
CustomAttachment
{
private
final
String
ANSWERS
=
"answers"
;
//试卷id
private
final
String
ANSWERS
=
"answers"
;
private
final
String
QUESTIONID
=
"questionPaperId"
;
public
ArrayList
<
QuestionItemBean
>
answers
;
public
ArrayList
<
QuestionItemBean
>
answers
;
public
String
questionId
;
public
CustomAttachLingxiAnswerQuestion
()
{
public
CustomAttachLingxiAnswerQuestion
()
{
super
(
CustomAttachmentType
.
TYPE_LINGXI_ANSWER_QUESTION
);
super
(
CustomAttachmentType
.
TYPE_LINGXI_ANSWER_QUESTION
);
...
@@ -18,12 +20,14 @@ public class CustomAttachLingxiAnswerQuestion extends CustomAttachment{
...
@@ -18,12 +20,14 @@ public class CustomAttachLingxiAnswerQuestion extends CustomAttachment{
@Override
@Override
protected
void
parseData
(
JSONObject
data
)
{
protected
void
parseData
(
JSONObject
data
)
{
this
.
answers
=(
ArrayList
<
QuestionItemBean
>)
JSON
.
parseArray
(
data
.
getString
(
ANSWERS
),
QuestionItemBean
.
class
);
this
.
answers
=(
ArrayList
<
QuestionItemBean
>)
JSON
.
parseArray
(
data
.
getString
(
ANSWERS
),
QuestionItemBean
.
class
);
this
.
questionId
=
data
.
getString
(
QUESTIONID
);
}
}
@Override
@Override
protected
JSONObject
packData
()
{
protected
JSONObject
packData
()
{
JSONObject
data
=
new
JSONObject
();
JSONObject
data
=
new
JSONObject
();
data
.
put
(
ANSWERS
,
answers
);
data
.
put
(
ANSWERS
,
answers
);
data
.
put
(
QUESTIONID
,
questionId
);
return
data
;
return
data
;
}
}
}
}
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiWhichQuestion.java
View file @
76cce4c0
package
com
.
yidianling
.
im
.
session
.
viewholder
;
package
com
.
yidianling
.
im
.
session
.
viewholder
;
import
android.os.Build
;
import
android.os.Build
;
import
android.view.View
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
androidx.recyclerview.widget.GridLayoutManager
;
import
androidx.recyclerview.widget.GridLayoutManager
;
...
@@ -21,6 +22,7 @@ import com.yidianling.im.event.MultipleSelectedEvent;
...
@@ -21,6 +22,7 @@ import com.yidianling.im.event.MultipleSelectedEvent;
import
com.yidianling.im.event.OthersState
;
import
com.yidianling.im.event.OthersState
;
import
com.yidianling.im.http.ImRetrofitApi
;
import
com.yidianling.im.http.ImRetrofitApi
;
import
com.yidianling.im.router.ImIn
;
import
com.yidianling.im.router.ImIn
;
import
com.yidianling.im.session.extension.CustomAttachLingxiAnswerQuestion
;
import
com.yidianling.im.session.extension.CustomAttachLingxiWhichQuestion
;
import
com.yidianling.im.session.extension.CustomAttachLingxiWhichQuestion
;
import
com.yidianling.im.session.viewholder.adapter.AdapterLingxiMultipleChoice
;
import
com.yidianling.im.session.viewholder.adapter.AdapterLingxiMultipleChoice
;
import
com.yidianling.im.session.viewholder.adapter.AdapterLingxiWhichQuestion
;
import
com.yidianling.im.session.viewholder.adapter.AdapterLingxiWhichQuestion
;
...
@@ -66,9 +68,9 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
...
@@ -66,9 +68,9 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
private
String
examId
;
private
String
examId
;
private
String
questionPaperId
;
private
String
questionPaperId
;
private
String
questionId
;
private
String
questionId
;
private
String
singleOrMultipletype
;
private
ArrayList
<
AnswersItem
>
answersItems
=
new
ArrayList
<>();
private
ArrayList
<
AnswersItem
>
answersItems
=
new
ArrayList
<>();
private
ArrayList
<
String
>
multipleAnswers
=
new
ArrayList
<>();
Map
<
String
,
Object
>
mapMessageFromCustom
;
public
MsgViewHolderLingxiWhichQuestion
(
BaseMultiItemFetchLoadAdapter
adapter
)
{
public
MsgViewHolderLingxiWhichQuestion
(
BaseMultiItemFetchLoadAdapter
adapter
)
{
super
(
adapter
);
super
(
adapter
);
}
}
...
@@ -76,6 +78,7 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
...
@@ -76,6 +78,7 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
@Override
@Override
protected
int
getContentResId
()
{
protected
int
getContentResId
()
{
customAttachLingxiWhichQuestion
=
((
CustomAttachLingxiWhichQuestion
)
message
.
getAttachment
());
customAttachLingxiWhichQuestion
=
((
CustomAttachLingxiWhichQuestion
)
message
.
getAttachment
());
singleOrMultipletype
=
customAttachLingxiWhichQuestion
.
type
;
if
(
customAttachLingxiWhichQuestion
.
type
!=
null
)
{
if
(
customAttachLingxiWhichQuestion
.
type
!=
null
)
{
switch
(
customAttachLingxiWhichQuestion
.
type
)
{
switch
(
customAttachLingxiWhichQuestion
.
type
)
{
case
"radio"
:
//您想要咨询下列哪类的问题?(单选)
case
"radio"
:
//您想要咨询下列哪类的问题?(单选)
...
@@ -134,55 +137,67 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
...
@@ -134,55 +137,67 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
break
;
break
;
}
}
}
}
//进入消息列表时候,保存当type为56的时候的,将ID作为key保存
NIMClient
.
getService
(
MsgService
.
class
).
queryMessageList
(
message
.
getSessionId
(),
SessionTypeEnum
.
P2P
,
0
,
100
).
setCallback
(
new
RequestCallback
<
List
<
IMMessage
>>()
{
@Override
public
void
onSuccess
(
List
<
IMMessage
>
param
)
{
if
(
param
!=
null
&&
param
.
size
()
>
0
)
{
for
(
IMMessage
msg
:
param
)
{
MsgAttachment
attachment
=
msg
.
getAttachment
();
if
(
attachment
instanceof
CustomAttachLingxiAnswerQuestion
)
{
CustomAttachLingxiAnswerQuestion
customattachlingxianswerquestion
=
(
CustomAttachLingxiAnswerQuestion
)
attachment
;
Map
map1
=
msg
.
getLocalExtension
();
map1
=
new
HashMap
();
if
(!
map1
.
containsKey
(
customattachlingxianswerquestion
.
questionId
)){
map1
.
put
(
customattachlingxianswerquestion
.
questionId
,
true
);
}
mapMessageFromCustom
=
map1
;
UpdateFromLocalExtention
();
UpdateFromLocalExtention
();
}
}
private
void
UpdateFromLocalExtention
()
{
try
{
Map
<
String
,
Object
>
map
=
message
.
getLocalExtension
();
if
(
map
!=
null
)
{
Object
obj
=
map
.
get
(
"isSure"
);
Object
position
=
map
.
get
(
"position"
);
Object
multiple
=
map
.
get
(
"multiple"
);
if
(
obj
!=
null
)
{
boolean
b
=
(
boolean
)
obj
;
Integer
posi
=
(
Integer
)
position
;
if
(
b
)
{
//不可点击
isClickable
=
false
;
if
(
posi
!=
null
){
questionList
.
get
(
posi
).
setSelected
(
true
);
}
}
}
}
}
else
{
//可点击
}
}
if
(
multiple
!=
null
){
multipleAnswers
=
(
ArrayList
<
String
>)
multiple
;
@Override
for
(
int
i
=
0
;
i
<
questionList
.
size
();
i
++){
public
void
onFailed
(
int
code
)
{
for
(
int
j
=
0
;
j
<
multipleAnswers
.
size
();
j
++){
LogUtil
.
e
(
"获取消息onFailed:"
+
code
);
if
(
questionList
.
get
(
i
).
getName
().
contains
(
multipleAnswers
.
get
(
j
))){
questionList
.
get
(
i
).
setSelected
(
true
);
}
}
@Override
public
void
onException
(
Throwable
exception
)
{
LogUtil
.
e
(
"获取消息exception:"
+
exception
.
getLocalizedMessage
());
}
}
});
}
}
if
(
isClickable
){
confirm_multiple_choice
.
setEnabled
(
true
);
private
void
UpdateFromLocalExtention
()
{
confirm_multiple_choice
.
setBackground
(
context
.
getResources
().
getDrawable
(
R
.
drawable
.
im_background_18dp_ebebeb
));
try
{
Map
<
String
,
Object
>
mapMessage
;
if
(
mapMessageFromCustom
!=
null
){
mapMessage
=
mapMessageFromCustom
;
}
else
{
}
else
{
confirm_multiple_choice
.
setEnabled
(
false
);
mapMessage
=
message
.
getLocalExtension
();
confirm_multiple_choice
.
setBackground
(
context
.
getResources
().
getDrawable
(
R
.
drawable
.
im_background_18dp_1da1f2
));
confirm_multiple_choice
.
setText
(
"确定("
+
multipleAnswers
.
size
()+
")"
);
}
}
}
}
else
{
if
(
mapMessage
!=
null
)
{
//可点击
Object
questionPaperId
=
mapMessage
.
get
(
customAttachLingxiWhichQuestion
.
questionPaperId
);
if
(
questionPaperId
!=
null
)
{
boolean
b
=
(
boolean
)
questionPaperId
;
if
(
b
)
{
//隐藏回答的信息
if
(
singleOrMultipletype
.
contains
(
"radio"
)){
recycleviewWhichQuestion
.
setVisibility
(
View
.
GONE
);
}
else
{
recycleviewMultipleChoice
.
setVisibility
(
View
.
GONE
);
confirm_multiple_choice
.
setVisibility
(
View
.
GONE
);
}
}
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtil
.
e
(
"aaaaa"
+
e
.
getLocalizedMessage
());
LogUtil
.
e
(
e
.
getLocalizedMessage
());
}
}
}
}
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
76cce4c0
...
@@ -36,6 +36,7 @@ import com.netease.nimlib.sdk.ResponseCode;
...
@@ -36,6 +36,7 @@ import com.netease.nimlib.sdk.ResponseCode;
import
com.netease.nimlib.sdk.msg.MessageBuilder
;
import
com.netease.nimlib.sdk.msg.MessageBuilder
;
import
com.netease.nimlib.sdk.msg.MsgService
;
import
com.netease.nimlib.sdk.msg.MsgService
;
import
com.netease.nimlib.sdk.msg.MsgServiceObserve
;
import
com.netease.nimlib.sdk.msg.MsgServiceObserve
;
import
com.netease.nimlib.sdk.msg.attachment.MsgAttachment
;
import
com.netease.nimlib.sdk.msg.constant.MsgStatusEnum
;
import
com.netease.nimlib.sdk.msg.constant.MsgStatusEnum
;
import
com.netease.nimlib.sdk.msg.constant.SessionTypeEnum
;
import
com.netease.nimlib.sdk.msg.constant.SessionTypeEnum
;
import
com.netease.nimlib.sdk.msg.model.CustomMessageConfig
;
import
com.netease.nimlib.sdk.msg.model.CustomMessageConfig
;
...
@@ -65,6 +66,8 @@ import com.yidianling.im.event.MultipleSelectedEvent;
...
@@ -65,6 +66,8 @@ import com.yidianling.im.event.MultipleSelectedEvent;
import
com.yidianling.im.helper.IMChatUtil
;
import
com.yidianling.im.helper.IMChatUtil
;
import
com.yidianling.im.http.ImRetrofitApi
;
import
com.yidianling.im.http.ImRetrofitApi
;
import
com.yidianling.im.router.ImIn
;
import
com.yidianling.im.router.ImIn
;
import
com.yidianling.im.session.extension.CustomAttachLingxiAnswerQuestion
;
import
com.yidianling.im.session.extension.CustomAttachmentConfirmOrder
;
import
com.yidianling.im.session.viewholder.bean.AnswerBean
;
import
com.yidianling.im.session.viewholder.bean.AnswerBean
;
import
com.yidianling.im.session.viewholder.bean.AnswersItem
;
import
com.yidianling.im.session.viewholder.bean.AnswersItem
;
import
com.yidianling.im.session.viewholder.bean.LingxiAnswerBean
;
import
com.yidianling.im.session.viewholder.bean.LingxiAnswerBean
;
...
@@ -272,7 +275,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
...
@@ -272,7 +275,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
ll_info_detail
=
rootView
.
findViewById
(
R
.
id
.
ll_info_detail
);
ll_info_detail
=
rootView
.
findViewById
(
R
.
id
.
ll_info_detail
);
tv_doctor_name
=
rootView
.
findViewById
(
R
.
id
.
tv_doctor_name
);
tv_doctor_name
=
rootView
.
findViewById
(
R
.
id
.
tv_doctor_name
);
rl_contain
=
rootView
.
findViewById
(
R
.
id
.
rl_contain
);
rl_contain
=
rootView
.
findViewById
(
R
.
id
.
rl_contain
);
messageListView
.
setItemAnimator
(
null
);
//和助理私聊时的常用语逻辑
//和助理私聊时的常用语逻辑
// rl_common_question_enter = rootView.findViewById(R.id.rl_common_question);
// rl_common_question_enter = rootView.findViewById(R.id.rl_common_question);
fl_question_content
=
rootView
.
findViewById
(
R
.
id
.
fl_question_content
);
fl_question_content
=
rootView
.
findViewById
(
R
.
id
.
fl_question_content
);
...
@@ -783,7 +786,6 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
...
@@ -783,7 +786,6 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtil
.
i
(
e
.
toString
());
LogUtil
.
i
(
e
.
toString
());
}
}
if
(!
TextUtils
.
isEmpty
(
headUrl
))
{
if
(!
TextUtils
.
isEmpty
(
headUrl
))
{
IP2PCustomActionHandler
.
DocInfo
info
=
ActionHandlerStorage
.
getL
(
sessionId
).
getInfo
();
IP2PCustomActionHandler
.
DocInfo
info
=
ActionHandlerStorage
.
getL
(
sessionId
).
getInfo
();
if
(
null
!=
info
)
{
if
(
null
!=
info
)
{
...
...
m-im/src/main/res/drawable/im_custom_message_round_
c2e7ff
_6dp_bg.xml
→
m-im/src/main/res/drawable/im_custom_message_round_
1da1f2
_6dp_bg.xml
View file @
76cce4c0
<?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=
"@color/
color_c2e7ff
"
/>
<solid
android:color=
"@color/
platform_color_1DA1F2
"
/>
<corners
<corners
android:topLeftRadius=
"@dimen/platform_dp_10"
android:topLeftRadius=
"@dimen/platform_dp_10"
android:bottomRightRadius=
"@dimen/platform_dp_10"
android:bottomRightRadius=
"@dimen/platform_dp_10"
...
...
m-im/src/main/res/layout/im_lingxi_which_question_item.xml
View file @
76cce4c0
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"婚姻家庭婚
姻混
"
android:text=
"婚姻家庭婚"
android:textColor=
"@color/platform_color_1DA1F2"
android:textColor=
"@color/platform_color_1DA1F2"
android:gravity=
"center"
android:gravity=
"center"
android:minWidth=
"110dp"
android:minWidth=
"110dp"
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
android:paddingTop=
"@dimen/platform_dp_8"
android:paddingTop=
"@dimen/platform_dp_8"
android:paddingBottom=
"@dimen/platform_dp_8"
android:paddingBottom=
"@dimen/platform_dp_8"
android:id=
"@+id/tv_which_question"
android:id=
"@+id/tv_which_question"
android:layout_margin
Top
=
"@dimen/platform_dp_16"
android:layout_margin
Bottom
=
"@dimen/platform_dp_16"
android:layout_marginRight=
"@dimen/platform_dp_9"
android:layout_marginRight=
"@dimen/platform_dp_9"
android:paddingStart=
"@dimen/platform_dp_25"
android:paddingStart=
"@dimen/platform_dp_25"
android:paddingEnd=
"@dimen/platform_dp_25"
android:paddingEnd=
"@dimen/platform_dp_25"
...
...
m-im/src/main/res/layout/im_nim_lingxi_answer_question.xml
View file @
76cce4c0
...
@@ -2,12 +2,13 @@
...
@@ -2,12 +2,13 @@
<TextView
xmlns:android=
"http://schemas.android.com/apk/res/android"
<TextView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:maxWidth=
"263dp"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
tools:text=
"答案"
tools:text=
"答案"
android:background=
"@drawable/im_custom_message_round_
c2e7ff
_6dp_bg"
android:background=
"@drawable/im_custom_message_round_
1da1f2
_6dp_bg"
android:id=
"@+id/answer_question"
android:id=
"@+id/answer_question"
android:textColor=
"@color/
im_color_242424
"
android:textColor=
"@color/
white
"
android:textSize=
"@dimen/im_
sp_14
"
android:textSize=
"@dimen/im_
text_size_17
"
android:paddingTop=
"@dimen/platform_dp_9"
android:paddingTop=
"@dimen/platform_dp_9"
android:paddingBottom=
"@dimen/platform_dp_9"
android:paddingBottom=
"@dimen/platform_dp_9"
android:paddingStart=
"@dimen/platform_dp_10"
android:paddingStart=
"@dimen/platform_dp_10"
...
...
m-im/src/main/res/layout/im_nim_lingxi_multiple_choice.xml
View file @
76cce4c0
...
@@ -7,16 +7,19 @@
...
@@ -7,16 +7,19 @@
android:background=
"@drawable/im_custom_message_round_white_6dp_bg"
android:background=
"@drawable/im_custom_message_round_white_6dp_bg"
android:paddingLeft=
"@dimen/platform_dp_12"
android:paddingLeft=
"@dimen/platform_dp_12"
android:paddingRight=
"@dimen/platform_dp_3"
android:paddingRight=
"@dimen/platform_dp_3"
android:paddingTop=
"@dimen/platform_dp_12"
>
>
<TextView
<TextView
android:layout_width=
"
239dp
"
android:layout_width=
"
wrap_content
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:maxWidth=
"263dp"
android:id=
"@+id/multiple_choice_title"
android:id=
"@+id/multiple_choice_title"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
tools:text=
"请问是发生了什么事情导致的呢?(多选)?"
tools:text=
"请问是发生了什么事情导致的呢?(多选)?"
android:textSize=
"@dimen/im_text_size_17"
android:textSize=
"@dimen/im_text_size_17"
android:textColor=
"@color/im_color_242424"
android:textColor=
"@color/im_color_242424"
android:paddingBottom=
"@dimen/platform_dp_16"
>
>
</TextView>
</TextView>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
...
@@ -37,7 +40,7 @@
...
@@ -37,7 +40,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
app:layout_constraintTop_toBottomOf=
"@id/multiple_question_rv"
app:layout_constraintTop_toBottomOf=
"@id/multiple_question_rv"
android:text=
"确定(0)"
android:text=
"确定(0)"
android:layout_marginTop=
"@dimen/platform_dp_
24
"
android:layout_marginTop=
"@dimen/platform_dp_
8
"
android:textSize=
"@dimen/im_text_size_15"
android:textSize=
"@dimen/im_text_size_15"
android:enabled=
"false"
android:enabled=
"false"
app:layout_constraintEnd_toEndOf=
"@id/multiple_question_rv"
app:layout_constraintEnd_toEndOf=
"@id/multiple_question_rv"
...
...
m-im/src/main/res/layout/im_nim_lingxi_which_question.xml
View file @
76cce4c0
...
@@ -6,23 +6,29 @@
...
@@ -6,23 +6,29 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/im_custom_message_round_white_6dp_bg"
android:background=
"@drawable/im_custom_message_round_white_6dp_bg"
android:paddingLeft=
"@dimen/platform_dp_12"
android:paddingLeft=
"@dimen/platform_dp_12"
android:paddingRight=
"@dimen/platform_dp_3"
>
android:paddingRight=
"@dimen/platform_dp_3"
android:paddingTop=
"@dimen/platform_dp_12"
>
<TextView
<TextView
android:id=
"@+id/which_question_title"
android:id=
"@+id/which_question_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:maxWidth=
"263dp"
android:textColor=
"@color/im_color_242424"
android:textColor=
"@color/im_color_242424"
android:textSize=
"@dimen/im_text_size_17"
android:textSize=
"@dimen/im_text_size_17"
app:layout_constraint
Left_toLef
tOf=
"parent"
app:layout_constraint
Start_toStar
tOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"您想要咨询下类哪类问题?"
/>
tools:text=
"您想要咨询下类哪类问?"
android:layout_marginBottom=
"@dimen/platform_dp_16"
app:layout_constraintBottom_toTopOf=
"@id/which_question_rv"
/>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/which_question_rv"
android:id=
"@+id/which_question_rv"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/
platform_dp_16
"
android:layout_marginBottom=
"@dimen/
dp_4
"
android:orientation=
"vertical"
android:orientation=
"vertical"
app:layoutManager=
"androidx.recyclerview.widget.GridLayoutManager"
app:layoutManager=
"androidx.recyclerview.widget.GridLayoutManager"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
m-im/src/main/res_uikit/layout/im_nim_message_activity_text_layout.xml
View file @
76cce4c0
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
android:maxHeight=
"72dp"
android:maxHeight=
"72dp"
android:maxLines=
"4"
android:maxLines=
"4"
android:textColorHint=
"#CCCCCC"
android:textColorHint=
"#CCCCCC"
android:textSize=
"1
5
sp"
/>
android:textSize=
"1
7
sp"
/>
</LinearLayout>
</LinearLayout>
<ImageView
<ImageView
...
...
m-im/src/main/res_uikit/layout/im_nim_message_item.xml
View file @
76cce4c0
...
@@ -16,10 +16,9 @@
...
@@ -16,10 +16,9 @@
android:layout_centerHorizontal=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginBottom=
"13dp"
android:layout_marginBottom=
"13dp"
android:layout_marginTop=
"@dimen/im_bubble_time_layout_margin_top"
android:layout_marginTop=
"@dimen/im_bubble_time_layout_margin_top"
android:background=
"@drawable/im_nim_bg_message_tip_time"
android:paddingLeft=
"6dp"
android:paddingLeft=
"6dp"
android:paddingRight=
"6dp"
android:paddingRight=
"6dp"
android:textColor=
"#
ffffff
"
android:textColor=
"#
cccccc
"
android:textSize=
"12dp"
android:textSize=
"12dp"
android:visibility=
"gone"
android:visibility=
"gone"
tools:visibility=
"visible"
tools:visibility=
"visible"
...
...
m-im/src/main/res_uikit/layout/im_nim_message_item_text.xml
View file @
76cce4c0
...
@@ -13,6 +13,6 @@
...
@@ -13,6 +13,6 @@
android:includeFontPadding=
"false"
android:includeFontPadding=
"false"
android:lineSpacingExtra=
"3dip"
android:lineSpacingExtra=
"3dip"
android:minHeight=
"40dp"
android:minHeight=
"40dp"
android:textColor=
"@color/
im_color_242424
"
android:textColor=
"@color/
white
"
android:textSize=
"17dp"
/>
android:textSize=
"17dp"
/>
</LinearLayout>
</LinearLayout>
m-im/src/main/res_uikit/layout/im_ydl_nim_message_fragment.xml
View file @
76cce4c0
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/
platform_color_F0F0F0
"
android:background=
"@color/
color_f8f8f8
"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<FrameLayout
<FrameLayout
...
...
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