android :paddingbottom 与android:layout_marginBottom区别

来源:互联网 发布:浩辰软件 编辑:程序博客网 时间:2024/06/18 06:03
paddingBottom 是指控件中内容距离控件底边距离。比如:Button高10dp,宽10dp,将paddingBottom =10dp,那么Button高就变为20dp,Button内容靠上显示,距离底边10dp。 layout_marginBottom是指控件边以外空下的距离,比如Button1和Button2垂直显示,将Button1中layout_marginBottom = 10dp,那么Button1与Button2之间将有10dp距离。
0 0
原创粉丝点击