Program code implementation enable or disable the Windows 8.1 tablet's own active rotation featureMethod One: Use the Setdisplayautorotationpreferences function function#include Method Two: Set by the Write register to enable.1 means enable self-active rotation, 0 to prevent self-rotationThe location of the detailed key is as follows:Key_local_machine\software\microsoft\windows\currentversion\autorotation Set the Windows 8.1 screen to rotate your code
Auto-Rotate (autorotation): Enables applications to be used in portrait mode (long and narrow) or landscape mode (short and wide), enabling you to change the orientation of the application while rotating the device. Apple recommends that most applications on the ipad should support all directions. For iphone apps, the basic principle is that if auto-rotation enh
Android Open Source Component-----Android Loopview Unlimited Auto rotate control2015-12-28 15:26 by Jerry Education, 32 reading, 0 reviews, Favorites, compilation
First, the introduction of components
App products in the head of the information list will have automatic rotation of advertising images, using Viewpager can be implemented but the coding is more troublesome, we can us
= ScreenOrientation.AutoRotation;Screen.autorotateToLandscapeLeft = true;Screen.autorotateToLandscapeRight = true;Screen.autorotateToPortrait = false;Screen.autorotateToPortraitUpsideDown = false;}
Therefore, I directly set the default square direction to the right of the Home button in setting.
In the awake or start method, the problem is solved perfectly when it is set to support horizontal screen rotation.[Applescript] How can I view the copy code in plain text?
123456789
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.