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

getSectionHeaderView method doesn't work #31

Closed
serhatsezer opened this issue Nov 4, 2014 · 3 comments
Closed

getSectionHeaderView method doesn't work #31

serhatsezer opened this issue Nov 4, 2014 · 3 comments

Comments

@serhatsezer
Copy link

Hello,
I tried to implement this library in my project as your demo but getSectionHeaderView did not work or I missed something. I share screenshot and implemented gist file. Thank you for your help.
screen shot 2014-11-04 at 10 22 09

https://gist.github.com/serhatsezer/bfc205aedc3222f4a4ea

@serhatsezer
Copy link
Author

anyone have an idea ?

@jamesmartins
Copy link

Hi Sezer. Try to use the getSectionHeaderItemViewType(section) in
getSectionHeaderView method:
Take a look my sample:
https://gist.github.com/jamesmartins/7b16cbce42359a309eab.

Hope this helps!

JamesMMartins

On Thu, Nov 6, 2014 at 7:35 AM, Serhat Sezer notifications@github.com
wrote:

anyone have an idea ?


Reply to this email directly or view it on GitHub
#31 (comment)
.

James Mendes Miranda Martins
Android Developer/ System Analyst
Cel:015-981147539

@Nooba
Copy link
Member

Nooba commented Nov 6, 2014

My bad, I answered on your gist.
I believe you missed / forgot the

            @Override
            public boolean hasSectionHeaderView(int section) {
                return true;
            }

method call in your SectionAdapter. »

@tokou tokou closed this as completed Nov 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants