Code Monkey home page Code Monkey logo

Comments (7)

mikepenz avatar mikepenz commented on May 26, 2024

@EpsilonOrionis are you talking about the StickyFooter which is available in the MaterialDrawer this can't be done via a normal RecyclerView and is out of scope for the FastAdapter

In the MaterialDrawer this is implemented via an additional LinearLayout at the end of the Drawer (lowering the size of the RecyclerView) and adding items in it. Those items there have a normal OnClickListener and in the onClick it will then execute the code.

(The responsible code within the MaterialDrawer https://github.com/mikepenz/MaterialDrawer/blob/develop/library/src/main/java/com/mikepenz/materialdrawer/DrawerUtils.java#L386)

from fastadapter.

EpsilonOrionis avatar EpsilonOrionis commented on May 26, 2024

cattura
Mike maybe I'm wrong, but i read in the FastAdapter .md that it supports the footer

from fastadapter.

FabianTerhorst avatar FabianTerhorst commented on May 26, 2024

@EpsilonOrionis you can add a footer adapter

footeradapter.wrap(itemadapter.wrap(fastadapter));
footeradapter(new Item());

footer items are added at the bottom of the list.

from fastadapter.

EpsilonOrionis avatar EpsilonOrionis commented on May 26, 2024

How can I handle the click?

from fastadapter.

FabianTerhorst avatar FabianTerhorst commented on May 26, 2024

https://github.com/mikepenz/FastAdapter/blob/develop/app/src/main/java/com/mikepenz/fastadapter/app/items/ExpandableItem.java#L109

from fastadapter.

mikepenz avatar mikepenz commented on May 26, 2024

@EpsilonOrionis that's why I asked if you talk about the StickyFooter which is different from a normal Footer

The click of an FooterAdapter item is triggered the same as of normal items

Thanks @FabianTerhorst for answering

from fastadapter.

Rainer-Lang avatar Rainer-Lang commented on May 26, 2024

@EpsilonOrionis Is your question answered? All works fine?

from fastadapter.

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.