ANDROID:将自定义视图添加到网格视图
在我的android中,我有一个列表,每个列表项将显示三个GridView。一个GridView显示所有项目及其详细信息,第二个GridView显示与该列表相关的一些操作,然后第三个GridView显示注销操作ANDROID:将自定义视图添加到网格视图,android,Android,在我的android中,我有一个列表,每个列表项将显示三个GridView。一个GridView显示所有项目及其详细信息,第二个GridView显示与该列表相关的一些操作,然后第三个GridView显示注销操作 有可能实施吗?如果是,请向我提供实现的最佳方法。…如果要在ListView中添加网格,可以选择GridLayout而不是grid view。 通过以下xml代码自定义listview项 <LinearLayout xmlns:android="http://schemas.andr
有可能实施吗?如果是,请向我提供实现的最佳方法。…如果要在ListView中添加网格,可以选择GridLayout而不是grid view。 通过以下xml代码自定义listview项
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/whole_row"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<GridLayout
android:id="@+id/one"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:columnCount="3"
android:orientation="horizontal"
> </GridLayout>
<GridLayout
android:id="@+id/two"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:columnCount="3"
android:orientation="horizontal"
> </GridLayout>
<GridLayout
android:id="@+id/three"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:columnCount="3"
android:orientation="horizontal"
> </GridLayout>
</LinearLayout>