Giter VIP home page Giter VIP logo

Comments (4)

zplesac avatar zplesac commented on June 16, 2024

@gr3ger thanks for the report, will investigate!

from mjolnirrecyclerview.

zplesac avatar zplesac commented on June 16, 2024

@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.

gr3ger avatar gr3ger commented on June 16, 2024

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.

zplesac avatar zplesac commented on June 16, 2024

Closing this as there were no activity in the last 26 days.

from mjolnirrecyclerview.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.