You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: