How can I recreate the following view with the help of a GridView
.
The number of items in the list is dynamic.
How can I recreate the following view with the help of a GridView
.
The number of items in the list is dynamic.
I guess that this is not a single GridView but a combination of multiple Layouts. Just make a LinearLayout and decide according to the content, which layout you want to have in a row.
GridView
's ability to do that. –
Mysterious ListView
because my View
needs to contain images with different heights. It looks like I will need to develop my own custom control. –
Mysterious To obtain the layout you see you can use something like this:
<LinearLayout android:orientation="vertical">
<!-- First row -->
<View />
<!-- Second row -->
<LinearLayout android:orientation="horizontal" />
<!-- Third row -->
<LinearLayout android:orientation="horizontal" />
<!-- Fourth row -->
<View />
</LinearLayout>
If you want also the paged effect you can use a ViewPager
http://android-developers.blogspot.it/2011/08/horizontal-view-swiping-with-viewpager.html
© 2022 - 2024 — McMap. All rights reserved.