If you use Linear layout then it will automatically adjust.

If you use Absolute layout then you need to create a new xml layout under
res/layout-land with file name same as res/layout.


On Mon, May 17, 2010 at 2:19 PM, grace <grace.a...@wipro.com> wrote:

> because the width and height values differ int he landscape and
> potrait..
> the positioning of widgets on screen will differ..
>
> so if you are changing the orientation ,then you can have different
> layouts for each orientation and set the same for respective
> orientations.
>
> On May 15, 4:42 pm, Karteek N <kartee...@gmail.com> wrote:
> > Hi,
> > I have a an application which is having some UI items like Buttons Radio
> > Buttons etc.
> > I want to change through code from landscape to portrait mode.
> > I did  by calling the method
> > setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
> > But my UI items totally disturbed some of the i am unable to see.
> > What care i need to take for this
> > Any one can give me any documents or any help
> >
> > Thanks in advance
> >
> > --
> > 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 athttp://
> groups.google.com/group/android-developers?hl=en
>
> --
> 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
>

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