Android screen flip up and down

Android screen flip up and down

Usually, our applications are only designed as horizontal or vertical screens. The way to lock the horizontal or vertical screens is to set the attribute Android: screenorientation to "landscape" or "portal" in the manifest.xml file:

In fact, screenorientation can also be set to many values:

Among them, sensorlandscape is that the horizontal screen flips up and down according to gravity, and the sensorportrait vertical screen flips up and down according to gravity.

If you are interested, you can also try other values

Thank you for reading, hope to help you, thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>