Skip to content

How to use PagingEpoxyController with a header? #551

@AdamMc331

Description

@AdamMc331

What I'd like to do: Display a list of items (this is a PagedList, because I use the paging lib to request data as I scroll) but also have a header at the top.

With a normal TypedEpoxyController, I can achieve this by having some state type that contains the header and the list, and I set it using TypedEpoxyController.setData().

However, inside the PagingEpoxyController, all I have the option for is submitList(pagedList) or submitList(itemList) and I'm not sure how to approach including a header in all of this. Any nudges in the right direction could help.

If I'm able to get this working, I'm more than happy to contribute back with a PR including samples of doing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions