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
6824546c
Commit
6824546c
authored
May 19, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 倾诉首页筛选处理
parent
1fce3f89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
ConfideHomeRecycleViewListener.kt
m-confide/src/main/java/com/ydl/confide/home/listener/ConfideHomeRecycleViewListener.kt
+4
-1
No files found.
m-confide/src/main/java/com/ydl/confide/home/listener/ConfideHomeRecycleViewListener.kt
View file @
6824546c
...
...
@@ -2,6 +2,7 @@ package com.ydl.confide.home.listener
import
androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.RecyclerView
import
com.ydl.confide.home.widget.ConfideHomeFilterView
import
com.yidianling.common.tools.LogUtil
import
com.yidianling.common.tools.RxImageTool
...
...
@@ -51,7 +52,9 @@ class ConfideHomeRecycleViewListener : RecyclerView.OnScrollListener() {
fun
moveToPosition
(
mRecyclerView
:
RecyclerView
){
mRecyclerView
.
scrollBy
(
0
,
1
)
var
top
=
mRecyclerView
.
getChildAt
(
mIndex
).
top
val
childAt
=
mRecyclerView
.
getChildAt
(
mIndex
)
if
(
childAt
!
is
ConfideHomeFilterView
)
return
val
top
=
childAt
.
top
if
(
top
==
0
||
top
==
1
){
//已滚动到顶部
...
...
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