What does android:layout_weight mean?

前端 未结 13 1541
遇见更好的自我
遇见更好的自我 2020-11-21 06:14

I don\'t understand how to use this attribute. Can anyone tell me more about it?

13条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-21 06:41

    Think it that way, will be simpler

    If you have 3 buttons and their weights are 1,3,1 accordingly, it will work like table in HTML

    Provide 5 portions for that line: 1 portion for button 1, 3 portion for button 2 and 1 portion for button 1

    Regard,

提交回复
热议问题