0

我正在尝试在 Android 中创建以下布局,但我并不是很成功:

4 个 View 排列成一个 Grid,就像在水平和垂直中间分割屏幕一样。在这些视图之上,在中间居中,是第五个视图,并且(部分地)重叠它们。我尝试将 LinearLayout 与 RelativeLayout 结合使用,但我似乎无法做到这一点。对此有什么建议吗?

非常感谢大家,我很感谢你们的时间。

4

1 回答 1

0

须藤代码。

<Relative fill_parent >
  <Linear  fill_parent orientatin=vertical>
    <Linear orientatin=horizontal layout_weight=1 >
       <Child1 layout_weight=1 />
        <Child2 layout_weight=1 />
    <Linear>
    <Linear orientatin=horizontal layout_weight=1 >
       <Child1 layout_weight=1 />
        <Child2 layout_weight=1 />
    <Linear>
  </Linear>

  <Linear centerInParent=true />
</relative>
于 2013-03-13T11:31:35.440 回答