Android 混合布局类型?
我正在创建一个简单的应用程序。创建这样的GUI最好的方法是什么?如何混合布局 可以使用a、a和垂直方向 编辑: 这是一个划痕:Android 混合布局类型?,android,android-layout,Android,Android Layout,我正在创建一个简单的应用程序。创建这样的GUI最好的方法是什么?如何混合布局 可以使用a、a和垂直方向 编辑: 这是一个划痕: <LinearLayout android:width="fill_parent" android:height="fill_parent" android:weightSum=100 orientation="horizontal"> <RelativeLayout ... a
<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>
我知道,但我如何设置屏幕的部分?在此之前,我只是简单地创建每个活动只有一个布局的应用程序。布局中有重量这样的东西吗?是的,有一个重量属性,你们可以用于线性布局。我将编辑我的答案,并给你一个刮痕