属性 | 说明 |
android:columnCount | 设置最大列数 |
android:rowCount | 设置最大行数 |
androidrientation | GridLayout中子元素的结构方向 |
android:alignmentMode | alignBounds:对齐子视图边界 alignMargins :对齐子视距内容,默认值 |
android:columnOrderPreserved | 使列边界表现的顺序和列索引的顺序雷同,默认是true |
android:rowOrderPreserved | 使行边界表现的顺序和行索引的顺序雷同,默认是true |
android:useDefaultMargins | 没有指定视图的结构参数时使用默认的边距,默认值是false |