Android的三种布局
使用线性布局,约束布局,表格布局实现三种页面
1.线性布局LinearLayout实现
页面中先采用LinearLayout的垂直布局,再在其中嵌套四个水平布局,每个水平LinearLayout中设计四个按钮,分别命名为one one ,one two ,one three ,one four ,two one ,two two ,two three ,two four ,three one ,three two ,three three ,three four ,four one ,four two ,four three ,four four
2.约束布局ConstraintLayout实现
向约束页面先添加七个按钮,点击拖动按钮设置约束,将按钮拖动到适合位置,再修改每个按钮的颜色,命名按钮为red ,orange ,yellow ,green ,blue ,indigo ,violet ,分别设置按钮的高度和宽度