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
43602498
Commit
43602498
authored
Aug 31, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:UI修改
parent
e34dcd42
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
9 deletions
+30
-9
ConsultantTopAdapter.kt
m-consultant/src/main/java/com/yidianling/consultant/adapter/ConsultantTopAdapter.kt
+11
-0
consultant_activity_expert_search_list.xml
m-consultant/src/main/res/layout/consultant_activity_expert_search_list.xml
+2
-1
consultant_top_banner_item.xml
m-consultant/src/main/res/layout/consultant_top_banner_item.xml
+17
-8
No files found.
m-consultant/src/main/java/com/yidianling/consultant/adapter/ConsultantTopAdapter.kt
View file @
43602498
...
...
@@ -4,6 +4,8 @@ import android.content.Context
import
android.view.LayoutInflater
import
android.view.View
import
android.view.ViewGroup
import
android.widget.FrameLayout
import
androidx.constraintlayout.widget.ConstraintLayout
import
androidx.recyclerview.widget.RecyclerView
import
com.ydl.webview.H5Params
import
com.ydl.webview.NewH5Activity
...
...
@@ -37,9 +39,18 @@ class ConsultantTopAdapter(
if
(
consultList
[
position
].
specialTopicSubhead
?.
isNotEmpty
()
==
true
)
{
holder
.
consult_tag
.
visibility
=
View
.
VISIBLE
holder
.
consult_tag
.
text
=
consultList
[
position
].
specialTopicSubhead
if
(
consultList
[
position
].
specialTopicSubhead
?.
toCharArray
()
?.
size
!!
<=
2
)
{
val
params
=
FrameLayout
.
LayoutParams
(
FrameLayout
.
LayoutParams
.
WRAP_CONTENT
,
FrameLayout
.
LayoutParams
.
WRAP_CONTENT
)
params
.
setMargins
(
46
,
0
,
0
,
0
)
holder
.
consult_tag
.
layoutParams
=
params
}
}
else
{
holder
.
consult_tag
.
visibility
=
View
.
GONE
}
GlideApp
.
with
(
context
)
.
load
(
consultList
[
position
].
topicImage
)
.
into
(
holder
.
consult_img
)
...
...
m-consultant/src/main/res/layout/consultant_activity_expert_search_list.xml
View file @
43602498
...
...
@@ -61,7 +61,8 @@
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:orientation=
"horizontal"
android:visibility=
"visible"
></androidx.recyclerview.widget.RecyclerView>
android:paddingBottom=
"@dimen/platform_dp_17"
android:visibility=
"visible"
/>
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
...
...
m-consultant/src/main/res/layout/consultant_top_banner_item.xml
View file @
43602498
...
...
@@ -7,14 +7,20 @@
android:layout_marginStart=
"@dimen/platform_dp_25"
android:background=
"@color/white"
>
<FrameLayout
android:id=
"@+id/fl_img"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
<ImageView
android:id=
"@+id/consult_img"
android:layout_width=
"44dp"
android:layout_height=
"44dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
android:layout_marginTop=
"@dimen/platform_dp_10"
/>
<TextView
android:id=
"@+id/consult_tag"
...
...
@@ -23,16 +29,19 @@
android:layout_marginStart=
"@dimen/platform_dp_12"
android:layout_marginBottom=
"@dimen/platform_dp_40"
android:background=
"@drawable/consultant_bg_top_tag"
android:gravity=
"center"
android:includeFontPadding=
"false"
android:maxLength=
"5"
android:minWidth=
"@dimen/platform_dp_25"
android:paddingStart=
"@dimen/platform_dp_4"
android:paddingTop=
"@dimen/platform_dp_2"
android:paddingEnd=
"@dimen/platform_dp_4"
android:paddingBottom=
"@dimen/platform_dp_2"
android:textColor=
"@color/white"
android:textSize=
"9sp"
app:layout_constraintBottom_toBottomOf=
"@id/consult_img"
app:layout_constraintStart_toStartOf=
"@id/consult_img"
tools:text=
"99元专区"
/>
tools:text=
"dd"
/>
</FrameLayout>
<TextView
android:id=
"@+id/consult_title"
...
...
@@ -44,7 +53,7 @@
android:textSize=
"@dimen/platform_sp_12"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@id/
consult
_img"
app:layout_constraintTop_toBottomOf=
"@id/
fl
_img"
tools:text=
"新人专区"
>
</TextView>
...
...
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