如何将Android AVD置于正确的肖像模式? [英] How do I place an Android AVD in proper portrait mode?
本文介绍了如何将Android AVD置于正确的肖像模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个基于Nexus One的AVD,自然会以横向模式启动。当我使用指定的键组合Ctrl-F12将其置于纵向模式时,手机会变为画像,但屏幕仍然是风景,即我必须将我的头部向左转90才能正确读取。
如何让屏幕本身进入纵向模式?
I have a Nexus One based AVD that naturally starts in landscape mode. When I use the specified key combo, Ctrl-F12, to place it in portrait mode, the phone goes portrait, but the screen is still 'landscape', i.e. I have to turn my head 90 left to read it properly.
How do I get the screen itself into portrait mode as well?
推荐答案
好的,所以那里您可能有可能在manifest.xml
中更改了应用程序的配置。您可以使用manifest.xml中的android:screenOrientation
启用此功能。
还有一件事,你需要在项目目录中有一个layout-land
文件夹。此文件夹包含与布局文件夹
相同的所有布局文件。但是在布局文件夹中,您拥有所有文件的纵向方向,并且在layout-land中,您可以使用与布局文件夹相同名称的相同文件,但方向为横向。
希望这会对你有所帮助。如果不是,请粘贴manifest.xml :)
-KR
Okay, so there might be a possibility that you have changed the configuration of the application inmanifest.xml
. You can enable this feature usingandroid:screenOrientation
in manifest.xml.
And yeah one thing as well, you need to have alayout-land
folder within your project directory. This folder contains the all the layout files same the layoutfolder
. But in layout folder you have the "Portrait" orientation of all the files and in layout-land, you can have the same files with the same names as layout folder but the orientation is "Landscape".
Hope this would help you. If it's not , paste your manifest.xml :)
-KR
这篇关于如何将Android AVD置于正确的肖像模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文