-4

Hi i am making an app in which i have to use multiple Gridviews and images in them dynamically. I had searched my links over stackoverflow like: How to make a GridLayout fit screen size Also i tried one more link http://www.mkyong.com/android/android-gridview-example/

But these links were not helpful.enter image description here

I mean to say that for achieving like above image do i have to use multiple gridviews or somthing else? And my query is how to implement the above image?

Community
  • 1
  • 1
Aditya1510
  • 874
  • 1
  • 14
  • 31

1 Answers1

0

Well a GridView would probably be more hindrance than help in the above screen. They are useful when you have a collection of data that you want to display e.g. a list of items returned from a server.

Your image looks like a layout that is not dynamic so it would probably be easiest to have an outer scrollview and then build your views using either a GridLayout (different to GridView) or a collection of other layouts e.g. RelativeLayout and LinearLayouts with weights for even distribution of spacing.

Damian
  • 7,962
  • 4
  • 41
  • 42