cymcsg / UltimateRecyclerView

A RecyclerView(advanced and flexible version of ListView in Android) with refreshing,loading more,animation and many other features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EmptyView not called

Calion54 opened this issue · comments

My adapter is empty, so I would like use my empty recycler view but it's doesn't called (the layout is the same that your examples).

    <com.marshalchen.ultimaterecyclerview.UltimateRecyclerView
        android:id="@+id/rv_recycler_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:recyclerviewScrollbars="vertical"
        app:recyclerviewEmptyView="@layout/empty_recycler_view"/>

When I not add this line ( app:recyclerviewEmptyView="@layout/empty_recycler_view") and the adapter is empty, there is a error appears. So I don't understand why my text is not display.

Ok so, if your adapter is empty and using notifySetDataChanged with data already empty. the layout is not display. Its a bug or normal ?