Chaitu
Chaitu

Reputation: 917

Add GridView in listView in android like Dropbox View

How can I add Grid View to the ListView.I could able to Implement but the problem is Grid View is not Visible its full height. I want to implement just like the Dropbox Photo CustomView which I have attached below. Please guide me in correct Path.

enter image description here

Thanks, Chaitanya

Upvotes: 4

Views: 1722

Answers (2)

siva
siva

Reputation: 375

Using github.com/TonicArtos/StickyGridHeaders library for placing headers in gridview and refer this article http://www.programering.com/a/MjN0ITMwATU.html where is the demo as what are u expecting.

Upvotes: 1

SimonSays
SimonSays

Reputation: 10977

The thing is that you are not supposed to add a scrollable view into another scrollable view. Both ListView and GridView are scrollable, so that just leads to trouble. I suspect that the Dropbox app does not use a GridView, but multiple LinearLayouts, that's at least what I would do. You just can not use an adapter in that case, but need to add the layouts and elements programmatically.

Upvotes: 0

Related Questions