paddingBottom是指控件中内容距离控件底边距离。比如:Button高10dp,宽10dp,将paddingBottom=10dp,那么Button高就变为20dp,Button内容靠上显示,距离底边10dp。layout_marginBottom是指控件边以外空下的距离,比如Button1和Button2垂直显示,将Button1中layout_marginBottom=10dp,那么Button1与Button2之间将有10dp距离。
原创 | 2022-10-11 19:06:41 |浏览:1.6万
paddingBottom是指控件中内容距离控件底边距离。比如:Button高10dp,宽10dp,将paddingBottom=10dp,那么Button高就变为20dp,Button内容靠上显示,距离底边10dp。layout_marginBottom是指控件边以外空下的距离,比如Button1和Button2垂直显示,将Button1中layout_marginBottom=10dp,那么Button1与Button2之间将有10dp距离。