MvxListView の EmptyView プロパティにアクセスできません。ここで何が欠けているのですか?
私のレイアウトコード:
<Mvx.MvxListView
android:id="@+id/listview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
local:MvxBind="ItemsSource Items"
local:MvxItemTemplate="@layout/listelement" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@android:id/empty">
<TextView
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:id="@+id/emptyTextView"
android:text="Hello World"
android:layout_centerInParent="true" />
</RelativeLayout>
そして、EmptyView にアクセスしようとすると、null になります。これが私が試したものです:
var list = FindViewById<MvxListView>(Resource.Id.listview);
list.EmptyView.FindViewById<TextView>(Resource.Id.emptyTextView); //EmptyView is null here
前もって感謝します!