Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 paging loadstate #195

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

V3 paging loadstate #195

wants to merge 14 commits into from

Conversation

evant
Copy link
Owner

@evant evant commented Aug 9, 2020

No description provided.

@evant evant mentioned this pull request Aug 9, 2020

val items = itemBindingOf<Any>(BR.item, R.layout.item_immutable)

val loadStateItems = OnItemBindLoadState.Builder<Any>()
.item(BR.item, R.layout.item_immutable)
.headerLoadState(BR.load, R.layout.network_state_item)
Copy link

@kedzie kedzie Aug 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we split this into its own OnItemBindClass? so we can separate the layouts for error/progress cases

Copy link

@kedzie kedzie Aug 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally would look like this

.headerLoadState( OnItemBindClass<LoadState>().apply {
            map<LoadState.Error>(BR.item, R.layout.network_state_item_error)
            map<LoadState.Loading>(ItemBinding.VAR_NONE, R.layout.network_state_item_progress)
        } )

But in this case our item is Load not LoadState.Error..

@tobbelindberg
Copy link

Any plans on merging this anytime soon?

@elimak
Copy link

elimak commented Nov 28, 2022

is there a chance this PR would be merged in the future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants