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

First header item not displaying #155

Open
rupalgoswamidxred opened this issue Jan 15, 2018 · 2 comments
Open

First header item not displaying #155

rupalgoswamidxred opened this issue Jan 15, 2018 · 2 comments

Comments

@rupalgoswamidxred
Copy link

rupalgoswamidxred commented Jan 15, 2018

I integrated your lib for sticky header for reverse layout but first header item not display.

@echthard
Copy link

This should return a positive long:

public long getHeaderId(int position)

So use Math.abs() to make it absolute.

@sunFlying
Copy link

I think the author write this:
if (position == 0) {
return -1;
}
in headerAdapter's getHeaderId,
to fit this:
adapter.add("Animals below!");
so, if you do not have a special item, you should remove this:
if (position == 0) {
return -1;
}

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

3 participants