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

First header item not visible in a sticky sectioned list #74

Closed
hari2109 opened this issue Apr 29, 2016 · 0 comments
Closed

First header item not visible in a sticky sectioned list #74

hari2109 opened this issue Apr 29, 2016 · 0 comments

Comments

@hari2109
Copy link

I have a recyclerview where I show search results sectioned into different categories. But I'm getting a strange issue where just for the first time, the header for the first section is not shown. It just shows a blank space in the area where the header is supposed to be. The header shows up correctly as soon as I start scrolling down and resumes the normal sticky behaviour. This is the code I'm using to show the recycler view:

        mSearchResultsAdapter = new FlexibleAdapter(searchResultList);
        mSearchResultsRecyclerView.setAdapter(mSearchResultsAdapter);
        mSearchResultsAdapter.setDisplayHeadersAtStartUp(true);
        mSearchResultsAdapter.enableStickyHeaders();
        mLayoutManager.scrollToPositionWithOffset(0,0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants