0

我想创建ListView像这样的消耗品图片

图片 图2

当点击ListView像这样的 xcewwn 节目时,首先告诉我这是消耗品ListView还是抽屉?以及我将如何创建这样的屏幕帮助我,谢谢。

下面是我ListView如何制作像这张图片一样的消耗性 ListView

<LinearLayout
    android:id="@+id/lytContent"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_above="@+id/txtCopyright"
    android:layout_below="@+id/lytTitlebar"
    android:orientation="vertical" >
     <ListView
        android:id="@+id/listMainMenu"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:divider="@color/background"
        android:dividerHeight="1dip"
        android:fadeScrollbars="true" />
</LinearLayout>
4

1 回答 1

0

Android 中已经有一个可以使用的 ExpandableListView 视图小部件,但它并不能完全满足您的需求。您必须为组标题(在您的示例中为学校名称)及其子项创建自定义视图。将所有这些与 ExpandableListAdapter 的子类挂钩,您应该一切顺利。

于 2013-07-14T14:15:49.210 回答