由于某种原因,空视图,在这种情况下,TextView总是出现,即使ListView不为空。我认为ListView会自动检测何时显示空视图。
android:layout_height="fill_parent"
android:layout_width="fill_parent">
android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="No Results" />
如何正确连接空视图?