ListView with changing sub headers fixed on top
===

I am trying to implement a list with sub headers that get fixed to the top of the list while you move down the list.. The same implementation as the GMAIL app when reading an email thread.. while the user moves down the list, the header of the email that's being read sticks to the top of the screen and only moves away by another sub header of the same type.

Is there any tutorial or code example on the Internet?

Thanks guys!