安卓资源notlong /长标识符不工作 [英] Android resource notlong / long identifiers not working

查看:332
本文介绍了安卓资源notlong /长标识符不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我有以下的资源文件夹:
1.布局sw600dp
2.布局sw600dp-notlong

Currently I have the following resource folders:
1. layout-sw600dp
2. layout-sw600dp-notlong

的想法是,我们有3个类型的装置和设备应该相应使用的资源从正确的文件夹。该装置有:
1.三星Galaxy Tab 10.1,1280×800 MDPI。 16/10
2.华硕变压器TFT 101,1280×800 MDPI。 16/10。
3.普通片剂,800 X 600 LDPI。 4/3。

The idea is that we have 3 types of devices and the devices should use the resources from the correct folder accordingly. The devices are:
1. Samsung Galaxy Tab 10.1, 1280 X 800 mdpi. 16/10
2. Asus Transformer TFT 101, 1280 X 800 mdpi. 16/10.
3. A generic tablet, 800 X 600 ldpi. 4/3.

现在的问题是,所有3设备使用资源布局sw600dp-notlong。据我了解的4/3被归类为-notlong设备。

The problem is that all 3 devices use resources from layout-sw600dp-notlong. To my understanding 4/3 is categorized as -notlong devices.

这有什么错在我的标识使用情况如何?或者,有报道标识符一个错误?

Is there anything wrong in my identifier usage? Or there's a bug reported for the identifier?

感谢提前。

推荐答案

在'notlong标识符是为那些在高宽比为基准装置中的相似(见<设备A HREF =http://developer.android.com /guide/practices/screens_support.html相对=nofollow> http://developer.android.com/guide/practices/screens_support.html )。虽然该文档是稀缺的是什么基准设备是Android设备的1.5〜1.6的,典型的分辨率。所以,你所看到的是正确的。

The 'notlong' identifier is for devices that are similar in aspect ratio to baseline devices (see http://developer.android.com/guide/practices/screens_support.html). While the docs are scarce on what baseline devices are, typical resolution of Android devices 1.5~1.6. So what you are seeing is correct.

虽然是一个长标识,比基准比率更长的设备,它看起来像你不能强迫的资源是较短的设备(如800×600)。

While there is a 'long' identifier for devices that are longer than baseline ratios, it looks like you can't force resources for devices that are shorter (e.g. 800x600).

这篇关于安卓资源notlong /长标识符不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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