开发者

How to simulate landscape orientation in the android simulator?

How can I simulate landscape orientation in the开发者_StackOverflow android simulator?


Try hitting ctrl+F12 :)


what do you mean by Horizontal simulation? If you are talking about activity orientation then either you can define that in AndroidManifest xml file like this:

<activity ....
android:screenOrientation="landscape"/>
Or if you want to do in the code then you can request orientation on your activity object:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜