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
ee250984
Commit
ee250984
authored
Jul 09, 2021
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:UI
parent
018a071b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
18 deletions
+17
-18
config.gradle
config.gradle
+2
-2
MsgViewHolderLingxiAnswerQuestion.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiAnswerQuestion.java
+10
-13
MsgViewHolderLingxiWhichQuestion.java
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiWhichQuestion.java
+1
-1
YDLMessageFragment.java
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
+0
-1
im_lingxi_which_question_item.xml
m-im/src/main/res/layout/im_lingxi_which_question_item.xml
+3
-1
im_nim_lingxi_multiple_choice.xml
m-im/src/main/res/layout/im_nim_lingxi_multiple_choice.xml
+1
-0
No files found.
config.gradle
View file @
ee250984
...
@@ -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.4
1
"
,
"m-im"
:
"0.0.19.4
2
"
,
"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.
39
"
,
"m-im"
:
"0.0.19.
42
"
,
"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/session/viewholder/MsgViewHolderLingxiAnswerQuestion.java
View file @
ee250984
...
@@ -18,6 +18,7 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase {
...
@@ -18,6 +18,7 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase {
private
ArrayList
<
QuestionItemBean
>
itemBeans
;
private
ArrayList
<
QuestionItemBean
>
itemBeans
;
private
StringBuffer
sb
;
private
StringBuffer
sb
;
private
boolean
isContainsOther
=
false
;
private
boolean
isContainsOther
=
false
;
private
String
others
;
public
MsgViewHolderLingxiAnswerQuestion
(
BaseMultiItemFetchLoadAdapter
adapter
)
{
public
MsgViewHolderLingxiAnswerQuestion
(
BaseMultiItemFetchLoadAdapter
adapter
)
{
super
(
adapter
);
super
(
adapter
);
}
}
...
@@ -47,24 +48,16 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase {
...
@@ -47,24 +48,16 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase {
sb
=
new
StringBuffer
();
sb
=
new
StringBuffer
();
for
(
int
j
=
0
;
j
<
itemBeans
.
size
();
j
++){
for
(
int
j
=
0
;
j
<
itemBeans
.
size
();
j
++){
if
(
itemBeans
.
get
(
j
).
getOther
().
trim
().
length
()>
0
){
if
(
itemBeans
.
get
(
j
).
getOther
().
trim
().
length
()>
0
){
others
=
itemBeans
.
get
(
j
).
getOther
();
isContainsOther
=
true
;
isContainsOther
=
true
;
break
;
break
;
}
}
}
}
for
(
int
i
=
0
;
i
<
itemBeans
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
itemBeans
.
size
();
i
++){
if
(
i
==(
itemBeans
.
size
()-
1
)&&
itemBeans
.
get
(
i
).
getName
().
contains
(
"其他"
)){
if
(
isContainsOther
){
if
(
itemBeans
.
get
(
i
).
getOther
().
trim
().
length
()>
0
){
sb
.
append
(
"#"
+
itemBeans
.
get
(
i
).
getName
()+
" "
);
//如果其他有内容就换行
sb
.
append
(
"#"
+
itemBeans
.
get
(
i
).
getName
()+
"\r\n "
).
append
(
itemBeans
.
get
(
i
).
getOther
());
}
else
{
sb
.
append
(
"、"
+
itemBeans
.
get
(
i
).
getName
());
}
}
else
{
}
else
{
if
(
isContainsOther
){
sb
.
append
(
"、"
+
itemBeans
.
get
(
i
).
getName
()+
" "
);
sb
.
append
(
"#"
+
itemBeans
.
get
(
i
).
getName
()+
" "
);
}
else
{
sb
.
append
(
"、"
+
itemBeans
.
get
(
i
).
getName
()+
" "
);
}
}
}
}
}
if
(
itemBeans
.
size
()==
1
&&!
itemBeans
.
get
(
0
).
getName
().
contains
(
"其他"
)){
if
(
itemBeans
.
size
()==
1
&&!
itemBeans
.
get
(
0
).
getName
().
contains
(
"其他"
)){
...
@@ -73,7 +66,11 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase {
...
@@ -73,7 +66,11 @@ public class MsgViewHolderLingxiAnswerQuestion extends MsgViewHolderBase {
if
(!
isContainsOther
){
if
(!
isContainsOther
){
sb
.
replace
(
0
,
1
,
""
);
sb
.
replace
(
0
,
1
,
""
);
}
}
answer_question
.
setText
(
sb
.
toString
());
if
(
others
==
null
&&
others
.
isEmpty
()){
answer_question
.
setText
(
sb
.
toString
());
}
else
{
answer_question
.
setText
(
sb
.
append
(
"\r\n"
).
append
(
others
).
toString
());
}
}
}
}
}
}
}
m-im/src/main/java/com/yidianling/im/session/viewholder/MsgViewHolderLingxiWhichQuestion.java
View file @
ee250984
...
@@ -107,7 +107,7 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
...
@@ -107,7 +107,7 @@ public class MsgViewHolderLingxiWhichQuestion extends MsgViewHolderBase implemen
}
}
for
(
int
i
=
0
;
i
<
questionList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
questionList
.
size
();
i
++)
{
questionList
.
get
(
i
).
setSelected
(
false
);
questionList
.
get
(
i
).
setSelected
(
false
);
if
(
questionList
.
get
(
i
).
getName
().
length
()
>
6
)
{
if
(
questionList
.
get
(
i
).
getName
().
length
()
>
5
)
{
isSingleChoice
=
true
;
isSingleChoice
=
true
;
}
}
}
}
...
...
m-im/src/main/java/com/yidianling/uikit/business/session/fragment/YDLMessageFragment.java
View file @
ee250984
...
@@ -1084,7 +1084,6 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
...
@@ -1084,7 +1084,6 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
if
(
event
.
getStrSelected
().
contains
(
"其他"
)){
if
(
event
.
getStrSelected
().
contains
(
"其他"
)){
question_multiple
.
setVisibility
(
View
.
VISIBLE
);
question_multiple
.
setVisibility
(
View
.
VISIBLE
);
question_multiple
.
setText
(
event
.
getStrSelected
().
replace
(
"、"
,
"#"
));
question_multiple
.
setText
(
event
.
getStrSelected
().
replace
(
"、"
,
"#"
));
question_multiple
.
setText
(
event
.
getStrSelected
());
}
}
}
}
}
else
if
(
event
.
isFromInputPanel
()){
}
else
if
(
event
.
isFromInputPanel
()){
...
...
m-im/src/main/res/layout/im_lingxi_which_question_item.xml
View file @
ee250984
...
@@ -3,13 +3,15 @@
...
@@ -3,13 +3,15 @@
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
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"
android:maxWidth=
"110dp"
android:background=
"@drawable/im_background_18dp_e8f5fe"
android:background=
"@drawable/im_background_18dp_e8f5fe"
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:textSize=
"@dimen/im_text_size_15"
android:id=
"@+id/tv_which_question"
android:id=
"@+id/tv_which_question"
android:layout_marginBottom=
"@dimen/platform_dp_16"
android:layout_marginBottom=
"@dimen/platform_dp_16"
android:layout_marginRight=
"@dimen/platform_dp_9"
android:layout_marginRight=
"@dimen/platform_dp_9"
...
...
m-im/src/main/res/layout/im_nim_lingxi_multiple_choice.xml
View file @
ee250984
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:minWidth=
"263dp"
android:minWidth=
"263dp"
android:maxWidth=
"263dp"
app:layout_constraintTop_toBottomOf=
"@id/multiple_choice_title"
app:layout_constraintTop_toBottomOf=
"@id/multiple_choice_title"
app:layout_constraintStart_toStartOf=
"@id/multiple_choice_title"
app:layout_constraintStart_toStartOf=
"@id/multiple_choice_title"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"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