Intelligent scroll in a list

When displaying list for first time, the first category is displayed with all content. Then when scrolling down and seeing next category, the first category collapse and then the content of second category expands.
This behaviour is used to avzid clicking on category to expand/collapse and allow to always see the category name while scrolling from a big list :wink:

EDIT : I have found an example :
Android ListView Sticky Header :slight_smile: