Dec 17 | 7:20 PM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Dec 17 | 7:30 PM |
ani | has entered the room |
ani |
Hey Mark, how are you doing?
|
Mark M. |
hello, ani!
|
Mark M. |
sorry if there was a delay there
|
Dec 17 | 7:35 PM |
Mark M. |
how can I help you today?
|
Dec 17 | 7:35 PM |
ani |
No worries at all.
|
ani |
I was using Paging 2, and wanted to pick you brain on something around implementation
|
Mark M. |
I played lightly with Paging 1, and I have done a fair bit with Paging 3
|
ani |
ah..
|
Mark M. |
Paging 2 seemed pretty close to Paging 1, so I didn't really do much with it
|
ani |
cool
|
Mark M. |
so, I'll try to help, but my Paging 1/2 depth is limited
|
ani |
View paste
|
ani |
PS. I am implementing Database+network solution
|
ani |
let me find a link and paste here
|
Mark M. |
OK, for Paging 1/2, I only successfully used Room for getting a DataSource.Factory
|
Mark M. |
I tried once to wrap my head around the network approach, and I eventually gave up in frustration
|
Dec 17 | 7:40 PM |
ani |
Ah..
|
ani |
haha, no worries.
|
ani |
View paste
|
Mark M. |
OK, I will pull it up now
|
Mark M. |
for what it's worth, if you are working in Kotlin, Paging 3 is *wonderful* compared to the Paging 1 API
|
ani |
That link sums it up. but I understand that you have not worked on paging 2, I am thankful to you to take a look.
|
Mark M. |
in terms of that Stack Overflow question... sorry, but that is beyond the scope of my Paging 1/2 expertise
|
Mark M. |
I will put a bounty on it, though, this weekend when it becomes eligible
|
ani |
totally fine, thanks so much for taking a look anyways.
|
Dec 17 | 7:45 PM |
ani | |
ani |
Ya, I heard about that(paging 3). My only gripe is that it is in alpha. Waiting for it to be RC.
|
ani |
View paste
|
Mark M. |
I do not recall an option for that, other than to progress through the PagedList yourself
|
Mark M. |
but, other than putting the paging results into a RecyclerView, I did little with consuming the output of Paging
|
Dec 17 | 7:50 PM |
ani |
Ig I understand you correctly, calling pageList.get(some index that is not in the list currently) ?
|
Dec 17 | 7:50 PM |
Mark M. |
yes, or, effectively, copying the PagedList to an ArrayList or something
|
Mark M. |
that may get tricky with the asynchronous data loads, though
|
ani |
View paste
|
ani |
View paste
|
Dec 17 | 7:55 PM |
Mark M. |
yeah, they will be *much* more familiar with earlier editions of Paging than I will be
|
Dec 17 | 8:20 PM |
ani | |
Mark M. |
sorry I could not be of greater help!
|
ani |
View paste
|
Dec 17 | 8:30 PM |
Mark M. |
that's a wrap for today's chat
|
Mark M. |
the transcript, such as it is, will be posted to https://commonsware.com/office-hours/ shortly
|
Mark M. |
the next chat is Saturday at 4pm US Eastern
|
Mark M. |
have a pleasant day!
|
ani | has left the room |
Mark M. | turned off guest access |