I unable to set no. of rows for grid view. Only able to set no. of columns.
I need to create a grid view which has 3 rows and 3 columns.
Can any one help me please.
This is my XML
layout code:
<GridView android:id="@+id/gridView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:numColumns="3"
android:gravity="center"
android:stretchMode="columnWidth" >
</GridView>
Thanks in advance, Deepak
TableLayout
! – Platinousandroid:numColumns
but for rows you must do that in your code – Electromechanical