https://www.jianshu.com/p/e6835ed20d9a

LinearLayout(线性布局)

按比例划分水平或者竖直方向:
划分水平方向时:将layout_width属性设置为0dp,接着为weight设置比例
同理竖直方向:将layout_height属性设置为0dp,接着为weight设置比例
(将对应的layout_width或者layout_height设置为0dp的原因是各个子控件通过设置weight(权重)来获得父控件中的剩余空间)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
猜你喜欢
  • 2021-12-20
  • 2021-07-06
  • 2022-02-03
  • 2021-09-13
  • 2022-12-23
相关资源
相似解决方案