Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

怎样能够知道StickyLayoutHelper已经停靠在界面中了? #105

Closed
prudencenb opened this issue Jun 16, 2017 · 4 comments
Closed

Comments

@prudencenb
Copy link

No description provided.

@longerian
Copy link
Contributor

根据屏幕范围的 firstVisibleItemPosition 和 lastVisibleItemPosition,当StickyLayoutHelper对应的adapterPosition在这个范围内的时候,它负责的item就应该停在界面中间

@prudencenb
Copy link
Author

@longerian 有没有方法能够知道StickyLayoutHelper的视图是否处于吸顶状态?

@longerian
Copy link
Contributor

longerian commented Jun 22, 2017

目前没有开放接口,可以加一下。

@longerian
Copy link
Contributor

加了一个 public boolean isStickyNow()的接口,等1.0.9发布。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants