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
e65e3fce
Commit
e65e3fce
authored
Jun 24, 2021
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:输入框代码提交
parent
08271c4a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
153 additions
and
5 deletions
+153
-5
QuestionInformationView.kt
m-im/src/main/java/com/yidianling/uikit/business/session/view/QuestionInformationView.kt
+5
-1
bg_shape_1da1f2_r4.xml
m-im/src/main/res/drawable/bg_shape_1da1f2_r4.xml
+7
-0
bg_shape_f8f8f8_r4.xml
m-im/src/main/res/drawable/bg_shape_f8f8f8_r4.xml
+7
-0
ic_input_add.webp
m-im/src/main/res/mipmap-xhdpi/ic_input_add.webp
+0
-0
colors.xml
m-im/src/main/res/values/colors.xml
+3
-0
im_view_question_infomation.xml
m-im/src/main/res_uikit/layout/im_view_question_infomation.xml
+131
-4
No files found.
m-im/src/main/java/com/yidianling/uikit/business/session/view/QuestionInformationView.kt
View file @
e65e3fce
...
@@ -105,8 +105,12 @@ class QuestionInformationView(
...
@@ -105,8 +105,12 @@ class QuestionInformationView(
}
}
override
fun
showOtherEdit
(
list
:
List
<
OptionsBean
?>?)
{
override
fun
showOtherEdit
(
list
:
List
<
OptionsBean
?>?)
{
// 滚动到底部
recycle
.
smoothScrollToPosition
(
mData
.
size
-
1
)
//弹出输入框
//弹出输入框
ToastUtil
.
toastShort
(
"弹出输入框"
)
cl_input
.
visibility
=
VISIBLE
// 打开软件盘
}
}
})
})
...
...
m-im/src/main/res/drawable/bg_shape_1da1f2_r4.xml
0 → 100644
View file @
e65e3fce
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"@color/platform_color_1DA1F2"
/>
<corners
android:radius=
"4dp"
/>
</shape>
\ No newline at end of file
m-im/src/main/res/drawable/bg_shape_f8f8f8_r4.xml
0 → 100644
View file @
e65e3fce
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<solid
android:color=
"@color/color_f8f8f8"
/>
<corners
android:radius=
"4dp"
/>
</shape>
\ No newline at end of file
m-im/src/main/res/mipmap-xhdpi/ic_input_add.webp
0 → 100644
View file @
e65e3fce
File added
m-im/src/main/res/values/colors.xml
View file @
e65e3fce
...
@@ -59,4 +59,7 @@
...
@@ -59,4 +59,7 @@
<color
name=
"im_color_grey_d0d0d0"
>
#d0d0d0
</color>
<color
name=
"im_color_grey_d0d0d0"
>
#d0d0d0
</color>
<color
name=
"color_9f9f9f"
>
#9f9f9f
</color>
<color
name=
"color_9f9f9f"
>
#9f9f9f
</color>
<color
name=
"color_666666"
>
#666666
</color>
<color
name=
"color_666666"
>
#666666
</color>
<color
name=
"color_242424"
>
#242424
</color>
<color
name=
"color_bfbfbf"
>
#bfbfbf
</color>
<color
name=
"color_f8f8f8"
>
#f8f8f8
</color>
</resources>
</resources>
m-im/src/main/res_uikit/layout/im_view_question_infomation.xml
View file @
e65e3fce
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android=
"http://schemas.android.com/apk/res/android"
<merge
xmlns:android=
"http://schemas.android.com/apk/res/android"
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=
"match_parent"
android:layout_height=
"match_parent"
...
@@ -47,13 +48,140 @@
...
@@ -47,13 +48,140 @@
</RelativeLayout>
</RelativeLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:ignore=
"MissingConstraints"
>
<androidx.recyclerview.widget.RecyclerView
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/recycle"
android:id=
"@+id/recycle"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_height=
"0dp"
android:layout_weight=
"1"
android:background=
"@color/platform_color_F0F0F0"
android:background=
"@color/platform_color_F0F0F0"
>
app:layout_constraintBottom_toTopOf=
"@id/cl_input"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintVertical_weight=
"1"
/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/cl_input"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:orientation=
"vertical"
android:visibility=
"gone"
app:layout_constraintBottom_toBottomOf=
"parent"
>
<TextView
android:id=
"@+id/tv_problem"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingStart=
"12dp"
android:paddingBottom=
"13dp"
android:textColor=
"@color/color_242424"
android:textSize=
"14sp"
android:visibility=
"gone"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
tools:text=
"已选:"
/>
<EditText
android:id=
"@+id/et_input_problem"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@null"
android:gravity=
"top"
android:hint=
"请简单描述遇到的问题......"
android:maxHeight=
"200dp"
android:padding=
"12dp"
android:textColor=
"@color/color_242424"
android:textColorHint=
"@color/color_bfbfbf"
android:textSize=
"17sp"
app:layout_constraintTop_toBottomOf=
"@id/tv_problem"
/>
<HorizontalScrollView
android:id=
"@+id/hsv_problem_tips"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"69dp"
android:layout_marginBottom=
"14dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/et_input_problem"
>
<LinearLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"12dp"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tv_cur_problem"
android:layout_width=
"wrap_content"
android:layout_height=
"28dp"
android:background=
"@drawable/bg_shape_f8f8f8_r4"
android:drawableStart=
"@mipmap/ic_input_add"
android:drawablePadding=
"5dp"
android:gravity=
"center"
android:paddingStart=
"8dp"
android:paddingEnd=
"8dp"
android:text=
"当前问题"
android:textColor=
"@color/color_242424"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/tv_duration"
android:layout_width=
"wrap_content"
android:layout_height=
"28dp"
android:layout_marginStart=
"12dp"
android:background=
"@drawable/bg_shape_f8f8f8_r4"
android:drawableStart=
"@mipmap/ic_input_add"
android:drawablePadding=
"5dp"
android:gravity=
"center"
android:paddingStart=
"8dp"
android:paddingEnd=
"8dp"
android:text=
"持续时间"
android:textColor=
"@color/color_242424"
android:textSize=
"14sp"
/>
<TextView
android:id=
"@+id/tv_problem_impact"
android:layout_width=
"wrap_content"
android:layout_height=
"28dp"
android:layout_marginStart=
"12dp"
android:background=
"@drawable/bg_shape_f8f8f8_r4"
android:drawableStart=
"@mipmap/ic_input_add"
android:drawablePadding=
"5dp"
android:gravity=
"center"
android:paddingStart=
"8dp"
android:paddingEnd=
"8dp"
android:text=
"问题影响"
android:textColor=
"@color/color_242424"
android:textSize=
"14sp"
/>
</LinearLayout>
</HorizontalScrollView>
<LinearLayout
android:layout_width=
"86dp"
android:layout_height=
"36dp"
android:layout_marginBottom=
"8dp"
android:background=
"#80ffffff"
android:gravity=
"center"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
>
<TextView
android:id=
"@+id/tv_send"
android:layout_width=
"54dp"
android:layout_height=
"28dp"
android:background=
"@drawable/bg_shape_1da1f2_r4"
android:gravity=
"center"
android:text=
"发送"
android:textColor=
"@color/white"
android:textSize=
"15sp"
android:visibility=
"gone"
/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.recyclerview.widget.RecyclerView>
</merge>
</merge>
\ No newline at end of file
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