Linear Layout and weight in Android

后端 未结 18 2500
伪装坚强ぢ
伪装坚强ぢ 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条回答
  •  梦毁少年i
    2020-11-22 02:49

    Perhaps setting both of the buttons layout_width properties to "fill_parent" will do the trick.

    I just tested this code and it works in the emulator:

    
    
        

    Be sure to set layout_width to "fill_parent" on both buttons.

提交回复
热议问题