android :paddingbottom 与android:layout_marginBottom区别

paddingBottom 是指控件中内容距离控件底边距离。比如:Button高10dp,宽10dp,将paddingBottom =10dp,那么Button高就变为20dp,Button内容靠上显示,距离底边10dp。
 
layout_marginBottom是指控件边以外空下的距离,比如Button1和Button2垂直显示,将Button1中layout_marginBottom = 10dp,那么Button1与Button2之间将有10dp距离。
————————————————
版权声明:本文为CSDN博主「东少嘛」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u011585508/article/details/17282481

发布了80 篇原创文章 · 获赞 207 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/qq_43518645/article/details/104721451
今日推荐