如何包括10 QUOT;和7英寸布局得当 [英] How to include 10" and 7" layouts properly

查看:130
本文介绍了如何包括10 QUOT;和7英寸布局得当的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的Nexus 7:71280×800

Nexus 7: 7" 1280x800

银河标签10.1 101280×800

Galaxy tab 10.1 10" 1280x800

我想我的应用程序,以7和10英寸的平板电脑上运行。据我知道,我必须包括在我的应用程序,这些布局文件夹:

I want my app to run on 7 and 10 inch tablets. As far as I know, I have to include these layout folders in my app:

7寸平板电脑

  • 布局sw600dp
  • 布局sw600dp端口

10英寸的平板电脑

  • 布局sw720dp
  • 布局sw720dp端口

运行良好的关系7,但加载sw600dp布局的10平板电脑。

It runs fine on the nexus 7, but loads the sw600dp layouts on the 10" tablet.

如果我有这些默认文件夹:

If I include these default folders:

  • 布局
  • 布局端口

10Galaxy Tab的负载从这些布局。

10" galaxy tab loads layouts from these.

如果我只包括默认的布局文件夹和sw600dp之一,它崩溃的nexus7。

If I only include the default layout folders and the sw600dp one, it crashes on the nexus7.

我怎么支持手机,7平板电脑和10平板电脑,如果10的Galaxy Tab不会加载sw720p布局?

How am I supposed to support phones, 7" tablets and 10" tablets, if the 10" galaxy tab won't load the sw720p layouts?

编辑:格式化

推荐答案

但问题是,我有没有默认的布局文件夹。

The problem was, that I had no default layout folder.

我试图获得通过,只用sw600dp和sw720dp文件夹。我仍然不知道为什么他们不工作,但我不在乎。我不能使用swxxxdp< 3.2无论如何,所以螺丝

I tried getting by, using only the sw600dp and sw720dp folders. I still have no idea why they don't work, but I don't care. I can't use swxxxdp <3.2 anyway, so screw that.

所以,如果你想编写一个应用程序,有支持的手机(2.2 +),7英寸平板电脑和10英寸的平板电脑,使用下面的旧校园的东西:

So if you want to write an app, that has to support phones(2.2+), 7inch tablets and 10 inch tablets, use the following oldschool stuff:

布局这是默认的,它即使你不打算支持的手机需要!

layout this is the default, it is needed even if you don't plan to support phones!

布局大 7平板电脑(适用于仿真器和nexus7)

layout-large for 7" tablet (works on emulator and nexus7)

布局XLARGE 10平板电脑(适用于仿真器和galaxytab10.1)

layout-xlarge for 10" tablet (works on emulator and galaxytab10.1)

其他人都得出了相同的结论了。

Other people have came to the same conclusion too.

这篇关于如何包括10 QUOT;和7英寸布局得当的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆