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
aa8e4ec7
Commit
aa8e4ec7
authored
Jul 06, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:只有其他选项的时候,展示。其他文字顶上去
parent
047cfad7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
17 deletions
+24
-17
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+7
-2
im_ydl_nim_message_fragment.xml
m-im/src/main/res_uikit/layout/im_ydl_nim_message_fragment.xml
+17
-15
No files found.
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
aa8e4ec7
...
...
@@ -1075,9 +1075,13 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
isOthers
=
event
.
getOthersState
().
getOthersSelect
();
inputPanel
.
onlyShowTextEnd
();
}
question_multiple
.
setText
(
event
.
getStrSelected
());
if
(
event
.
getStrSelected
().
contains
(
"其他"
)){
question_multiple
.
setText
(
event
.
getStrSelected
());
}
}
else
{
question_multiple
.
setText
(
event
.
getStrSelected
());
if
(
event
.
getStrSelected
().
contains
(
"其他"
)){
question_multiple
.
setText
(
event
.
getStrSelected
());
}
}
}
else
if
(
event
.
isFromInputPanel
()){
for
(
int
i
=
0
;
i
<
answersItems
.
size
();
i
++){
...
...
@@ -1137,6 +1141,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
inputPanel
.
setInputContent
(
""
);
question_multiple
.
setText
(
""
);
question_multiple
.
setVisibility
(
View
.
GONE
);
inputPanel
.
onlyShowTextEnd
();
answerLingxiQuestion
(
multipleAnswerBean
.
getExamId
(),
multipleAnswerBean
.
getQuestionPaperId
(),
multipleAnswerBean
.
getUid
(),
multipleAnswerBean
.
getQuestionId
(),
multipleAnswerBean
.
getAnswersItems
(),
...
...
m-im/src/main/res_uikit/layout/im_ydl_nim_message_fragment.xml
View file @
aa8e4ec7
...
...
@@ -590,22 +590,24 @@
android:textStyle=
"bold"
/>
</RelativeLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/im_sp_14"
android:textColor=
"@color/im_color_242424"
android:layout_gravity=
"bottom"
android:id=
"@+id/question_multiple"
tools:text=
"已选:#工作压力 #生活压力#其他"
android:layout_marginStart=
"@dimen/platform_dp_12"
android:layout_marginEnd=
"@dimen/platform_dp_12"
android:layout_marginBottom=
"@dimen/platform_dp_8"
>
</TextView>
</FrameLayout>
</FrameLayout>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"@dimen/im_sp_14"
android:maxHeight=
"@dimen/platform_dp_20"
android:textColor=
"@color/im_color_242424"
android:layout_gravity=
"bottom"
android:maxLines=
"3"
android:id=
"@+id/question_multiple"
tools:text=
"已选:#工作压力 #生活压力#其他"
android:layout_marginStart=
"@dimen/platform_dp_12"
android:layout_marginEnd=
"@dimen/platform_dp_12"
android:layout_marginBottom=
"@dimen/platform_dp_8"
>
</TextView>
<FrameLayout
android:id=
"@+id/fl_question_content"
android:layout_width=
"match_parent"
...
...
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