I am having trouble with an ImageView on different size screens. I usually work with my Nexus 4, and everything looks great there. However, on other devices with different size screens, the ImageView is not being resized as I'd like it. I am using a Designer script to adjust the size of the views.
The ImageView is mean to take up as much of the screen as is possible below the two buttons, subject to keeping the image's aspect ratio. The text on the two labels is meant to appear in front of the image.
On my Nexus 4, the image appears exactly as I expect it to. On other devices, though, the buttons and labels are correctly resized, but the image is not. For example, on a no-name tablet that I have, the image is much smaller than I expect.
I have attached a small project that shows the problem. Can anyone see what I'm doing wrong?
Thanks, Peter
The ImageView is mean to take up as much of the screen as is possible below the two buttons, subject to keeping the image's aspect ratio. The text on the two labels is meant to appear in front of the image.
On my Nexus 4, the image appears exactly as I expect it to. On other devices, though, the buttons and labels are correctly resized, but the image is not. For example, on a no-name tablet that I have, the image is much smaller than I expect.
I have attached a small project that shows the problem. Can anyone see what I'm doing wrong?
Thanks, Peter