NestedScrollCoordinatorLayout icon indicating copy to clipboard operation
NestedScrollCoordinatorLayout copied to clipboard

Example

Open domgeorg opened this issue 7 years ago • 5 comments

can you give us an example-sample xml file of a complex implementation

what if the only scrollable view of the parent coordinator is inside the child coordinator RelativeLayout --CoordinatorLayout ----AppbarLayout -----LinearLayout(scroll behavior) -------Framelayout -------Framelayout --Framelayout

and add a fragment in the firt Framelayout with NestedScrollCoordinatorLayout --AppbarLayout ----Recyclerview(scroll behavior)

domgeorg avatar Jan 04 '18 23:01 domgeorg

You can only use NSCL as a direct child of the outer CL, as far as I remember.

natario1 avatar Jan 05 '18 15:01 natario1

I have the same issue, any workaround when the NSCL is not a direct child of a CL?

Aqua-Ye avatar Mar 08 '18 10:03 Aqua-Ye

Nope!

natario1 avatar Mar 08 '18 10:03 natario1

If the nested coordinator layout has to be a direct child of the parent coordinator layout then what is the purpose of it? For example:

(Coordinator layout with bottom navigation) -> (FrameLayout for fragments) -> (Coordinator layout for each fragment)

If I place nested coordinator layout as a direct child it would look like this

(Coordinator layout with bottom navigation) -> (Coordinator layout as a fragment holder) -> (Coordinator layout for each fragment)

Would the second setup work?

abdurahmanadilovic avatar May 26 '18 09:05 abdurahmanadilovic

In your example, the first one can be a standard Coordinator, the other two should be NSCLs and it will work. If I remember correctly.

natario1 avatar May 26 '18 10:05 natario1