-
Notifications
You must be signed in to change notification settings - Fork 552
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
Headers are shown multiple times #355
Comments
@thelong1EU, Thanks, I've updated the Wiki with better explanation. |
I see. I thought that the equals method deals with it.
…On May 7, 2017 12:18 AM, "Davide Steduto" ***@***.***> wrote:
@thelong1EU <https://github.com/thelong1EU>, UserHeader must be the *same*
instance for each section, so you should NOT create new header object for
each sectionable in your use case.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#355 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI2nVpSuc3yP3QnKFXBKgpD7IUQD89Hpks5r3OOHgaJpZM4NS6Ko>
.
|
I changed it in the mock app and it works. But on my real app it doesn't. I get the same result. I think I found the reason. In the FlexibleAdapter there is the method showAllHeadersWithReset(). Here you check if the headers are the same instance. Why not try equals? My Item and Header are Parcelable. So when I pass them in an Intent they are recreated and are not the same instance anymore. Should I make a pull request?
Where are you from? I really want to give you a beer. |
Hi @thelong1EU, I didn't think about Parcelable, sometimes we write a feature without seeing all the user points of views for development, some can be missed. The improvement can be done. I'm Italian living in Brussels. for the beer I will check about donations, because you are not the first, neither second that would like to, I appreciate it :-D |
Added fix to #357, so I'm closing this. |
I switched to this wonderful lib. I spend whole day reading docs. But still I have this issue. Headers are displays above every item.
As always the code is here:
https://github.com/thelong1EU/FlipViewDemo
The text was updated successfully, but these errors were encountered: