9

I can able to display images in each cell in gridview. now i want to segregate into two section with headers. so that i an define my images to be placed in different sections. can somebody please help me.

user1924447
  • 99
  • 1
  • 1
  • 3

2 Answers2

7

It's possible with custom implementation. Try StickyGridHeaders it's very easy to use

Roger Garzon Nieto
  • 6,554
  • 2
  • 28
  • 24
3

This is not strictly possible with a single GridView. However, a fairly straightforward approach to visually present a series of grids with headers/categories is to use a separate GridView for every section. Basically you'll probably end up using one 'root' adapter that contains each of the adapters for the grid sections.

A good starting point is having a read through the following two similar questions, as they refer to components that already do most the hard work for you (no need to reinvent the wheel):

Community
  • 1
  • 1
MH.
  • 45,303
  • 10
  • 103
  • 116