0

リストのリストを表示したい 私のデータは、SomeClass に別の ObservableCollection がある ObservableCollection です。

コードは次のとおりです。これは主なリストです。

<Mvx.MvxListView
        android:id="@+id/MenuList"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        local:MvxBind="ItemsSource Path=Dishes"
        local:MvxItemTemplate="@layout/menuitemtemplate"            
        android:background="@color/backgroundlightgray"
        android:layout_weight="1" />

これは、その中に別のリストを持つ項目テンプレートです

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res/Com.TasteITAndroidClient"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:minWidth="25px"
android:minHeight="25px">
<TextView
    android:text="Text"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/textView1"
    android:gravity="right"
    android:textSize="16dp"
    android:textStyle="bold"
    android:textColor="#ff000000"
    android:background="@color/white"
    android:padding="10dp" />
<Mvx.MvxListView
    android:id="@+id/CategoryDishes"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    local:MvxBind="ItemsSource Path=Items"
    local:MvxItemTemplate="@layout/userpagedishtemplate"
    style="@style/ToolBarImage"
    android:background="@color/backgroundlightgray"       
    android:layout_below="@+id/textView1"
    android:layout_marginTop="5dp" />

userpagedishtemplate は項目を表示します。

基本的には機能しますが、subList で height=wrap_content を指定したにもかかわらず、1 ~ 2 個のアイテムを表示する非常に小さなサイズのリストが表示されます。

私は何かを逃しましたか?私は何か他のことをすべきですか?

ありがとう

アミット

4

1 に答える 1