I have a ScrollView
at the top, inside that I have a ConstraintLayout
. Setting height to match_parent
doesn't work in ConstraintLayout so the height doesn't match the screen. Inside my ConstraintLayout
I have a floating action button and it doesn't stay at the right bottom of the screen, but it stays at the right bottom of ConstraintLayout
.
Image of my screen
How can I make the floating action button stay at the right bottom of the screen?
What I did is that I put the FAB on the same level as the app bar, making it independent of the content itself presented on that page (using coordinator layout).
Try to put the FAB on the app bar level instead of content level. See if it works.