网格布局 GridLayout
网格布局,按照行、列组成一个个网格 界面代码: <? xml version = "1.0" encoding = "utf-8" ?> <GridLayout xmlns:android = "http://schemas.android.com/apk/res/android" xmlns:tools = "http://schemas.android.com/tools" xmlns:app = "http://schemas.android.com/apk/res-auto" android:layout_width = "match_parent" android:layout_height = "match_parent" android:rowCount = "6" android:columnCount = "4" android:id = "@+id/root" tools:context = ".MainActivity" > <TextView android:layout_width = "match_parent" android:layout_height = "wrap_content" android:layout_columnSpan = "4" android:textSize = "50sp" android:layout_marginLeft