Skip to content Skip to sidebar Skip to footer

Which Stretchmode To Use In Gridview On Android

Following is my xml code: Copy

Solution 2:

It's very simple dude, just remove the line

android:columnWidth="@dimen/gridview_column_width"

you can specify any number of columns, i am given number of column = 4

android:numColumns = "4"

This is working fine for me

Solution 3:

I know this question is a little old but here is an answer I found hoping this helps someone else, just for android:stretchMode use spacingWidthUniform as it says in documentation here it will stretch the spacing between columns equally.

please refer to above link for more information.

Post a Comment for "Which Stretchmode To Use In Gridview On Android"