-
Notifications
You must be signed in to change notification settings - Fork 255
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
base: main
Are you sure you want to change the base?
V3 paging loadstate #195
Conversation
|
||
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
..
Any plans on merging this anytime soon? |
is there a chance this PR would be merged in the future? |
No description provided.