Search code examples
androidgridviewsuperslim

How to maintain sticky gridview in Android


I want to implement the sticky gridview in my application but the problem is that my header of the gridview is also move when I scroll the gridview, So could you please help me to sort out from these problem


Solution

  • You can check out StickyGridHeaders is library that provides a GridView that shows items in sections with headers. By default the section headers stick to the top like the People app in Android 4.x but this can be turned off.

    StickyGridHeaders also automatically sizes its rows to the largest item in the row.

    Another is AStickyHeader for adding Sticky Headers to ListView or GridView.

    Hope this will help you.