Android:layout_margin就是设置view的上下左右边框的额外空间 android:padding是设置内容相对view的边框的距离 在LinearLayout、RelativeLayout、TableLayout中,这2个属性都是设置都是有效的 在FrameLayout中,android:layout_margin是无效的,因为FrameLayout里面的元素都是从左上角开始绘制的 在AbsoluteLayout中,没有android:layout_margin属性 转载于:https://www.cnblogs.com/jesssey/p/7428619.html