(How does Android mobile phone dynamically change the direction of mobile phone screen? It is possible that mobile phones will also have this function. When the direction of mobile phones changes, the screen will also change. It is easy to achieve this in Android mobile phones The Demo in this section mainly refers to a button on the interface. When clicked, if the screen direction is PORTRAIT, the screen direction has just been changed to LANDSCAPE, otherwise, it is still! We mainly use getRequestedOrientation () and setRequestedorientation (). However, to use these two methods, you must first set the screen property in AndroidManiefst.xml, otherwise the program will not work properly
Horizontal and Vertical Layout of the Interface.doc)