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

Decoration is missing in RecyclerView when I using FlexboxLayoutManager #285

Closed
Cloudpoet opened this issue May 20, 2017 · 5 comments
Closed
Assignees
Labels
Milestone

Comments

@Cloudpoet
Copy link

I use FlexboxLayoutManager and FlexboxItemDecoration in my project. And there is only one RecyclerView in my activity.
It's ok when I added a item in RecyclerView if the view's height is less than screen's. But if the view's height is more than screen's, the decoration is missing in some items.
I don't know how to fix it.

@thagikura
Copy link
Contributor

Hi @Cloudpoet,

Thanks for reporting this, I tried to reproduce it on my end, but couldn't reproduce it so far even though I set the ViewHolder's height longer than the screen height.

Is it possible to share your reproducible code?
Thanks.

@Cloudpoet
Copy link
Author

OK, I'll push my code to github after some time. Now I fix this problem by using margin instead of decoration

@Cloudpoet
Copy link
Author

Cloudpoet commented Jun 7, 2017

@thagikura This is the URL:
My demo.
You'll see this problem if you add enough items that the height of the recyclerview is more than screen's and then scroll the recyclerview over from bottom to top or inverse.
My phone is Moto X and the Android version is 5.1.

@thagikura
Copy link
Contributor

Hi @Cloudpoet,

Thanks for the demo project! Now I can reproduce the issue.
Taking a look. Thanks!

@thagikura
Copy link
Contributor

Should be fixed by #294

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

No branches or pull requests

2 participants