开发者

How to run an android application horizontally or vertically in emulator?

I want to change the display direction of the Android emulator tha开发者_如何转开发t comes within the Eclipse bundle.

How do I change it horizontally or vertically?


http://developer.android.com/guide/developing/tools/emulator.html

Switch to previous layout orientation (for example, portrait, landscape)
KEYPAD_7, Ctrl-F11

Switch to next layout orientation (for example, portrait, landscape)
KEYPAD_9, Ctrl-F12


Ctrl + F12 if you're on a PC.


Run application on Emulator and Press Ctrl + F11 to change Potrait mode to LandScape and LandScape to Potrait .


When running ADK on Windows both Ctrl+F11 and Ctrl+F12 have the same effect which is switching back and forth between portrait and landscape orientations. Remember to release the Ctrl key every time or it won't work.


Try to add and set the screenOrientation attribute to 'landscape' on the manifest file for that specific activity

android:screenOrientation="landscape">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜