网格布局GridLayout

步骤一xml配置GridLayout

步骤二设置GridLayout的属性columnCount列的大小
rowCount行的大小

步骤三使用图片按钮ImageButton
设置图片充满scaleType
设置图片 高 layout_height 宽 layout_width
依次设置几个在模拟器上查看效果

猜你喜欢

转载自blog.csdn.net/anhldd/article/details/82425180