Why does the LinearLayout attribute “layout_weight” seem to do the opposite of what I think it should do?

后端 未结 3 1314
无人及你
无人及你 2021-01-18 07:58

I\'m following this tutorial to learn about linear layouts. Here\'s the main layout file:




        
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-18 08:21

    Emphasis on any remaining space...

    I think it is a conflict between using fill_parent for height and the layout weight. Try setting android:layout_height="0dp" for both LinearLayouts.

提交回复
热议问题