Coder Social home page Coder Social logo

Comments (10)

davideas avatar davideas commented on June 16, 2024

I've analyzed such improvement.
To call the click listener of the item, it is impossible to achieve it since the StickyHeaderDecoration simply draws the header over the items and the header view is not anymore a view... also ViewHolder has been recycled 👎
However, I'm able to intercept the touch event and avoid the lower item to be clicked, even returning the Header item object, but we cannot use anymore the cache mechanism but also we loose the implementation of the ViewHolder and it is not properly what I wanted for the sticky header.

Probably a custom LayoutManager can help to make the current view "sticky", but I do not know where to start.

For completeness, you can also read my answer at this question http://stackoverflow.com/questions/33018788/how-can-i-set-a-listener-inside-a-recyclerview-header-decor

from flexibleadapter.

3mph4515 avatar 3mph4515 commented on June 16, 2024

Hi! Looks like an awesome multi-library. Can you provide some examples with sticky headers? And is it possible to add extra header to sticky headers in your implementation?

Best wishes, Andrew

from flexibleadapter.

davideas avatar davideas commented on June 16, 2024

Hello @3mph4515, thanks!
What do you mean to add extra header to sticky headers?
Do you mean 1 main header always visible?

With another person, we are trying to completely change how the current headers are displayed and handled. At the end we will be able to add a real view and so to add listeners on it. It will take some time.

from flexibleadapter.

3mph4515 avatar 3mph4515 commented on June 16, 2024

Thank you for the answer.
I mean adding simple header view(like listview.addHeader) for padding.

from flexibleadapter.

davideas avatar davideas commented on June 16, 2024

I'm looking what Akylas is doing #44, he added headers/footer very recently. So the answer is yes, but:
I will need to review and metabolize his changes in order to merge his work, I don't know how much time it will take...

from flexibleadapter.

boldijar avatar boldijar commented on June 16, 2024

@davideas Currently , is there any hack to achieve this ?

from flexibleadapter.

pepitoria avatar pepitoria commented on June 16, 2024

I also need to implement this behavior. Adding comment to get notifications.

Good job btw!

from flexibleadapter.

davideas avatar davideas commented on June 16, 2024

Almost done.

from flexibleadapter.

pepitoria avatar pepitoria commented on June 16, 2024

awesome. <3 xD

from flexibleadapter.

davideas avatar davideas commented on June 16, 2024

Already available in 5.0.0-SNAPSHOT of 2016.03.26.
This functionality will be also released in 5.0.0-b5.

from flexibleadapter.

Related Issues (20)

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.