Monday 19 December 2016

Showing Empty View When ListView Is Empty

  No comments
I have stuck in problem when trying to using listview  in xml file. it doesn't show default item list of list view in xml.


 <ListView
        android:layout_width="wrap_content"
        android:layout_height="match_parent"/>

By adding Id it will show default item view of list view.

    <ListView
        android:id="@+id/lv"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"/>

No comments :

Post a Comment

Loading...