Java – set up multi-directional – Android

I am a novice in Android programming. I have a problem with direction

I hope my activities can only be viewed in portrait and reverse portrait and direction

I thought Android: screenorientation = "portal | reverseportal" would work, but it didn't work Is there any way to do this in the inventory document?

Solution

Please review the documentation:

Longitudinal direction is added in API 9, but it can be normal or reverse longitudinal direction based on device sensor So you can use Android: screenorientation = "sensorportal"

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
分享
二维码
< <上一篇
下一篇>>