as shown in above image, header is the alpha image and my grid view start from below the header but when user scroll that grid view up, grid view must scroll behind the header and when scroll grid view down and reaches at top than grid view first item should be visible at bottom of header.. any idea to do this?
Asked
Active
Viewed 312 times
4 Answers
0
Use relative layout as base, add header and gridview wrapped in scrollview to it.

user4182277
- 950
- 1
- 6
- 13
-
1not getting clearly what you want to say, can you describe in detail? – Mayur R. Amipara Mar 05 '15 at 06:00
-
1I'll try to add code example later. Basically, you should use scroll view and display header above it. – user4182277 Mar 05 '15 at 06:01
0
Add your gridview in a scrollview it will work. And also try keeping the header in relative layout if the previous one is not working.

DroidAks
- 327
- 2
- 9
0
There are several custom controls made to be able to have header for a gridview, similar to a listview. Take a look at the links below:
0
You can add empty header in your gridView with same height as your transparent header. Here is the link of library you can use for adding header to your gridView : https://github.com/liaohuqiu/android-GridViewWithHeaderAndFooter

Nauman Afzaal
- 1,046
- 12
- 20