0

I have 2 layouts with the same name located at layout and layout-land folders. However the landscape version sometimes isn't applied though the orientation change is detected in onConfigurationChanged(Configuration newConfig). Strange thing is it happens only in specific cases. My app workflow is : LoginActivity->TabActivity The problematic activity is in one of the tabs. When I leave login in landscape it is allright and behaves correctly in all cases. When I leave login in portrait the activity in one of the tabs doesn't use the correct layout when I rotate the screen. Any idea what's wrong ? I can post some code if needed.

4

1 回答 1

1

Add android:configChanges="orientation" for your Activity in Androidmanifest.xml file....

于 2012-12-20T09:35:11.963 回答