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
0803accc
Commit
0803accc
authored
May 16, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:倾诉列表,底部推荐横幅UI修改
parent
1ab752d5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
46 additions
and
13 deletions
+46
-13
ConfideHomeActivity.kt
m-confide/src/main/java/com/ydl/confide/home/ConfideHomeActivity.kt
+6
-0
confide__free.gif
m-confide/src/main/res/drawable-xhdpi/confide__free.gif
+0
-0
confide_right_arrow.webp
m-confide/src/main/res/drawable-xhdpi/confide_right_arrow.webp
+0
-0
confide_consult_btn_bg.xml
m-confide/src/main/res/drawable/confide_consult_btn_bg.xml
+4
-3
confide_home_activity.xml
m-confide/src/main/res/layout/confide_home_activity.xml
+34
-10
colors.xml
m-confide/src/main/res/values/colors.xml
+2
-0
No files found.
m-confide/src/main/java/com/ydl/confide/home/ConfideHomeActivity.kt
View file @
0803accc
...
...
@@ -9,6 +9,8 @@ import androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.RecyclerView
import
androidx.recyclerview.widget.SimpleItemAnimator
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.bumptech.glide.Glide
import
com.bumptech.glide.load.engine.DiskCacheStrategy
import
com.jcodecraeer.xrecyclerview.ProgressStyle
import
com.jcodecraeer.xrecyclerview.XRecyclerView
import
com.ydl.confide.R
...
...
@@ -188,6 +190,10 @@ class ConfideHomeActivity : BaseLceActivity<IConfideHomeContract.View,IConfideHo
initStatus
();
ModularServiceManager
.
provide
(
IConsultantService
::
class
.
java
).
showConfideListDialog
(
this
)
ActionCountUtils
.
count
(
"daoyi_advertisement_page|daoyi_advertisement_visit"
,
"17"
)
Glide
.
with
(
this
)
.
load
(
R
.
drawable
.
confide__free
)
.
diskCacheStrategy
(
DiskCacheStrategy
.
RESOURCE
)
.
into
(
confide_Free
)
}
...
...
m-confide/src/main/res/drawable-xhdpi/confide__free.gif
0 → 100644
View file @
0803accc
21.1 KB
m-confide/src/main/res/drawable-xhdpi/confide_right_arrow.webp
0 → 100644
View file @
0803accc
File added
m-confide/src/main/res/drawable/confide_consult_btn_bg.xml
View file @
0803accc
...
...
@@ -3,9 +3,9 @@
android:shape=
"rectangle"
>
<gradient
android:startColor=
"@color/
platform_main_gradient_end_color
"
android:endColor=
"@color/
platform_main_gradient_start_color
"
/>
android:startColor=
"@color/
confide_61CEAC
"
android:endColor=
"@color/
confide_48CC95
"
/>
<corners
android:radius=
"
15
dp"
/>
<corners
android:radius=
"
8
dp"
/>
</shape>
\ No newline at end of file
m-confide/src/main/res/layout/confide_home_activity.xml
View file @
0803accc
...
...
@@ -21,7 +21,8 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/quick_consult_card"
android:layout_width=
"match_parent"
android:layout_height=
"50dp"
android:layout_height=
"wrap_content"
android:layout_alignParentBottom=
"true"
android:layout_marginLeft=
"15dp"
android:layout_marginRight=
"15dp"
...
...
@@ -40,7 +41,10 @@
android:background=
"@drawable/confide_call_logo"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
app:layout_constraintTop_toTopOf=
"parent"
android:layout_marginTop=
"@dimen/platform_dp_12"
android:layout_marginBottom=
"@dimen/platform_dp_12"
>
</ImageView>
...
...
@@ -57,23 +61,43 @@
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toEndOf=
"@id/confide_logo"
app:layout_constraintTop_toTopOf=
"parent"
/>
<FrameLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
app:layout_constraintEnd_toEndOf=
"parent"
android:layout_marginBottom=
"@dimen/platform_dp_12"
app:layout_constraintTop_toTopOf=
"@id/confide_logo"
app:layout_constraintBottom_toBottomOf=
"@id/confide_logo"
>
<TextView
android:id=
"@+id/quick_consult_btn"
android:layout_width=
"wrap_content"
android:layout_height=
"30dp"
android:background=
"@drawable/confide_consult_btn_bg"
android:gravity=
"center"
android:paddingLeft=
"@dimen/confide_dp_20"
android:paddingRight=
"@dimen/confide_dp_20"
android:paddingTop=
"@dimen/platform_dp_5"
android:paddingBottom=
"@dimen/platform_dp_5"
android:paddingLeft=
"@dimen/platform_dp_7"
android:paddingRight=
"@dimen/platform_dp_7"
android:text=
"我要倾诉"
android:textColor=
"@color/platform_but_text_color"
android:textSize=
"14dp"
android:textStyle=
"bold"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
app:layout_constraintBottom_toBottomOf=
"parent"
android:layout_marginTop=
"@dimen/platform_dp_15"
android:textColor=
"@color/white"
android:textSize=
"13sp"
android:drawableRight=
"@drawable/confide_right_arrow"
/>
<ImageView
android:layout_width=
"@dimen/platform_dp_40"
android:layout_height=
"@dimen/confide_dp_25"
android:src=
"@drawable/confide__free"
android:layout_marginStart=
"@dimen/platform_dp_40"
android:id=
"@+id/confide_Free"
>
</ImageView>
</FrameLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
<View
...
...
m-confide/src/main/res/values/colors.xml
View file @
0803accc
...
...
@@ -4,4 +4,6 @@
<color
name=
"confide_line"
>
#F0F0F0
</color>
<color
name=
"confide_filters_line"
>
#E0E0E0
</color>
<color
name=
"confide_category_bg"
>
#FAFAFA
</color>
<color
name=
"confide_61CEAC"
>
#61CEAC
</color>
<color
name=
"confide_48CC95"
>
#48CC95
</color>
</resources>
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