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
10d16864
Commit
10d16864
authored
Jul 10, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: m-im组件升级
parent
5481bdd5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
10 deletions
+22
-10
config.gradle
config.gradle
+2
-2
CmsExamQuestionPaperActivity.kt
m-im/src/main/java/com/yidianling/im/ui/activity/CmsExamQuestionPaperActivity.kt
+15
-6
bg_gradient_fff_40fff.xml
m-im/src/main/res/drawable/bg_gradient_fff_40fff.xml
+1
-1
im_view_question_infomation.xml
m-im/src/main/res_uikit/layout/im_view_question_infomation.xml
+4
-1
No files found.
config.gradle
View file @
10d16864
...
...
@@ -10,7 +10,7 @@ ext {
"m-fm"
:
"0.0.30.03"
,
"m-user"
:
"0.0.61.37"
,
"m-home"
:
"0.0.22.67"
,
"m-im"
:
"0.0.19.4
6
"
,
"m-im"
:
"0.0.19.4
8
"
,
"m-dynamic"
:
"0.0.7.25"
,
"m-article"
:
"0.0.0.10"
,
...
...
@@ -93,7 +93,7 @@ ext {
"m-fm"
:
"0.0.30.01"
,
"m-user"
:
"0.0.61.37"
,
"m-home"
:
"0.0.22.67"
,
"m-im"
:
"0.0.19.4
6
"
,
"m-im"
:
"0.0.19.4
8
"
,
"m-dynamic"
:
"0.0.7.25"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-im/src/main/java/com/yidianling/im/ui/activity/CmsExamQuestionPaperActivity.kt
View file @
10d16864
...
...
@@ -274,20 +274,29 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
}
tv_cur_problem
.
setOnClickListener
{
problemContent
=
et_input_problem
.
text
.
toString
()
et_input_problem
.
setText
(
"$problemContent${tv_cur_problem.text}:\n"
)
et_input_problem
.
setSelection
(
et_input_problem
.
text
.
toString
().
length
-
1
)
if
(!
TextUtils
.
isEmpty
(
problemContent
)){
problemContent
=
"$problemContent\n\n"
}
et_input_problem
.
setText
(
"$problemContent${tv_cur_problem.text}:"
)
et_input_problem
.
setSelection
(
et_input_problem
.
text
.
toString
().
length
)
recycle
.
smoothScrollToPosition
(
mData
.
size
-
1
)
}
tv_duration
.
setOnClickListener
{
problemContent
=
et_input_problem
.
text
.
toString
()
et_input_problem
.
setText
(
"$problemContent\n${tv_duration.text}:\n"
)
et_input_problem
.
setSelection
(
et_input_problem
.
text
.
toString
().
length
-
1
)
if
(!
TextUtils
.
isEmpty
(
problemContent
)){
problemContent
=
"$problemContent\n\n"
}
et_input_problem
.
setText
(
"$problemContent${tv_duration.text}:"
)
et_input_problem
.
setSelection
(
et_input_problem
.
text
.
toString
().
length
)
recycle
.
smoothScrollToPosition
(
mData
.
size
-
1
)
}
tv_problem_impact
.
setOnClickListener
{
problemContent
=
et_input_problem
.
text
.
toString
()
et_input_problem
.
setText
(
"$problemContent\n${tv_problem_impact.text}:\n"
)
et_input_problem
.
setSelection
(
et_input_problem
.
text
.
toString
().
length
-
1
)
if
(!
TextUtils
.
isEmpty
(
problemContent
)){
problemContent
=
"$problemContent\n\n"
}
et_input_problem
.
setText
(
"$problemContent${tv_problem_impact.text}:"
)
et_input_problem
.
setSelection
(
et_input_problem
.
text
.
toString
().
length
)
recycle
.
smoothScrollToPosition
(
mData
.
size
-
1
)
}
et_input_problem
.
addTextChangedListener
(
object
:
TextWatcher
{
...
...
m-im/src/main/res/drawable/bg_gradient_fff_
33
fff.xml
→
m-im/src/main/res/drawable/bg_gradient_fff_
40
fff.xml
View file @
10d16864
...
...
@@ -2,7 +2,7 @@
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<gradient
android:startColor=
"#
33
ffffff"
android:startColor=
"#
40
ffffff"
android:endColor=
"@color/white"
android:angle=
"360"
/>
...
...
m-im/src/main/res_uikit/layout/im_view_question_infomation.xml
View file @
10d16864
...
...
@@ -109,6 +109,9 @@
android:id=
"@+id/hsv_problem_tips"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
app:layout_constraintEnd_toEndOf=
"parent"
android:layout_marginEnd=
"72dp"
android:scrollbars=
"none"
app:layout_constraintTop_toBottomOf=
"@id/et_input_problem"
>
<LinearLayout
...
...
@@ -172,7 +175,7 @@
android:layout_width=
"86dp"
android:layout_height=
"28dp"
android:layout_marginBottom=
"16dp"
android:background=
"@drawable/bg_gradient_fff_
33
fff"
android:background=
"@drawable/bg_gradient_fff_
40
fff"
android:gravity=
"center|bottom"
app:layout_constraintBottom_toBottomOf=
"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