问题
I am trying to make a gridview with large icon for an app but I couldn't find any tutorial about modifying a cell size on a grid layout on android. Can anyone give me an example or a link about it please?
Thanks.
回答1:
just like the other adapterViews ,on gridView (which extends adapterView) the size that is determined of the children is based on the size that they want to become , as written in the android API:
An AdapterView is a view whose children are determined by an Adapter.
回答2:
Did you try android:numColumns="2"
来源:https://stackoverflow.com/questions/11003318/how-to-set-a-cell-size-in-android-grid-view