Android GridView中的列大小
如何在Android GridView中创建不同大小的列。 我需要一个长的名字和九个短的数字。 GridView XML: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
<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有父线性布局,在线性布局中有子线性布局,在每个线性布局中我们可以设计您需要的,
希望这能对你有所帮助。请你详细解释一下怎么做。请你详细解释一下怎么做。