[EMAIL PROTECTED] wrote:
> Is there a way to "anchor" views so that they are unaffected by the
> user rotating the device, or flipping out the keyboard?
> 
> I have written a simple. mostly text-less game that is neatly laid out
> in portrait mode, but as soon as the device is rotated to landscape
> (I'm using ctrl+f12 in the emulator), the play field is falling off
> the screen.
> 
> Ideally what I would like is for the two textviews to move, but for
> everything else to remain where it is. I could however accept a
> compromise and just have the textviews stay in the same place as well.
> 
> How might I achieve this?

There are a few ways to control what happens on a rotation event. I have 
three blog posts up on AndroidGuys now on that topic, with two more 
slated for today and tomorrow:

http://androidguys.com/?p=2084
http://androidguys.com/?p=2642
http://androidguys.com/?p=2723

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to