tags:

views:

749

answers:

1

Anyone please help me with some code snippets to slove the problem.If anyone knows how to make an adjustable gridview please help me.

+1  A: 

If you've set a specific number of columns and want the columns to expand as necessary, try gridView.setStretchMode(GridView.STRETCH_COLUMN_WIDTH).

If you've instead set a specific column width and want the number of columns to change as necessary, use gridView.setNumColumns(GridView.AUTO_FIT).

Chris Boyle