Kshitij Patil
11/26/2020, 2:25 PMComposable
? I want to implement infinite scrolling list with database caching and I found that recyclerview suits better for this use case, thus planning to implement this view entirely in a good old fragments and xml based layouts
Another solution would be calling RecyclerView using AndroidView but I'm not sure what should I go for.Alejandro Rios
11/26/2020, 2:28 PMallan.conda
11/26/2020, 2:31 PMKshitij Patil
11/26/2020, 2:41 PMallan.conda
11/26/2020, 2:45 PMKshitij Patil
11/26/2020, 2:53 PMallan.conda
11/26/2020, 2:58 PMKshitij Patil
11/26/2020, 6:19 PMallan.conda
11/26/2020, 6:28 PMallan.conda
11/26/2020, 6:29 PMallan.conda
11/26/2020, 6:30 PMKshitij Patil
11/26/2020, 8:11 PMcollectAsState
extension which needs the initial value of the containing object. The RecyclerView Adapter used in paging 3 example already has the handy Flow<CombinedLoadStateEvents>
so I guess I can simply collect this flow and mutate the viewmodel state which will trigger recomposition, am I right? The only problem is what would be the initial state.. could you please have a look at the pahing example I shared above and just nudge me in the right direction?
Thanks 🙂
Any links to using Fragment inside Composable would be great
cc: @allan.conda