我正在创建一个简单的应用程序。创建这样的GUI的最佳方法是什么?如何混合布局?
答案 0 :(得分:0)
您可以使用TextField,TableLayout和LinearLayout(垂直方向)。
编辑: 这是一个划痕:
<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>