-
Notifications
You must be signed in to change notification settings - Fork 554
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
Divider at the end of a section #60
Comments
I tried making my 5dp divider into a row in the adapter and it broke the sticky header animation when it reaches a new header. |
Hello @jonathanyee, you can create a custom But you want an easier workaround, and if i understood well maybe you miss to set the same header also to the divider item (defined as |
How would I detect the next item is a header? |
@jonathanyee, The idea is to combine some code of Basically with |
@jonathanyee, I've modified the
|
The modification I've added seems to work only with LinearLayout, with GridLayout it doesn't create the gap for the previous items that are on the same line of the last item... so, for Grid it must be fixed! Any idea? |
I'm sorry, can't think of any. |
Available from v5.0.0-b6. |
Using RecyclerView.ItemDecoration creates a divider after every row and header. Is there a way to have the divider only show at the end of a section? Or should I make the divider a row?
Section header 1
section item 1
section item 2
divider
Section header 2
section item 1 (no divider here)
The text was updated successfully, but these errors were encountered: