All you have to do is create a directory called layout-land/ and put a
layout file with the same name in it. Android will take care of the
rest.

On Fri, Oct 2, 2009 at 11:24 AM, sdphil <phil.pellouch...@gmail.com> wrote:
>
> is there a way to have a view use a different layout when an
> orientation change occurs.
>
> suppose i want the view to look one way in portrait and another way in
> landscape -- all the same data, but arranged differently.
>
> I'm thinking one way to do this would be to have two different linear
> layouts with android:visibility="gone" and simply display the
> appropriate one (set android:visibility="visible") based on
> orientation -- i.e. do this from code.
>
> is there a way to do this in xml?  or something like this (i.e. in
> landscape, put the textview here, in portrait, put it here instead)?
>
> tia.
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to