GridView层属性

  1. android:columnWidth:Specifies the fixed width for each column.列的宽度

    Related Methods

    • setColumnWidth(int)
  2. android:gravity:Specifies the gravity within each cell.:每一个格子里的内容的位置

    Related Methods

    • setGravity(int)
  3. android:horizontalSpacing:Defines the default horizontal spacing between columns.:定义水平列与列之间的距离

    Related Methods

    • setHorizontalSpacing(int)
  4. android:numColumns:设置列数

    Related Methods

    • setNumColumns(int)
  5. android:stretchMode:Defines how columns should stretch to fill the available empty space, if any.设置拉伸列

    Related Methods

    • setStretchMode(int)
  6. android:verticalSpacing:垂直方向上的距离

    Related Methods

    • setVerticalSpacing(int)
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容