Layout problem: how to place something on top and bottom?

前端 未结 5 1652
忘掉有多难
忘掉有多难 2021-01-05 02:12

I want create a layout, with a horizontal LinearLayout(s) on top and bottom, a ListView fill in middle.

How can I define the main.xml.

I tried to create a la

5条回答
  •  渐次进展
    2021-01-05 02:49

    The problem would be that you are defining both of them relative to the size of the content they contain, but if the combined content of both is bigger than the screen then one of them will have to overlap the other one, you would be better to define the layout_height using an absolute measurement in a linear layout

提交回复
热议问题