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
1002a61b
Commit
1002a61b
authored
Dec 17, 2019
by
徐健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改警告
parent
1939d3dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
RecommendListView.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/RecommendListView.kt
+4
-4
No files found.
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/RecommendListView.kt
View file @
1002a61b
...
...
@@ -96,14 +96,14 @@ class RecommendListView : LinearLayout {
*/
fun
setData
()
{
// 顶部viewpager数据
if
(
mSceneSpecialTopicList
?.
isNotEmpty
()
!!
)
{
if
(
mSceneSpecialTopicList
.
isNotEmpty
()
)
{
initMinHeight
(
mSceneSpecialTopicList
.
size
)
initViewPager
()
}
//多种不同类型大咖专区
if
(
mDoctorSpecialTopicsList
?.
isNotEmpty
()
!!
)
{
if
(
mDoctorSpecialTopicsList
.
isNotEmpty
()
)
{
setBigShotViewData
()
}
...
...
@@ -114,7 +114,7 @@ class RecommendListView : LinearLayout {
/**
* 渲染第一页数据
*/
va
r
firstPagerHeight
=
RxImageTool
.
dp2px
(
60f
*
(
getMinData
(
mSceneSpecialTopicList
.
size
+
1
,
4
+
1
)
/
2
))
va
l
firstPagerHeight
=
RxImageTool
.
dp2px
(
60f
*
(
getMinData
(
mSceneSpecialTopicList
.
size
+
1
,
4
+
1
)
/
2
))
val
firstPager
=
getLinearLayout
(
mContext
!!
,
firstPagerHeight
,
VERTICAL
...
...
@@ -137,7 +137,7 @@ class RecommendListView : LinearLayout {
/**
* 渲染第二页数据
*/
va
r
secondPagerHeight
=
RxImageTool
.
dp2px
(
60f
*
((
mSceneSpecialTopicList
.
size
-
4
+
1
)
/
2
))
va
l
secondPagerHeight
=
RxImageTool
.
dp2px
(
60f
*
((
mSceneSpecialTopicList
.
size
-
4
+
1
)
/
2
))
maxHeight
=
secondPagerHeight
+
RxImageTool
.
dp2px
(
11f
)
if
(
mSceneSpecialTopicList
.
size
>
4
)
{
val
secondPager
=
getLinearLayout
(
...
...
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