Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Show section header when section is empty #84

Open
imobiling opened this issue Jan 5, 2018 · 3 comments
Open

Show section header when section is empty #84

imobiling opened this issue Jan 5, 2018 · 3 comments

Comments

@imobiling
Copy link

When the section is empty, I'd like to show the section header so that user will be able to add data to the correct section.

Currently when the section is empty, nothing (no section or section header) is shown for the recycler view.

Is there any quick solution for this?

thanks a lot!
Helen

@imobiling
Copy link
Author

any update on this issue or any clarification needed?

@imobiling
Copy link
Author

anyone can help fix this issue?

@baiguangyuan
Copy link

Did you override doesSectionHaveHeader function of SectioningAdapter.

/**
 * @param sectionIndex index of the section in question
 * @return true if this section has a header
 */
public boolean doesSectionHaveHeader(int sectionIndex) {
	return false;
}

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

No branches or pull requests

2 participants