Open the AndroidManifest.xml and add the following android:screenOrientation="landscape" e.g.
Read full article from Android force Horizontal layout - Stack Overflow
<activity android:name=".ActivtyName" android:screenOrientation="landscape" >
o do this at the View level, in case you want to change it dynamically or allow the user to select the orientation... use setRequestedOrientation.
thisView.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
thisView.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
Read full article from Android force Horizontal layout - Stack Overflow
No comments:
Post a Comment