cymcsg / UltimateRecyclerView

A RecyclerView(advanced and flexible version of ListView in Android) with refreshing,loading more,animation and many other features.
Apache License 2.0
7.22k stars 1.43k forks source link

EmptyView problem #9

Closed Swisyn closed 9 years ago

Swisyn commented 9 years ago

I'm fetching files from a folder to recyclerview if the folder doesn't contain any files then i'd like to show empty view. Emptyview is shown if the adapter is set to null right? but when i try to ultimateRecyclerView.setAdapter(null); it crashes.

Is there a solution to show empty view when adapter is set null or it can be empty by default?

cymcsg commented 9 years ago

Thank you for telling this bug. In fact the empty view can only show when the adapter is empty but not null now. I'll fix the problem today and push the latest version to the dev branch.

Swisyn commented 9 years ago

Thank you so much for the quick response.

Rainer-Lang commented 9 years ago

Thanks, I also need this.

cymcsg commented 9 years ago

The function in current dev version of the UltimateRecyclerview is fine. As I am dealing with the UltimateAndroid framework these weeks, so it may take some time to test and publish the released version.