What's the right way to scale an arbitrary-sized image up to consume all of one axis while maintaining aspect ratio using an ImageView/xml?
For instance, I have a 300px x 300px image I'd like to stretch up to fill the screen while keeping aspect. That means on a 480x800 screen, it should be 480x480. On a 1280x800 screen, it should be 800x800. Is there an easy way to do that or do I need to make my own custom view that's smart about it? I can, it just seems like something that should be trivial to do without. Yes, I have RTFM'd already and tried things like making the ImageView fill one axis or the other while trying different scaleTypes like fitCenter.. Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en