0

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

Cœur
  • 37,241
  • 25
  • 195
  • 267
nullUser
  • 1,159
  • 2
  • 15
  • 26

4 Answers4

2

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

Dragan
  • 328
  • 2
  • 12
0

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.

iflorit
  • 740
  • 5
  • 10
0

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

Suneel Prakash
  • 389
  • 5
  • 7
0

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

Community
  • 1
  • 1
Android Noob
  • 621
  • 8
  • 18