How can I use ConstraintLayout to have the first View shrink to fit remaining space?
问题 I have the following layout. Notice Z is positioned below Y , but constrained to the bottom. There is a nice gap gap between Y and Z , afforded by the excess vertical space. This is my desired and actual behavior when there is excess vertical space . However, I run out of excess vertical space when the keyboard is shown. Desired Behavior (no excess vertical space) When I run out of vertical space, I would like the following to occur: X ( ScrollView ), shrinks to fill the remaining space,