UI布局

很多人都发过,不用看了,这只是自己学习的一个记录

LinearLayout(线性布局)

image

RelativeLayout(相对布局)

参考 http://www.runoob.com/w3cnote/android-tutorial-relativelayout.html

image

父容器定位属性示意图
image兄弟组件就是处于同一层次容器的组件

TableLayout(表格布局)

image

FrameLayout(帧布局)

  • android:foreground:*设置改帧布局容器的前景图像
  • android:foregroundGravity:设置前景图像显示的位置

AbsoluteLayout(绝对布局)

不建议使用

GridLayout(网格布局)

image

提问码

猜你喜欢

转载自blog.csdn.net/u011288483/article/details/80245771