Eclipse和Android的XML布局给人"'默认'不是任何设备/区域设置组合&QUOT最佳匹配; [英] Eclipse and Android XML layouts gives "'default' is not a best match for any device/locale combination"

查看:142
本文介绍了Eclipse和Android的XML布局给人"'默认'不是任何设备/区域设置组合&QUOT最佳匹配;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次拍与XML布局的应用程序。在过去,我一直动态生成的我的布局在运行时,所以不用担心,我不是一个Android新手。不过,这是我第一次与静态布局。那么,什么是这个消息怎么一回事?

This is my first time making an app with XML layouts. In the past I have always dynamically generated my layouts at runtime, so don't worry, I am NOT an Android newbie. Still, this is my first time with static layouts. So what's this message all about?

[2010-09-22 20点43分23秒 - 罗克波特]'默认'不是任何设备/区域设置组合的最佳匹配
。 [2010-09-22 20时43分23秒 - 罗克波特]显示其与地区语言___Region __,标准屏幕,短的屏幕纵横比,横向,没有码头,一天的时间,中密度,基于手指的触摸屏,软键盘,Qwerty全keybard,轨迹球导航,屏幕分辨率小480x320

[2010-09-22 20:43:23 - Rockport] 'default' is not a best match for any device/locale combination.
[2010-09-22 20:43:23 - Rockport] Displaying it with 'Locale Language ___Region __, Normal Screen, Short screen aspect ratio, Landscape Orientation, No Dock, Day time, Medium Density, Finger-based touchscreen, Soft keyboard, Qwerty keybard, Trackball navigation, Screen resolution 480x320'

它得到每次我打开布局在<$​​ C $ C>一种布局/ 文件夹印到我的Eclipse控制台。如果我从任何其他文件夹中打开的布局,如布局陆/ 然后我没有得到任何消息。难道仅仅是图形化布局编辑器说,这是我会怎么显示你的东西?我可以放心地忽略它?

It gets printed to my Eclipse console every time I open up one of the layouts in the layout/ folder. If I open the layout from any other folder, such as layout-land/ then I get no message. Is it just the graphical layout editor saying, "Here's how I'm going to display things for you?" Can I safely ignore it?

推荐答案

没有不用管它,它意味着什么。

No don't ignore it, it does mean something.

这是什么意思是,Eclipse已经发现了它认为,一个布局更精确,在切换到它。

What it is saying is that Eclipse has found a layout which it believes is more accurate and is switching to it.

因此​​,举例来说,如果你有一个默认的布局和低密度的布局,它会切换到低密度布局。您对布局所做的任何更改将在低密度code不是在默认的code。

So for example if you have a default layout and a low density layout, it will switch to the low density layout. Any changes you make to the layout will be in the low density code not in the default code.

我不知道如何从关闭XML开放正确的切换,这是越来越很讨厌,除了

I don't know how to switch back, which is getting very annoying, apart from closing the xml and opening up the correct one.

如果有人知道如何切换,是的,我曾尝试在低密度和中密度设备之间的编辑器顶部更改设置,请告诉我。谢谢你。

If anyone knows how to switch, and yes I have tried changing the settings at the top of the editor between low density and medium density devices, please tell me. Thanks.

这篇关于Eclipse和Android的XML布局给人&QUOT;'默认'不是任何设备/区域设置组合&QUOT最佳匹配;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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