nullUser
nullUser

Reputation: 1169

Multi column listview layout

How to do a layout like this? I currently use a listActivity and I need the same experience with this kind of layout. enter image description here

Upvotes: 0

Views: 122

Answers (4)

Android Noob
Android Noob

Reputation: 621

You have to use GridView You can refer this or this.

Upvotes: 0

Suneel Prakash
Suneel Prakash

Reputation: 389

You can use Staggered Grid View library. But there you need to mention height of each image pragmatically to set height of list view. Else when you scroll to end and come back to top, the alignment of images on top will get disturbed

Upvotes: 0

iflorit
iflorit

Reputation: 749

To get this effect, you should create two list views and link the scrolls of both lists.

Define a OnScrollListener on both listviews and when "onScroll()", move programatically the other list. I think if all images are cached you shouldn't have delays.

Upvotes: 0

Dragan
Dragan

Reputation: 328

You can use Staggered Grid View library. Also check and Quilt View. This is what you need.

Upvotes: 2

Related Questions