如何设置纵向和横向的单个应用程序
答
要做到这一点,你需要创建一个具有纵向和横向两个同名不同的XML文件并把它放在各自的文件夹。
MyProject/
res/
layout/ # default (portrait)
main.xml
layout-land/ # landscape
main.xml
+0
谢谢奇拉格拉瓦尔,它帮助我 – Vijaya 2013-04-09 05:41:58
答
你应该有横向和纵向布局。
res/layout/main.xml
res/layout-land/main.xml
http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch
创建布局端口和布局,土地的文件夹和创建XML的出现。如果你想它的工作方式不同,并要处理它的代码,然后听onConfigurationChanges。 – 2013-04-08 05:36:25
照照这http://developer.android.com/guide/practices/screens_support.html#qualifiers – 2013-04-08 05:37:14