(使用Android版本4.0.4)Android的 - 創建像雜貨店智商列表列表
我試圖建立的功能非常相似,在GroceryIQ應用程序中發現的列表:
我可以使用下面的xml中展示的ExpandableListView和一個擴展BaseExpandableListAdapter的自定義類來創建漂亮的列表,但我在第二個列表中遇到了問題。它是兩個列表中的一個視圖嗎?難道這只是一個特殊的列表分隔線,看起來像一個酒吧的列表?似乎有一種意見認爲
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<ExpandableListView
android:id="@+id/ExpList"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:divider="@null"
android:dividerHeight="5dp"
android:groupIndicator="@null"
android:paddingBottom="60dp" />
<include
android:layout_width="wrap_content"
android:layout_alignParentBottom="true"
layout="@layout/bottom_bar_list" />
</RelativeLayout>
我已經嘗試添加另一個列表,但兩個列表沒有合作過well--無論是第一清單砍掉或第二列表不顯示。
感謝您的想法!