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
d823f77a
Commit
d823f77a
authored
Apr 06, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:UI修改
parent
e1b545dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
config.gradle
config.gradle
+2
-2
HomeButtonBannerView.kt
m-home/src/ydl/java/com/yidianling/home/ui/view/HomeButtonBannerView.kt
+6
-3
No files found.
config.gradle
View file @
d823f77a
...
@@ -9,7 +9,7 @@ ext {
...
@@ -9,7 +9,7 @@ ext {
"m-consultant"
:
"0.0.60.04"
,
"m-consultant"
:
"0.0.60.04"
,
"m-fm"
:
"0.0.30.04"
,
"m-fm"
:
"0.0.30.04"
,
"m-user"
:
"0.0.61.94"
,
"m-user"
:
"0.0.61.94"
,
"m-home"
:
"0.0.22.8
4
"
,
"m-home"
:
"0.0.22.8
5
"
,
"m-im"
:
"0.0.21.16"
,
"m-im"
:
"0.0.21.16"
,
"m-dynamic"
:
"0.0.7.35"
,
"m-dynamic"
:
"0.0.7.35"
,
"m-article"
:
"0.0.0.10"
,
"m-article"
:
"0.0.0.10"
,
...
@@ -92,7 +92,7 @@ ext {
...
@@ -92,7 +92,7 @@ ext {
"m-consultant"
:
"0.0.60.03"
,
"m-consultant"
:
"0.0.60.03"
,
"m-fm"
:
"0.0.30.07"
,
"m-fm"
:
"0.0.30.07"
,
"m-user"
:
"0.0.61.94"
,
"m-user"
:
"0.0.61.94"
,
"m-home"
:
"0.0.22.8
4
"
,
"m-home"
:
"0.0.22.8
5
"
,
"m-im"
:
"0.0.21.16"
,
"m-im"
:
"0.0.21.16"
,
"m-dynamic"
:
"0.0.7.35"
,
"m-dynamic"
:
"0.0.7.35"
,
"m-article"
:
"0.0.0.8"
,
"m-article"
:
"0.0.0.8"
,
...
...
m-home/src/ydl/java/com/yidianling/home/ui/view/HomeButtonBannerView.kt
View file @
d823f77a
...
@@ -5,6 +5,7 @@ import android.view.View
...
@@ -5,6 +5,7 @@ import android.view.View
import
android.view.ViewGroup
import
android.view.ViewGroup
import
android.widget.FrameLayout
import
android.widget.FrameLayout
import
android.widget.LinearLayout
import
android.widget.LinearLayout
import
androidx.constraintlayout.widget.ConstraintLayout
import
androidx.recyclerview.widget.RecyclerView
import
androidx.recyclerview.widget.RecyclerView
import
com.bumptech.glide.Glide
import
com.bumptech.glide.Glide
import
com.bumptech.glide.load.engine.DiskCacheStrategy
import
com.bumptech.glide.load.engine.DiskCacheStrategy
...
@@ -65,14 +66,15 @@ class HomeButtonBannerView(private val mContext: Context, private var homeEvent:
...
@@ -65,14 +66,15 @@ class HomeButtonBannerView(private val mContext: Context, private var homeEvent:
var
viewHeight
=
viewWidth
*
78
/
80
var
viewHeight
=
viewWidth
*
78
/
80
buttonParams
=
LinearLayout
.
LayoutParams
(
viewWidth
,
viewHeight
)
buttonParams
=
LinearLayout
.
LayoutParams
(
viewWidth
,
viewHeight
)
buttonParamsFrame
=
FrameLayout
.
LayoutParams
(
viewWidth
,
viewHeight
)
buttonParamsFrame
=
FrameLayout
.
LayoutParams
(
viewWidth
,
viewHeight
)
buttonParamsFrame2
=
FrameLayout
.
LayoutParams
((
viewWidth
/
2
)+
10
,
viewHeight
/
2
-
30
)
buttonParamsFrame2
=
FrameLayout
.
LayoutParams
((
viewWidth
/
2
.0
).
toInt
(),
(
viewHeight
/
2.3
).
toInt
()
)
buttonParamsFrame2
!!
.
setMargins
(
RxImageTool
.
dp2px
((
viewWidth
/
19f
)),
0
,
0
,
0
)
buttonParamsFrame2
!!
.
setMargins
(
(((
viewWidth
/
6f
).
toInt
()
)),
0
,
0
,
0
)
qingsuGif
.
layoutParams
=
buttonParamsFrame2
qingsuGif
.
layoutParams
=
buttonParamsFrame2
homeModuleButtonBannerSecondFrame
.
layoutParams
=
buttonParamsFrame
homeModuleButtonBannerFirst
.
layoutParams
=
buttonParams
homeModuleButtonBannerFirst
.
layoutParams
=
buttonParams
homeModuleButtonBannerSecond
.
layoutParams
=
buttonParams
homeModuleButtonBannerSecond
.
layoutParams
=
buttonParams
homeModuleButtonBannerThird
.
layoutParams
=
buttonParams
homeModuleButtonBannerThird
.
layoutParams
=
buttonParams
homeModuleButtonBannerFourth
.
layoutParams
=
buttonParams
homeModuleButtonBannerFourth
.
layoutParams
=
buttonParams
homeModuleButtonBannerSecondFrame
.
layoutParams
=
buttonParamsFrame
}
}
}
}
}
}
\ 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