paddingBottom和layout_marginBottom的区别

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

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

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

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

 

posted @ 2015-10-23 20:56  百草春生  阅读(1739)  评论(0编辑  收藏  举报