(Android バージョン 4.0.4 を使用)
GroceryIQ アプリにあるリストと非常によく似た機能を構築しようとしています。
以下の xml に示されている ExpandableListView と BaseExpandableListAdapter を拡張するカスタム クラスを使用して見栄えの良いリストを作成できますが、2 番目のリストに問題があります。間にビューがある 2 つのリストですか? これは、バーのように見える特別なリスト分割線を持つ 1 つのリストでしょうか?
<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>
別のリストを追加しようとしましたが、1 つのビューに 2 つのリストがうまく連携していないようです。最初のリストが切り取られているか、2 番目のリストが表示されていません。
ご感想ありがとうございます!