Reputation: 1
I have an activity with image and two buttons. I'm trying to scale the image, so that two buttons are always visible on screen. Currently image isn't downscaled on small phones, which then causes to button 2 to dissapear. How can I achieve that the image will scale so that other content is always visible on page?
Some images for illustration:
Currently on small phones (second button is dissapears as it is off the screen at the bottom):
https://i.sstatic.net/Vk2Ru.jpg
How it should be (Image is downscaled, so both buttons fit):
https://i.sstatic.net/mx5sb.jpg
Thanks in advance
Upvotes: 0
Views: 43
Reputation: 6707
Either use a ScrollView or use layout_weights or set your image height to a certain height like 300dp.
Upvotes: 1