1

I need the first item in my GridView to be twice the size of other items, then all next items to be same size which is half the first item size.

using GridView is not mandatory, it just seems to me it should be done using GridView.

Mahmoud Badri
  • 1,256
  • 14
  • 24

3 Answers3

1

You can put the first item out of the gridview in a RelativeLayout

enter image description here

it is not an elegant solution, but it's a solution

SolArabehety
  • 8,467
  • 5
  • 38
  • 42
1

You should go with GridLayout :-

here is a short tutorial http://developer.samsung.com/android/technical-docs/GridLayout-in-Android

custom arrangement in GridLayout :- Heterogeneous GridLayout

Community
  • 1
  • 1
r4jiv007
  • 2,974
  • 3
  • 29
  • 36
0

You can use a linearlayout, set layout_width of all items to 0dp, set layout_weight of the first to 2 and layout_weight of the others to 1

Toon Borgers
  • 3,638
  • 1
  • 14
  • 22