How do I lock the layout of my android program to one orientation
Posted
by Mike V
on Stack Overflow
See other posts from Stack Overflow
or by Mike V
Published on 2010-05-31T05:44:56Z
Indexed on
2010/05/31
5:52 UTC
Read the original article
Hit count: 306
I'm trying to write a program that needs smooth orientation sensor samples as the phone is rotated all around. Every time the orientation of the phone is changed, it interrupts the data and freezes the program while the layout changes. How can I lock it in one orientation (landscape or portrait, it doesn't matter)?
I assume it has something to do with android:layout
in the xml file, but I can't find anything online.
© Stack Overflow or respective owner