0
votes

I am developing an Android application and having troubles with layouts.

I had created layout-large and layout-large-land folders to change landscape layout and portrait layout; but i have a strange problem.

If i had started application in portrait mode and rotated to landscape mode; application didn't change layout so user see portrait mode layout. But if i had started application in landscape layout mode and rotated to portrait mode; application didn't change layout so user see landscape mode layout.

Both times if reopen that window, current orientation mode applied to screen.

There is no android:orientation attribute on layouts.

1
What is the value of android:screenOrientation="" in Manifest.xml for Activities?Muhammad Nabeel Arif

1 Answers

0
votes

Make sure you don't have android:configChanges="orientation" set in your AndroidManifest for that Activity (which avoids recreating the Activity on orientation change and therefore will not re-read your config specific layouts).