Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/220.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/425.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 混合布局类型?_Android_Android Layout - Fatal编程技术网

Android 混合布局类型?

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

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

可以使用a、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>

我知道,但我如何设置屏幕的部分?在此之前,我只是简单地创建每个活动只有一个布局的应用程序。布局中有重量这样的东西吗?是的,有一个重量属性,你们可以用于线性布局。我将编辑我的答案,并给你一个刮痕