Closed Morteza-Rastgoo closed 8 years ago
Have you tried the demo and set a zero count adapter to the recyclerview? I tried and it works fine.
Can you please give me the link of that class? i can't find it...
The MainActivity in demo.You can remove ultimateRecyclerView.enableLoadmore();
and make stringList as a empty list in that class.
...But I want enableLoadmore() method somewhere in my code...
You can enableLoadmore. But in demo,the loading more feature will load data to the adapter so the adapter is not null any more.
I'm confused! Please add a snippet that shows how to do this that can work. thank you.
Do you insert some items into the adapter when loading more?If you do that the adapter is not empty after loading more.
I'm inserting items after loading more but the problem is that before this, i can't see emptyView.
I set the attribute:
and the item count is zero but the empty layout flashes for a second and disappears.