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.