Linear Layout and weight in Android

后端 未结 18 2804
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 02:41

I always read about this funny weight value in the Android documentations. Now I want to try it for the first time but it isn\'t working at all.

As I understand it

18条回答
  •  情歌与酒
    2020-11-22 02:48

    You are not setting the layout_weight property. Your code reads weight="1" and it should read android:layout_weight="1".

提交回复
热议问题