Commit 10d16864 by YKai

feat: m-im组件升级

parent 5481bdd5
...@@ -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.46", "m-im" : "0.0.19.48",
"m-dynamic" : "0.0.7.25", "m-dynamic" : "0.0.7.25",
"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.46", "m-im" : "0.0.19.48",
"m-dynamic" : "0.0.7.25", "m-dynamic" : "0.0.7.25",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
......
...@@ -274,20 +274,29 @@ class CmsExamQuestionPaperActivity : BaseActivity() { ...@@ -274,20 +274,29 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
} }
tv_cur_problem.setOnClickListener { tv_cur_problem.setOnClickListener {
problemContent = et_input_problem.text.toString() problemContent = et_input_problem.text.toString()
et_input_problem.setText("$problemContent${tv_cur_problem.text}:\n") if (!TextUtils.isEmpty(problemContent)){
et_input_problem.setSelection(et_input_problem.text.toString().length - 1) 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) recycle.smoothScrollToPosition(mData.size - 1)
} }
tv_duration.setOnClickListener { tv_duration.setOnClickListener {
problemContent = et_input_problem.text.toString() problemContent = et_input_problem.text.toString()
et_input_problem.setText("$problemContent\n${tv_duration.text}:\n") if (!TextUtils.isEmpty(problemContent)){
et_input_problem.setSelection(et_input_problem.text.toString().length - 1) 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) recycle.smoothScrollToPosition(mData.size - 1)
} }
tv_problem_impact.setOnClickListener { tv_problem_impact.setOnClickListener {
problemContent = et_input_problem.text.toString() problemContent = et_input_problem.text.toString()
et_input_problem.setText("$problemContent\n${tv_problem_impact.text}:\n") if (!TextUtils.isEmpty(problemContent)){
et_input_problem.setSelection(et_input_problem.text.toString().length - 1) 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) recycle.smoothScrollToPosition(mData.size - 1)
} }
et_input_problem.addTextChangedListener(object : TextWatcher { et_input_problem.addTextChangedListener(object : TextWatcher {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"> <shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient <gradient
android:startColor="#33ffffff" android:startColor="#40ffffff"
android:endColor="@color/white" android:endColor="@color/white"
android:angle="360" android:angle="360"
/> />
......
...@@ -109,6 +109,9 @@ ...@@ -109,6 +109,9 @@
android:id="@+id/hsv_problem_tips" android:id="@+id/hsv_problem_tips"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" 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"> app:layout_constraintTop_toBottomOf="@id/et_input_problem">
<LinearLayout <LinearLayout
...@@ -172,7 +175,7 @@ ...@@ -172,7 +175,7 @@
android:layout_width="86dp" android:layout_width="86dp"
android:layout_height="28dp" android:layout_height="28dp"
android:layout_marginBottom="16dp" android:layout_marginBottom="16dp"
android:background="@drawable/bg_gradient_fff_33fff" android:background="@drawable/bg_gradient_fff_40fff"
android:gravity="center|bottom" android:gravity="center|bottom"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment