Reputation: 1852
I'm having a problem with the layout orientation.
I've recently made a android app that has a layout
and layout-land
but the problem is
that when I test it on the emulator the screen orientation works, but when I install the
apk into a real android device, the layout-land xml doesn't work even I tilt the device.
I've made 2 layout folder for layout-land
and layout
and set up the xml file with the same
name into it, and it works fine with the emulator but not in real device . I've checked the android device I tested and their is no problem with the settings. Sorry for my bad English.
Upvotes: 0
Views: 963
Reputation:
Valid Names for Tablet :
layout-sw600dp-land
layout-sw720dp-land
Check your manifest you must add : android:configChanges="orientation"
.. to your activities
with android:theme="@android:style/Theme.Translucent.NoTitleBar"
you must add android:screenOrientation="sensor"
Upvotes: 1