I would like to use a CoordinatorLayout so that my toolbar can hide 
automatically when my content view (which supports nested scrolling) is 
scrolled. 

The problem is that the coordinator layout always expects an AppBarLayout 
as its first child, therefore i cannot put a relative layout in order to 
adjust the positions of my content view relative to the toolbar. What 
happens is that the content view starts from the beginning of the screen, 
and the toolbar overlaps it. If i use a relative layout instead of the 
coordinator layout, then everything is fine, because i can set layout_below 
on the content view, but then the toolbar is not automatically "shrinked" 
when i am scrolling the content view.

Can you think of a solution to this problem? I've got all my layout_height 
settings adjusted correctly. 

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/9a1e901b-9447-4589-95e6-640c14a6e972%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to