I'm struggling with re-sizing images in a simple app that I am trying
to create.

The app is very simple - flash cards sort of. It will have an image
that takes up most of the screen, with 2 buttons under it - Prev and
Next. I'm trying to use Relative Layout.

How do I get the image to "fit the screen" but leave the bottom part
where the buttons are?
If I use a small image, it works as expected - I see the image and the
2 buttons below it.

However when I use a larger image - I see only a part of the image -
its obviously overflowing with buttons getting hidden. Properties are
set as - layout width and height = wrap_content and scaleType =
fitCenter.

How can I scale this? What is the most versatile way to display images
in such situations? Something that works both horizontally, vertically
and on most phones?
Which layout is the best for this? Is Relative not okay?
Is there a recommended image size for images?

I hope someone can point me in the right direction.

Thank you!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to