Sorry, there is no easy way to do this.  The screen is in one orientation or
another.  The only thing I think you could do is do tricks to rotate the
rendering of your UI, such as be applying a transformation to the canvas
(and that of course requires transforming all touch events being delivered
etc).

On Thu, Jan 6, 2011 at 9:41 PM, Darshan <[email protected]> wrote:

> My app's requirement is that it should display the Video in Landscape
> mode only even when the device's orientation is changed to Portrait
> leaving all other controls to be in sync with the device's
> orientation. Thats why I am looking for a way to rotate the VideoView
> alone.
>
> I am looking for a way to handle the below scenario:
> 1. Initially the device is in Portrait mode when the 'Play Video"
> button is pressed.
> 2. The video will be fetched and prepared for display.
> 3. Now, when displaying the first frame, I need to rotate the video
> view so that the video gets displayed as in Landscape mode (note that
> the device is still in Portrait mode).
> 4. Once a way for achieving what is required in point 3) above is
> available, I can then need not worry on rotating the videoview on
> further device orientation changes.
>
> Hope I had clearly explained the scenario.
>
> Thanks,
> Darshan
>
> On Jan 7, 10:30 am, Darshan <[email protected]> wrote:
> > My app's requirement is that it should display the Video in Landscape
> > mode only even when the device's orientation is changed to Portrait
> > leaving all other controls to be in sync with the device's
> > orientation. Thats why I am looking for a way to rotate the VideoView
> > alone.
> >
> > ---
> > Darshan
> >
> > On Jan 6, 10:06 pm, TreKing <[email protected]> wrote:
> >
> > > On Thu, Jan 6, 2011 at 8:03 AM, Darshan <[email protected]> wrote:
> > > > But, what I want is to display the video in Landscape mode even when
> the
> > > > device is in Portrait mode. All other UI elements (textview, an
> edittext
> > > > field, a 'Play Video' Button etc.,) should be displayed in Portrait.
> >
> > > Why even bother doing this? If you're not going to rotate the video,
> then
> > > there's no reason for the user to rotate their phone and thus no reason
> to
> > > rotate the controls.
> >
> > >
> -------------------------------------------------------------------------------------------------
> > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > > transit tracking app for Android-powered devices
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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 [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

Reply via email to