paddingBottom和layout_marginBottom的区别

paddingBottom 是指控件中内容距离控件底边距离。

比如:Button高10dp,宽10dp,将paddingBottom =10dp,那么Button高就变为20dp,Button内容靠上显示,距离底边10dp。

layout_marginBottom是指控件边以外空下的距离。

比如Button1和Button2垂直显示,将Button1中layout_marginBottom = 10dp,那么Button1与Button2之间将有10dp距离。

原文地址:https://www.cnblogs.com/3120931037cnk/p/4905666.html