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

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

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

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

 

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-08
  • 2021-06-16
  • 2022-02-10
  • 2021-11-26
猜你喜欢
  • 2021-10-26
  • 2022-12-23
  • 2021-12-26
  • 2022-02-14
  • 2022-12-23
  • 2021-05-10
  • 2021-11-02
相关资源
相似解决方案