I am using https://github.com/emilsjolander/StickyListHeaders as my primary listview for most of my app. I have put this listview in my one layout that I use for all my listviews. However, There are some instances when I don't want to show any headers, I just want to show a regular list, like a listview.
Is there a way to set StickyListHeaders to not show headers at all? There are options for making headers not sticky. I want the headers to just not show up, is that possible with the existing API?
@Override
public View getHeaderView(int position, View convertView, ViewGroup parent) {
// do nothing
return null;
}
@Override
public long getHeaderId(int position) {
// do nothing
return 0;
}
Actually there's a lot simpler way
@Override
public View getHeaderView(int position, View convertView, ViewGroup parent) {
return new View(parent.getContext());
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With