Thanks guys. I appreciate the feedback.
This did not help to make the orientation vertical on the parent layout (CoordinatorLayout).
What worked was to place both elements in a LinearLayout with a vertical orientation.
One comment above said that I should make the first appbarlayout layout: Yes, I changed this. I changed it to LinearLayout as one of my attempts to make objects stop drawing on top of each other.
I'm not sure if this was the right way to solve this problem, but it worked. I will continue. Thanks again.
source share