Skip to content
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

Example #1

Open
domgeorg opened this issue Jan 4, 2018 · 5 comments
Open

Example #1

domgeorg opened this issue Jan 4, 2018 · 5 comments

Comments

@domgeorg
Copy link

domgeorg commented Jan 4, 2018

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)

@natario1
Copy link
Owner

natario1 commented Jan 5, 2018

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

@Aqua-Ye
Copy link

Aqua-Ye commented Mar 8, 2018

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

@natario1
Copy link
Owner

natario1 commented Mar 8, 2018

Nope!

@abdurahmanadilovic
Copy link

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?

@natario1
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants