Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/227.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 GridView中的列大小_Android - Fatal编程技术网

Android GridView中的列大小

Android GridView中的列大小,android,Android,如何在Android GridView中创建不同大小的列。 我需要一个长的名字和九个短的数字。 GridView XML: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vert

如何在Android GridView中创建不同大小的列。 我需要一个长的名字和九个短的数字。 GridView XML:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <GridView
        android:id="@+id/gridView1"
        android:layout_width="match_parent"
        android:layout_height="700dp"
        android:numColumns="10" >
    </GridView>
</RelativeLayout>

项目XML:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

 android:layout_width="match_parent"
 android:layout_height="match_parent"

 android:orientation="vertical">

<EditText
    android:id="@+id/editText1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
   />

</LinearLayout>

做一件事,一个xml有父线性布局,在线性布局中做子线性布局,在每个线性布局中我们可以设计您需要的,
希望这将有助于u.

做一件事,一个xml有父线性布局,在线性布局中有子线性布局,在每个线性布局中我们可以设计您需要的,
希望这能对你有所帮助。

请你详细解释一下怎么做。请你详细解释一下怎么做。