Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StickyItemDecoration 在向上滚动时会遮盖 padding 区域的背景 #2

Open
zhangls2014 opened this issue May 10, 2022 · 3 comments

Comments

@zhangls2014
Copy link

StickyItemDecoration 在向上滚动时会遮盖 padding 区域的背景

@panpf
Copy link
Owner

panpf commented May 11, 2022

请详细说明,或配上截图,动图示例

@zhangls2014
Copy link
Author

当 RecyclerView 顶部设置了 padding 之后,在向上滑动时,新的 sticky item 顶替旧的 sticky item 的效果会受到影响。在 padding 大于 sticky item 高度的时候顶替效果就会消失,padding 小于 sticky item 高度的时候效果也和不设置 padding 不一致

@panpf
Copy link
Owner

panpf commented May 11, 2022

那你就用容器的方式,把 padding 空出来

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

No branches or pull requests

2 participants