StickyListHeaders icon indicating copy to clipboard operation
StickyListHeaders copied to clipboard

error when reusing the headers?

Open alirahimpour89 opened this issue 11 years ago • 3 comments

Hi! I am trying to update a header without reloading the adapter (reloading the adapter will cancel the list selector animation).

I have saved the header view in a array so I can edit a label inside it later and it works sometimes but not always...

is some states it is updating correctly but in some states it is reusing a old version of the header so it wont update when I try to update it...

is there any easy way to update the headers without reloading the whole list or is my way the correct way to do it?

alirahimpour89 avatar Mar 08 '13 17:03 alirahimpour89

There is no good way of doing this as of now. I will mark this as an enhancement and might implement a findHeaderById() method in a future update :)

The reason holding a pointer to the headers does not work is because not all headers are recycled, during certain states a header will be removed without being recycled.

emilsjolander avatar Mar 10 '13 11:03 emilsjolander

That would be great! Because updating the headers is pretty important for me :)

alirahimpour89 avatar Mar 10 '13 18:03 alirahimpour89

+1 Any progress on this? Is there any other way to access the headers? I've got a checkbox on each header, and I'm at a loss to find a way to update them on a dataSetObserver.

bkach avatar Dec 04 '15 08:12 bkach