matvei
12/17/2020, 1:04 PMModifier.nestedScroll
. Basic components like LazyColumn
and BackdropScaffold
already support this, but you can do even more yourself!
Let me know if you have any feedback or feature requests šPhotoxor
12/17/2020, 1:30 PMnestedScroll works great, thanks. Why is PreUpPostDownNestedScrollConnection defined as internal?
Colton Idle
12/17/2020, 2:20 PMmatvei
12/17/2020, 2:24 PMmatvei
12/17/2020, 2:26 PMmatvei
12/17/2020, 2:32 PMWhy is PreUpPostDownNestedScrollConnection defined as internal?Few reasons: ⢠It's temporary. We yet to make a proper detailed nested scroll per components (probably backdrop, bottomsheet, extendedbottomsheet, etc will have slightly different logic). ⢠It's an implementation detail of the few components and not intended for an external usage. ⢠It's build on top of public API so you could easily make your own that is similar or just a copy paste and iterate on that. This way you have more control and we won't break you when we remove it. I hope that makes sense. Same idea that in LazyColumn we don't expose it, as it's just an internal detail of a scroll.
sindrenm
12/17/2020, 3:25 PM@Composable
nested inside of a <NestedScrollView />
out of the box? If not, is there a way to make that work now with some Modifier.nestedScroll()
magic?sindrenm
12/17/2020, 3:30 PM<NestedScrollView />
and clean up some stuff along the say. But I'm leaving the question up there in case someone else is looking for an answer to the same question.sindrenm
12/17/2020, 3:32 PMLazyColumn
up to a <CoordinatorLayout />
further up in the hierarchy with a behaviour like we do in XML? Looking for an equivalent to this:
layout_behavior="@string/appbar_scrolling_view_behavior"
matvei
12/17/2020, 3:37 PMmatvei
12/17/2020, 3:38 PMsindrenm
12/17/2020, 4:08 PM<AppBarLayout />
and <CollapsingToolbarLayout />
is considered magic. (I'll be the first to admit that it is a little bit magical to me. š
) Our @Composable
is inside of a <FrameLayout id="container" />
, which wraps the tab content, essentially, and that one's got a layout_behaviour
, but our LazyColumn()
doesn't seem to trigger it. If it's supposed to just work, I can see if I can make a minimal app to reproduce and report a bug. šmatvei
12/17/2020, 4:25 PMcontainer
, my first guess is that it should just work, so please go ahead a file a minimal code that you want to get working and when we'll approach view-compose nested scroll I will take this into account as well šsindrenm
12/17/2020, 10:05 PMmatvei
01/08/2021, 11:58 AMsindrenm
01/08/2021, 2:27 PMfabio.carballo
11/12/2021, 6:37 PMLazyColumn
inside an AppBarLayout
not working correctly.