Reputation: 23
i want to create a layout like in this picture, See it my goal
so for that i did with LinearLayout but i have this for result:
so please how i need your help to reach my goal,
Upvotes: 1
Views: 52
Reputation: 803
Use Staggered GridView for your layout..It will solve your problem.
StaggeredGridView is like GridView but in GridView you can show data in Same size boxes , where in StraggeredGridView you can show data in different size of boxes , like you give image in your question .
Here is the example of staggered-grid
Upvotes: 0
Reputation: 54
The layout you showed in the picture is called staggered gridview
and for implementing that you can find an example here.
Upvotes: 0
Reputation: 4087
You can't achieve that with LinearLayout
.
you need to use StaggeredGridView to achieve that result.
For demo You can use this
Upvotes: 1