argggh, the "layout-land" folder does not work. i guess it is because i have added android:configChanges="orientation" in my manifest. ok i had better reread this article from the beginning twice :-| http://www.androidguys.com/2008/10/14/rotational-forceson-your-android-app/
2010/6/24 Thierry Legras <tleg...@gmail.com> > > 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 <coomar....@gmail.com> > >> 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 <cspren...@osthoff.com> 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 android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > > > -- > Thierry. > -- Thierry. -- 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