It is not possible to add a view for the empty state of the list through a XML-layout. If you place a TextView with the id = "@android:id/empty" at the same level under the ListView inside the ViewWrapper, the app crashes.
Placing it outside the ViewWrapper prevents it from being visible if the ListView is empty.
It is not possible to add a view for the empty state of the list through a XML-layout. If you place a TextView with the id = "@android:id/empty" at the same level under the ListView inside the ViewWrapper, the app crashes.
Placing it outside the ViewWrapper prevents it from being visible if the ListView is empty.