I have the similar issue, the answer is interesting but i am wondering if i can avoid specifying an alternate landscape layout just for that in my case: indeed i don't want to have 2 different background pictures for horizontal/vertical layout but just to fit to screen with height/width ratio preserved and to crop what can not fit in the screen but default behaviour is to shrink without preserving aspect ratio.
Anyway to tune that? Or at least maybe using an imageview in the background would avoir replicate the layout just for that? Thierry. 2010/6/10 Kumar Bibek <[email protected]> > Sure, you have to create a different layout file for the landscape > mode with a different background image in the layout-land folder. > > Try searching for it in the docs and you will get an idea on what and > how to do it. > > http://tech-droid.blogspot.com/2009/10/orientation-independent-applications.html > > Thanks and Regards, > Kumar Bibek > http://tech-droid.blogspot.com > > On Jun 9, 1:08 am, ChadS <[email protected]> wrote: > > I have an image set as my background and when it is vertical, the > > image looks fine. However, when the orentation is changed, the image > > get streched out. If there a way that I can change the image based on > > the orentation of the device? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Thierry. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

