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.
Asked
Active
Viewed 1.5k times
9
-
the best sample https://github.com/guoGavin/Andorid-StickyHeaderGridView – Muhammad Waqas Khan Abbasi Jan 15 '15 at 12:29
2 Answers
7
It's possible with custom implementation. Try StickyGridHeaders it's very easy to use

Roger Garzon Nieto
- 6,554
- 2
- 28
- 24
-
-
how to categories according to our own category.. its is sectioning according to its first character – Tejas Pandya Jan 08 '19 at 09:04
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):