kelvin kelvin - 12 days ago 9
Java Question

How to change screen on rotation

I would like to change the View(to new xml with activity) when I rotate the screen on android studio.

Is there anyway I can do this?

Answer

Create a layout-land directory and put the landscape version of your layout XML file in that directory.