Showing Empty View When ListView Is Empty

Suraj Bahadur
By -
0
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"/>
Tags:

Post a Comment

0Comments

Post a Comment (0)