Hello there, this is sort of a noop question. but ...
# android
r
Hello there, this is sort of a noop question. but I have been stuck for a couple of hours now. I am using constraint layout and the view looks good on 5" or bigger screens. but when I test it on smaller screens, for example, 4" or smaller. the views at the bottom get off the bottom of the screen. even though the view is constrained to the bottom. would creating a new layout for smaller screen sizes be the best solution?
r
do they have any top alignment?
r
yes
I tried to use chains but it didn't work
@Ryan would it help if you see my xml?
r
most likely some element is wrap content or something that is too big and pushing you down,
should I make all the views height match constraints?
r
i would use percentages
except for views that are small
0dp, heightPercent
r
@Ryan thanks man. I am gonna try it
c
Easy fix is using a scrollview as root, proper way would have a seperate layout or more responsive layout.
👍 1
r
@CyberShark I ended up doing that
👍 1
r
Yea, but having single page views, no greater feeling.
😄 1
r
@Ryan I agree. But it's kinda hard to do so on 4" device or smaller. The views would be too close that you wouldn't be able to touch them
r
You can only fit so much. My chevy spark is small but can fit 4 people.
😄 1
r
@Ryan you're cool dude haha