Skip to content

Conversation

@evant
Copy link
Owner

@evant evant commented Aug 9, 2020

No description provided.

@evant evant mentioned this pull request Aug 9, 2020

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.

5 participants