混合布局类型?

时间:2015-02-14 22:16:31

标签: android android-layout

我正在创建一个简单的应用程序。创建这样的GUI的最佳方法是什么?如何混合布局?

http://s15.postimg.org/iic9v0v97/example.png

1 个答案:

答案 0 :(得分:0)

您可以使用TextFieldTableLayoutLinearLayout(垂直方向)。

编辑: 这是一个划痕:

<LinearLayout
    android:width="fill_parent"
    android:height="fill_parent"
    android:weightSum=100
    orientation="horizontal">

    <RelativeLayout
        ...
        android:weight="70"> //70%of the parent width
        <TextField
           android:width="100px"
           android:height="100px"
           alignParentToLeft
           alignParentToTop>
        </TextField>
        <TableLayout
           ...
           align bottom left>
        </TableLayout>
    </RelativeLayout>

   <LinearLayout
       ...
       android:weight="30"> //30%of the parent layout
     //in this part should be the right column
  </LinearLayout>