Horizontal screen switching for Android Simulators

Source: Internet
Author: User

Many users who have not purchased a real machine do not know how to switch the android simulator to the horizontal screen display. The regular display is HVGA-P (port), that is, the resolution is 320x133 if you use landscape screen (land ). If the simulator has not been started, you can set it in the Eclipse project run as => open run dialog box. If the android simulator has been started, you can use the shortcut key F12 or Ctrl + F11 to switch. Of course, you can use the command line to launch the simulator by using the receivemulator.exe-skin HVGA-L.

Note that switching land or port allows the interface to adapt to the form through the resource file, but the program may overload oncreate. To avoid this, you can use the method in androidmanifest. redefines the direction in the XML file, and controls it according to the onconfigurationchanged (configuration newconfig) method of the activity rewrite. related information can be obtained in the android SDK.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.