android - layout-land xml files does not work with onConfigurationChanged call back -


I have different layouts for portrait and landscape mode and I have onconfigurationChanged () Override call back. But the problem is that when I change the phone landscape, my landscape layout is not working.

Can anyone tell me that it has been configured on back to the problem or another reason?

Any help would be appreciated.

I need to override the on -connection () callback too < / Blockquote>

Why?

But the problem is that when I change the phone landscape to landscape then my landscape layout does not work.

I'm guessing "does not work" means that the scenario layout does not take effect.

To solve this problem, ideally you can destroy android: configChanges = "keyboardHidden; orientation" . The last resort should be done to insert that feature, and usually for those activities that do not have separate portrait versus landscape layout files.

Comments