Create a new folder layout-port in the res directory, create a new xml file with the same name as the horizontal screen layout file, and write the vertical screen layout in it.
You can get the direction of the current screen in the code, and then perform different logical processing based on the direction.
The poster seems to be a newbie. It is better to watch more video materials in the beginner stage.
This should be helpful to you: http://www.cnblogs.com/franksunny/p/3714442.html
Create a new folder layout-port in the res directory, create a new xml file with the same name as the horizontal screen layout file, and write the vertical screen layout in it.
You can get the direction of the current screen in the code, and then perform different logical processing based on the direction.
The poster seems to be a newbie. It is better to watch more video materials in the beginner stage.