sw600dp量词不工作的Galaxy Tab [英] sw600dp quantifier not working on Galaxy Tab

查看:134
本文介绍了sw600dp量词不工作的Galaxy Tab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2段的程序。在平板电脑上,我展示他们两个。
我做这与 /布局sw600dp 文件夹。
在摩托罗拉Xoom等平板电脑是工作,但不是在三星Galaxy Tab 10.1
这是很奇怪的。我搜索无处不在,还没有来翻过一个人同样的问题?
什么原因?

I have a program with 2 fragments. On tablets I am showing both of them.
I am doing this with /layout-sw600dp folder.
On Motorola Xoom and other tablets it is working but not in Samsung Galaxy Tab 10.1
This is very strange. I have searched everywhere and havent come accross with a person with the same problem?
What can be the reason?

推荐答案

不妨把此作为一个答案。该swXXXdp标识符只为Android 3.2及以上。如果你想确保你正确地定位片后两者和pre-3.2,则必须使用swXXXdp属性的的大/ XLARGE属性。因此,对于一个例子:

Might as well put this as an answer. The swXXXdp identifiers are only for Android 3.2 and above. If you want to make sure you properly target tablets both post- and pre-3.2, you must use the swXXXdp attribute and large/xlarge attributes. So for an example:

  • /布局/ - 为手机设备和平板电脑画像
  • /布局XLARGE陆/风景片pre-3.2
  • /布局sw600dp陆/风景片后3.2

蜂巢3.2之前,Android的使用大小水桶小(如野火),正常(基本上任何电话),大(条纹5,OG的Galaxy Tab),XLARGE(Xoom的),但现在沟渠它们有利于这些DP值允许更好的控制。

Before Honeycomb 3.2, Android used "size buckets" of small (e.g. Wildfire), normal (basically any phone), large (Streak 5, OG Galaxy Tab), xlarge (Xoom), but now ditches them in favour of these dp values which allow finer control.

这篇关于sw600dp量词不工作的Galaxy Tab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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