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
3617458a
Commit
3617458a
authored
Jul 08, 2021
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat : UI优化
parent
78b46c65
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
215 additions
and
151 deletions
+215
-151
config.gradle
config.gradle
+1
-1
CmsExamQuestionPaperActivity.kt
m-im/src/main/java/com/yidianling/im/ui/activity/CmsExamQuestionPaperActivity.kt
+22
-23
item_left_describe_layout.xml
m-im/src/main/res/layout/item_left_describe_layout.xml
+20
-9
item_left_more_check_layout.xml
m-im/src/main/res/layout/item_left_more_check_layout.xml
+55
-39
item_left_one_check_layout.xml
m-im/src/main/res/layout/item_left_one_check_layout.xml
+40
-25
item_left_text_layout.xml
m-im/src/main/res/layout/item_left_text_layout.xml
+29
-14
item_right_text_layout.xml
m-im/src/main/res/layout/item_right_text_layout.xml
+32
-15
ic_input_add.webp
m-im/src/main/res/mipmap-xhdpi/ic_input_add.webp
+0
-0
ic_input_add.png
m-im/src/main/res/mipmap-xxhdpi/ic_input_add.png
+0
-0
im_ico_default_avatar.png
m-im/src/main/res_uikit/drawable-xhdpi/im_ico_default_avatar.png
+0
-0
question_title_back.png
m-im/src/main/res_uikit/drawable-xhdpi/question_title_back.png
+0
-0
im_view_question_infomation.xml
m-im/src/main/res_uikit/layout/im_view_question_infomation.xml
+16
-25
No files found.
config.gradle
View file @
3617458a
...
@@ -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.
39
"
,
"m-im"
:
"0.0.19.
41
"
,
"m-dynamic"
:
"0.0.7.24"
,
"m-dynamic"
:
"0.0.7.24"
,
"m-article"
:
"0.0.0.10"
,
"m-article"
:
"0.0.0.10"
,
...
...
m-im/src/main/java/com/yidianling/im/ui/activity/CmsExamQuestionPaperActivity.kt
View file @
3617458a
...
@@ -191,14 +191,9 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
...
@@ -191,14 +191,9 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
}
}
//发送回答问题信息
//发送回答问题信息
sendAnswerText
(
list
,
otherInput
)
sendAnswerText
(
list
,
otherInput
)
//回答问题参数创建
val
answerQuestionRequestBean
=
answerQuestionRequestBean
(
question
,
list
,
""
)
//灵犀消息 参数创建
//灵犀消息 参数创建
addType70Request
(
answerQuestionRequestBean
)
addType71Request
(
list
[
0
].
name
,
list
[
0
].
id
)
makeType6
(
postion
+
1
)
makeType6
(
postion
+
1
)
}
}
})
})
...
@@ -247,7 +242,15 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
...
@@ -247,7 +242,15 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
if
(
noMore
)
{
if
(
noMore
)
{
//最后一题 点击发送
//最后一题 点击发送
lastAnswer
=
et_input_problem
.
text
.
toString
()
lastAnswer
=
et_input_problem
.
text
.
toString
()
addType71Request
(
et_input_problem
.
text
.
toString
())
if
(
mType71RequestList
.
size
>
0
)
{
addType71Request
(
et_input_problem
.
text
.
toString
(),
mType71RequestList
[
0
].
data
.
cateId
)
}
else
{
addType71Request
(
et_input_problem
.
text
.
toString
(),
""
)
}
tv_finish
.
visibility
=
View
.
VISIBLE
tv_finish
.
visibility
=
View
.
VISIBLE
mackType2
(
lastAnswer
)
mackType2
(
lastAnswer
)
setFirstAndLatQuestion
(
"我们根据您的情况安排了一位高级咨询顾问,帮助您匹配最合适的咨询服务,点击按钮现在去沟通~"
)
setFirstAndLatQuestion
(
"我们根据您的情况安排了一位高级咨询顾问,帮助您匹配最合适的咨询服务,点击按钮现在去沟通~"
)
...
@@ -304,16 +307,9 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
...
@@ -304,16 +307,9 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
if
(
char
.
contains
(
"\n"
))
{
if
(
char
.
contains
(
"\n"
))
{
val
s
=
char
.
toString
().
replace
(
"\n"
,
""
)
val
s
=
char
.
toString
().
replace
(
"\n"
,
""
)
if
(
TextUtils
.
isEmpty
(
s
))
{
if
(
TextUtils
.
isEmpty
(
s
))
{
tv_send
.
visibility
=
LinearLayout
.
GONE
et_input_problem
.
setText
(
""
)
et_input_problem
.
setText
(
""
)
}
else
{
tv_send
.
visibility
=
LinearLayout
.
VISIBLE
}
}
}
else
{
tv_send
.
visibility
=
LinearLayout
.
VISIBLE
}
}
}
else
{
tv_send
.
visibility
=
LinearLayout
.
GONE
}
}
}
}
...
@@ -537,11 +533,15 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
...
@@ -537,11 +533,15 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
list
.
forEach
{
list
.
forEach
{
answerStr
=
"$answerStr#${it.name} "
answerStr
=
"$answerStr#${it.name} "
}
}
if
(
otherInput
.
isNotEmpty
())
{
if
(
"#其他"
==
answerStr
)
{
answerStr
=
"$answerStr \n \n $otherInput"
answerStr
=
"其他"
}
}
else
{
if
(!
answerStr
.
contains
(
"其他"
))
{
if
(
otherInput
.
isNotEmpty
())
{
answerStr
=
answerStr
.
substring
(
1
).
replace
(
"#"
,
"、"
)
answerStr
=
"$answerStr \n \n $otherInput"
}
if
(!
answerStr
.
contains
(
"其他"
)||
otherInput
.
isEmpty
())
{
answerStr
=
answerStr
.
substring
(
1
).
replace
(
"#"
,
"、"
)
}
}
}
mackType2
(
answerStr
)
mackType2
(
answerStr
)
...
@@ -683,16 +683,15 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
...
@@ -683,16 +683,15 @@ class CmsExamQuestionPaperActivity : BaseActivity() {
/**
/**
* 创建主诉消息参数
* 创建主诉消息参数
* */
* */
private
fun
addType71Request
(
answer
:
String
)
{
private
fun
addType71Request
(
answer
:
String
,
optionId
:
String
)
{
val
answerQuestionType71RequestBean
=
AnswerQuestionType71RequestBean
()
val
answerQuestionType71RequestBean
=
AnswerQuestionType71RequestBean
()
val
dataBean
=
AnswerQuestionType71RequestBean
.
DataBean
()
val
dataBean
=
AnswerQuestionType71RequestBean
.
DataBean
()
dataBean
.
answer
=
answer
dataBean
.
answer
=
answer
dataBean
.
cateId
=
optionId
if
(
mType70RequestList
.
size
>
0
&&
mType70RequestList
[
0
].
data
.
answers
.
size
>
0
&&
mType70RequestList
[
0
].
data
.
answers
[
0
].
optionId
!=
null
)
{
dataBean
.
cateId
=
mType70RequestList
[
0
].
data
.
answers
[
0
].
optionId
}
answerQuestionType71RequestBean
.
data
=
dataBean
answerQuestionType71RequestBean
.
data
=
dataBean
toUid
.
let
{
toUid
.
let
{
answerQuestionType71RequestBean
.
toUid
=
toUid
answerQuestionType71RequestBean
.
toUid
=
toUid
}
}
...
...
m-im/src/main/res/layout/item_left_describe_layout.xml
View file @
3617458a
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:id=
"@+id/type5_parent"
android:id=
"@+id/type5_parent"
android:paddingLeft=
"12dp"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
android:layout_height=
"wrap_content"
android:padding=
"12dp"
>
<ImageView
<ImageView
android:id=
"@+id/iv_header"
android:id=
"@+id/iv_header"
...
@@ -13,24 +13,26 @@
...
@@ -13,24 +13,26 @@
android:layout_height=
"36dp"
android:layout_height=
"36dp"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:src=
"@drawable/im_ico_default_avatar"
android:src=
"@drawable/im_ico_default_avatar"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_width=
"0dp"
app:layout_constraintHorizontal_weight=
"1"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"8dp"
android:layout_marginStart=
"8dp"
android:layout_marginEnd=
"8dp"
android:background=
"@drawable/im_custom_message_round_white_6dp_bg"
android:background=
"@drawable/im_custom_message_round_white_6dp_bg"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:padding=
"12dp"
android:padding=
"12dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toRightOf=
"@id/iv_header"
app:layout_constraintLeft_toRightOf=
"@id/iv_header"
app:layout_constraintRight_toLeftOf=
"@id/iv_right"
app:layout_constraintTop_toTopOf=
"parent"
>
app:layout_constraintTop_toTopOf=
"parent"
>
<TextView
<TextView
android:id=
"@+id/multiple_choice_title"
android:id=
"@+id/multiple_choice_title"
android:layout_width=
"
239dp
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
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"
...
@@ -40,7 +42,7 @@
...
@@ -40,7 +42,7 @@
<TextView
<TextView
android:id=
"@+id/tv_notes"
android:id=
"@+id/tv_notes"
android:layout_width=
"
239dp
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"4dp"
android:layout_marginTop=
"4dp"
android:text=
"@string/question_notes"
android:text=
"@string/question_notes"
...
@@ -57,7 +59,7 @@
...
@@ -57,7 +59,7 @@
<TextView
<TextView
android:id=
"@+id/example"
android:id=
"@+id/example"
android:layout_width=
"
239dp
"
android:layout_width=
"
match_parent
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/im_color_242424"
android:textColor=
"@color/im_color_242424"
android:textSize=
"@dimen/platform_dp_14"
android:textSize=
"@dimen/platform_dp_14"
...
@@ -66,4 +68,12 @@
...
@@ -66,4 +68,12 @@
</LinearLayout>
</LinearLayout>
<View
android:id=
"@+id/iv_right"
android:layout_width=
"36dp"
android:layout_height=
"36dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
m-im/src/main/res/layout/item_left_more_check_layout.xml
View file @
3617458a
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
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=
"wrap_content"
>
android:layout_height=
"wrap_content"
android:padding=
"12dp"
>
<ImageView
<ImageView
android:id=
"@+id/iv_header"
android:id=
"@+id/iv_header"
...
@@ -11,61 +12,75 @@
...
@@ -11,61 +12,75 @@
android:layout_height=
"36dp"
android:layout_height=
"36dp"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:src=
"@drawable/im_ico_default_avatar"
android:src=
"@drawable/im_ico_default_avatar"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"
wrap_content
"
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin
Lef
t=
"8dp"
android:layout_margin
Star
t=
"8dp"
android:
background=
"@drawable/im_custom_message_round_white_6dp_bg
"
android:
layout_marginEnd=
"8dp
"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:padding=
"12dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintHorizontal_weight=
"1"
app:layout_constraintLeft_toRightOf=
"@id/iv_header"
app:layout_constraintLeft_toRightOf=
"@id/iv_header"
app:layout_constraintRight_toLeftOf=
"@id/iv_right"
app:layout_constraintTop_toTopOf=
"parent"
>
app:layout_constraintTop_toTopOf=
"parent"
>
<TextView
<RelativeLayout
android:id=
"@+id/more_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/im_color_242424"
android:background=
"@drawable/im_custom_message_round_white_6dp_bg"
android:textSize=
"@dimen/im_text_size_17"
android:padding=
"12dp"
>
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"请问是发生了什么事情导致的呢?(多选)?"
/>
<androidx.recyclerview.widget.RecyclerView
<TextView
android:id=
"@+id/tv_more_list"
android:id=
"@+id/more_title"
android:layout_width=
"263dp"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:textColor=
"@color/im_color_242424"
android:orientation=
"vertical"
android:textSize=
"@dimen/im_text_size_17"
app:layoutManager=
"androidx.recyclerview.widget.GridLayoutManager"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintStart_toStartOf=
"@id/multiple_choice_title"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/multiple_choice_title"
tools:text=
"请问是发生了什么事多选)?"
/>
tools:itemCount=
"6"
tools:listitem=
"@layout/left_one_check_layout_item"
tools:spanCount=
"2"
/>
<TextView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/tv_more_define"
android:id=
"@+id/tv_more_list"
android:layout_width=
"110dp"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"right"
android:layout_below=
"@id/more_title"
android:textColor=
"@color/white"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"16dp"
android:orientation=
"vertical"
android:background=
"@drawable/im_background_18dp_ebebeb"
app:layoutManager=
"androidx.recyclerview.widget.GridLayoutManager"
android:gravity=
"center"
tools:itemCount=
"6"
android:paddingTop=
"@dimen/platform_dp_8"
tools:listitem=
"@layout/left_one_check_layout_item"
android:paddingBottom=
"@dimen/platform_dp_8"
tools:spanCount=
"2"
android:text=
"确定"
tools:visibility=
"visible"
/>
android:textSize=
"@dimen/im_text_size_15"
>
</TextView>
<TextView
android:id=
"@+id/tv_more_define"
android:layout_width=
"110dp"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/tv_more_list"
android:layout_marginTop=
"16dp"
android:background=
"@drawable/im_background_18dp_ebebeb"
android:gravity=
"center"
android:layout_alignParentRight=
"true"
android:paddingTop=
"@dimen/platform_dp_8"
android:paddingBottom=
"@dimen/platform_dp_8"
android:text=
"确定"
android:textColor=
"@color/white"
android:textSize=
"@dimen/im_text_size_15"
tools:visibility=
"visible"
/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<View
android:id=
"@+id/iv_right"
android:layout_width=
"36dp"
android:layout_height=
"36dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
m-im/src/main/res/layout/item_left_one_check_layout.xml
View file @
3617458a
...
@@ -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=
"wrap_content"
android:layout_height=
"wrap_content"
android:padding
Left
=
"12dp"
>
android:padding=
"12dp"
>
<ImageView
<ImageView
android:id=
"@+id/iv_header"
android:id=
"@+id/iv_header"
...
@@ -12,45 +12,59 @@
...
@@ -12,45 +12,59 @@
android:layout_height=
"36dp"
android:layout_height=
"36dp"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:src=
"@drawable/im_ico_default_avatar"
android:src=
"@drawable/im_ico_default_avatar"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
<LinearLayout
<LinearLayout
android:layout_width=
"
wrap_content
"
android:layout_width=
"
0dp
"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"8dp"
android:layout_marginStart=
"8dp"
android:background=
"@drawable/im_custom_message_round_white_6dp_bg"
android:layout_marginEnd=
"8dp"
android:maxWidth=
"263dp"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:padding=
"12dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintHorizontal_weight=
"1"
app:layout_constraintLeft_toRightOf=
"@id/iv_header"
app:layout_constraintLeft_toRightOf=
"@id/iv_header"
app:layout_constraintRight_toLeftOf=
"@id/iv_right"
app:layout_constraintTop_toTopOf=
"parent"
>
app:layout_constraintTop_toTopOf=
"parent"
>
<TextView
<RelativeLayout
android:id=
"@+id/multiple_choice_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/im_color_242424"
android:background=
"@drawable/im_custom_message_round_white_6dp_bg"
android:textSize=
"@dimen/im_text_size_17"
android:padding=
"12dp"
>
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"请问是发生"
/>
<androidx.recyclerview.widget.RecyclerView
<TextView
android:id=
"@+id/tv_one_list"
android:id=
"@+id/multiple_choice_title"
android:layout_width=
"263dp"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
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_constraintLeft_toLeftOf=
"parent"
tools:itemCount=
"6"
app:layout_constraintTop_toTopOf=
"parent"
tools:listitem=
"@layout/left_one_check_layout_item"
tools:text=
"请问是发生"
/>
tools:spanCount=
"2"
tools:visibility=
"visible"
/>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/tv_one_list"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@id/multiple_choice_title"
android:layout_gravity=
"center_horizontal"
android:layout_marginBottom=
"8dp"
android:textColor=
"@color/im_color_242424"
android:textSize=
"@dimen/im_text_size_17"
tools:itemCount=
"6"
tools:listitem=
"@layout/left_one_check_layout_item"
tools:spanCount=
"2"
tools:visibility=
"visible"
/>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<View
android:id=
"@+id/iv_right"
android:layout_width=
"36dp"
android:layout_height=
"36dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
m-im/src/main/res/layout/item_left_text_layout.xml
View file @
3617458a
...
@@ -4,9 +4,7 @@
...
@@ -4,9 +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=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingLeft=
"12dp"
android:padding=
"12dp"
>
android:paddingTop=
"12dp"
android:paddingBottom=
"12dp"
>
<ImageView
<ImageView
android:id=
"@+id/iv_header"
android:id=
"@+id/iv_header"
...
@@ -14,23 +12,39 @@
...
@@ -14,23 +12,39 @@
android:layout_height=
"36dp"
android:layout_height=
"36dp"
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:src=
"@drawable/im_ico_default_avatar"
android:src=
"@drawable/im_ico_default_avatar"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
/>
<TextView
<LinearLayout
android:id=
"@+id/tv_left_text"
android:layout_width=
"0dp"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"left"
android:orientation=
"vertical"
android:layout_marginLeft=
"8dp"
android:layout_marginLeft=
"8dp"
android:background=
"@drawable/im_custom_message_round_white_6dp_bg"
android:layout_marginRight=
"8dp"
android:maxWidth=
"270dp"
android:padding=
"12dp"
android:textColor=
"@color/im_color_242424"
android:textSize=
"@dimen/im_text_size_17"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintHorizontal_weight=
"1"
app:layout_constraintLeft_toRightOf=
"@id/iv_header"
app:layout_constraintLeft_toRightOf=
"@id/iv_header"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintRight_toLeftOf=
"@id/iv_right"
tools:text=
"你好,为了更好的帮助您我们需要了解些基本信息,我们将会严格保护你的隐私安全,请放心。"
/>
app:layout_constraintTop_toTopOf=
"parent"
>
<TextView
android:id=
"@+id/tv_left_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/im_custom_message_round_white_6dp_bg"
android:padding=
"12dp"
android:textColor=
"@color/im_color_242424"
android:textSize=
"@dimen/im_text_size_17"
app:layout_constraintHorizontal_weight=
"1"
tools:text=
"你好,为了更好的帮助您我们需要了解些基本信息,我们将会严格保护你的隐私安全,请放心。"
/>
</LinearLayout>
<View
android:id=
"@+id/iv_right"
android:layout_width=
"36dp"
android:layout_height=
"36dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
m-im/src/main/res/layout/item_right_text_layout.xml
View file @
3617458a
...
@@ -4,9 +4,15 @@
...
@@ -4,9 +4,15 @@
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=
"wrap_content"
android:layout_height=
"wrap_content"
android:paddingTop=
"12dp"
android:padding=
"12dp"
>
android:paddingRight=
"12dp"
android:paddingBottom=
"12dp"
>
<View
android:id=
"@+id/iv_left"
android:layout_width=
"36dp"
android:layout_height=
"36dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintLeft_toLeftOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<androidx.cardview.widget.CardView
<androidx.cardview.widget.CardView
android:id=
"@+id/cv_header"
android:id=
"@+id/cv_header"
...
@@ -14,7 +20,6 @@
...
@@ -14,7 +20,6 @@
android:layout_height=
"36dp"
android:layout_height=
"36dp"
android:elevation=
"0dp"
android:elevation=
"0dp"
app:cardCornerRadius=
"18dp"
app:cardCornerRadius=
"18dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintRight_toRightOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
app:layout_constraintTop_toTopOf=
"parent"
>
...
@@ -25,20 +30,31 @@
...
@@ -25,20 +30,31 @@
android:layout_centerVertical=
"true"
android:layout_centerVertical=
"true"
android:src=
"@drawable/platform_head_place_hold_pic"
/>
android:src=
"@drawable/platform_head_place_hold_pic"
/>
</androidx.cardview.widget.CardView>
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width=
"0dp"
<TextView
android:id=
"@+id/tv_right_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"right"
android:layout_marginLeft=
"8dp"
android:layout_marginRight=
"8dp"
android:layout_marginRight=
"8dp"
android:background=
"@drawable/im_question_message_round_1da1f2_8dp_bg"
android:orientation=
"vertical"
android:maxWidth=
"270dp"
android:textColor=
"@color/white"
android:textSize=
"@dimen/im_text_size_17"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintHorizontal_weight=
"1"
app:layout_constraintLeft_toRightOf=
"@id/iv_left"
app:layout_constraintRight_toLeftOf=
"@id/cv_header"
app:layout_constraintRight_toLeftOf=
"@id/cv_header"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
tools:text=
"你好,为了更好的帮助您我们需要了解些基本信息,我们将会严格保护你的隐私安全,请放心。"
/>
<TextView
android:id=
"@+id/tv_right_text"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/im_question_message_round_1da1f2_8dp_bg"
android:textColor=
"@color/white"
android:textSize=
"@dimen/im_text_size_17"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintRight_toLeftOf=
"@id/cv_header"
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"你好,为了更好的。"
/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
m-im/src/main/res/mipmap-xhdpi/ic_input_add.webp
deleted
100644 → 0
View file @
78b46c65
File deleted
m-im/src/main/res/mipmap-xxhdpi/ic_input_add.png
0 → 100644
View file @
3617458a
1.34 KB
m-im/src/main/res_uikit/drawable-xhdpi/im_ico_default_avatar.png
View replaced file @
78b46c65
View file @
3617458a
10.4 KB
|
W:
|
H:
15.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
m-im/src/main/res_uikit/drawable-xhdpi/question_title_back.png
0 → 100644
View file @
3617458a
1.31 KB
m-im/src/main/res_uikit/layout/im_view_question_infomation.xml
View file @
3617458a
...
@@ -16,20 +16,11 @@
...
@@ -16,20 +16,11 @@
android:layout_width=
"36dp"
android:layout_width=
"36dp"
android:layout_height=
"44dp"
android:layout_height=
"44dp"
android:paddingStart=
"16dp"
android:paddingStart=
"16dp"
android:paddingTop=
"1
0
dp"
android:paddingTop=
"1
4
dp"
android:paddingEnd=
"1
2
dp"
android:paddingEnd=
"1
6
dp"
android:paddingBottom=
"1
0
dp"
android:paddingBottom=
"1
4
dp"
android:scaleType=
"centerCrop"
android:scaleType=
"centerCrop"
android:src=
"@drawable/im_titlebar_back"
/>
android:src=
"@drawable/question_title_back"
/>
<ImageView
android:id=
"@+id/iv_close"
android:layout_width=
"26dp"
android:layout_height=
"30dp"
android:layout_centerVertical=
"true"
android:layout_marginRight=
"6dp"
android:layout_toLeftOf=
"@+id/tv_title"
android:src=
"@drawable/im_ico_default_avatar"
/>
<TextView
<TextView
android:id=
"@+id/tv_title"
android:id=
"@+id/tv_title"
...
@@ -103,7 +94,7 @@
...
@@ -103,7 +94,7 @@
android:background=
"@color/white"
android:background=
"@color/white"
android:gravity=
"top"
android:gravity=
"top"
android:hint=
"请简单描述遇到的问题......"
android:hint=
"请简单描述遇到的问题......"
android:maxHeight=
"
2
00dp"
android:maxHeight=
"
1
00dp"
android:padding=
"12dp"
android:padding=
"12dp"
android:textColor=
"@color/color_242424"
android:textColor=
"@color/color_242424"
android:textColorHint=
"@color/color_bfbfbf"
android:textColorHint=
"@color/color_bfbfbf"
...
@@ -117,7 +108,7 @@
...
@@ -117,7 +108,7 @@
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"
android:
layout_marginEnd=
"69
dp"
android:
paddingRight=
"85
dp"
android:layout_marginBottom=
"14dp"
android:layout_marginBottom=
"14dp"
android:background=
"@color/white"
android:background=
"@color/white"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
...
@@ -136,8 +127,10 @@
...
@@ -136,8 +127,10 @@
android:layout_height=
"28dp"
android:layout_height=
"28dp"
android:background=
"@drawable/bg_shape_f8f8f8_r4"
android:background=
"@drawable/bg_shape_f8f8f8_r4"
android:drawableStart=
"@mipmap/ic_input_add"
android:drawableStart=
"@mipmap/ic_input_add"
android:drawablePadding=
"
5
dp"
android:drawablePadding=
"
2
dp"
android:gravity=
"center"
android:gravity=
"center"
android:paddingTop=
"4dp"
android:paddingBottom=
"4dp"
android:paddingStart=
"8dp"
android:paddingStart=
"8dp"
android:paddingEnd=
"8dp"
android:paddingEnd=
"8dp"
android:text=
"当前问题"
android:text=
"当前问题"
...
@@ -151,7 +144,7 @@
...
@@ -151,7 +144,7 @@
android:layout_marginStart=
"12dp"
android:layout_marginStart=
"12dp"
android:background=
"@drawable/bg_shape_f8f8f8_r4"
android:background=
"@drawable/bg_shape_f8f8f8_r4"
android:drawableStart=
"@mipmap/ic_input_add"
android:drawableStart=
"@mipmap/ic_input_add"
android:drawablePadding=
"
5
dp"
android:drawablePadding=
"
2
dp"
android:gravity=
"center"
android:gravity=
"center"
android:paddingStart=
"8dp"
android:paddingStart=
"8dp"
android:paddingEnd=
"8dp"
android:paddingEnd=
"8dp"
...
@@ -166,7 +159,7 @@
...
@@ -166,7 +159,7 @@
android:layout_marginStart=
"12dp"
android:layout_marginStart=
"12dp"
android:background=
"@drawable/bg_shape_f8f8f8_r4"
android:background=
"@drawable/bg_shape_f8f8f8_r4"
android:drawableStart=
"@mipmap/ic_input_add"
android:drawableStart=
"@mipmap/ic_input_add"
android:drawablePadding=
"
5
dp"
android:drawablePadding=
"
2
dp"
android:gravity=
"center"
android:gravity=
"center"
android:paddingStart=
"8dp"
android:paddingStart=
"8dp"
android:paddingEnd=
"8dp"
android:paddingEnd=
"8dp"
...
@@ -179,10 +172,10 @@
...
@@ -179,10 +172,10 @@
<LinearLayout
<LinearLayout
android:id=
"@+id/ll_send"
android:id=
"@+id/ll_send"
android:layout_width=
"86dp"
android:layout_width=
"86dp"
android:layout_height=
"
36
dp"
android:layout_height=
"
0
dp"
a
ndroid:layout_marginBottom=
"8dp
"
a
pp:layout_constraintVertical_weight=
"1
"
android:background=
"
#80ffffff
"
android:background=
"
@color/white
"
android:gravity=
"center"
android:gravity=
"center
|bottom
"
app:layout_constraintBottom_toBottomOf=
"@id/et_input_problem"
app:layout_constraintBottom_toBottomOf=
"@id/et_input_problem"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"@id/et_input_problem"
>
app:layout_constraintTop_toTopOf=
"@id/et_input_problem"
>
...
@@ -195,9 +188,7 @@
...
@@ -195,9 +188,7 @@
android:gravity=
"center"
android:gravity=
"center"
android:text=
"发送"
android:text=
"发送"
android:textColor=
"@color/white"
android:textColor=
"@color/white"
android:textSize=
"15sp"
android:textSize=
"15sp"
/>
android:visibility=
"gone"
tools:visibility=
"visible"
/>
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
...
...
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