applidium / HeaderListView

Android ListView with sticky headers
http://applidium.com/en/news/headerlistview_for_android/
Other
313 stars 96 forks source link

First section without any row items #22

Open AustrianDudes opened 10 years ago

AustrianDudes commented 10 years ago

Thanks for the Fix #9 Tokou. Unfortunately I am still experiencing some issues if the FIRST section has no rows. In this case the second section header is displayed twice as soon as I scroll down the list. From what I understand, this behaviour does not occur if I disable the changes from Fix #21 .

vincentthai22 commented 7 years ago

Hello AustrianDudes I have been having the same issues as you have and disabling the changes in fix#21 leads to another bug where the first section header at index 0 takes the place of the header at index 1. Instead of removing the changes from fix#21 you should modify the changes in fix#9

Change this block here:

else if ((currIsHeader && firstVisibleItem > 0) || needScrolling) {

TO:

else if ((currIsHeader && realFirstVisibleItem > 0) || needScrolling) {