Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Placeholders support #31

@cvb941

Description

@cvb941

Hello and thanks for the library.

I need to start with a large empty list and load items into it lazily afterward, in order to set the initial scroll position somewhere in the middle.

I noticed that there is an option for placeholders in the PagingConfig class:

PagingConfig(
    pageSize = 10,
    enablePlaceholders = false // Ignored on iOS
)

Is it doing anything currently on Android?
As far as I know, it requires setting the itemsBefore and itemsAfter parameters in the androidx.Paging's LoadResult.Page in order to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions