Comments (4)
@gr3ger thanks for the report, will investigate!
from mjolnirrecyclerview.
@gr3ger Does your EmptyView has visibility set to GONE or INVISIBLE by default? If this is the case, empty view is not shown as we are only updating the visibility if the adapter is set to the RecyclerView. We can fix this with providing an extra method, with which you could declare do you want to show the empty view while adapter is not set.
For the expected behaviour, I don't agree that we should also show the header and footer views if there are no items in the adapter. We are trying to mimic the ListView's empty view behaviour, which shows only empty view in that case (header and footer are hidden).
from mjolnirrecyclerview.
Not at my work computer as of right now, so I can't double check. But I'll see if I can reliably replicate the issue (and check an extra time for visibility) and get back to you on that. It might even be some weird layout params thats the underlying problem.
And as for the empty view only with the header gone, you might be right. Although it would be quite a nice feature to have if you imagine like a Facebook post without any comments, where the post itself is the header and the items are comments. In that scenario you would like to have the header persistent while the empty view is still visible.
But as I said, I'll double check everything and get back to you.
from mjolnirrecyclerview.
Closing this as there were no activity in the last 26 days.
from mjolnirrecyclerview.
Related Issues (19)
- Clear method is missing HOT 1
- Wrong item removed from list in UI HOT 6
- Index manipulation HOT 1
- Footer view does not work properly HOT 2
- Footer/header views are not working OK for GridLayoutManager HOT 1
- Footer/Header not removing properly HOT 2
- Make hasHeader() protected HOT 2
- Support for multiple ViewHolders HOT 1
- IllegalStateException when adding data from onScrolledToNextPage method without any delay
- Hide old empty view after setting new one
- Crash when adding one item to empty list HOT 1
- What about load more on scroll feature? HOT 2
- Using multiple view types in combination with header crashes HOT 1
- Updates to array adapter methods
- NullPointerException at EmptyViewActivity
- Usage of header HOT 2
- Typo in README.md
- Multiple headers and footers issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mjolnirrecyclerview.