您的位置:首页 > 其它

'default' is not a best match for any device/locale combination.

2015-03-14 13:09 381 查看

在新建一个xml布局 文件时出现了下列提示:

[2015-03-14 13:06:32 - quanbjubianliang] 'default' is not a best match for any device/locale combination.

意思是说默认不是任何设备的最佳匹配

[2015-03-14 13:06:32 - quanbjubianliang] Displaying it with ', , Locale Language ___Region __, Left To Right, sw320dp, w320dp, h533dp, Normal Screen, Long screen aspect ratio(屏幕分辨率), Portrait Orientation, Normal, Day time, High Density, Finger-based touchscreen,
Soft keyboard, No keyboard, Exposed navigation, Trackball navigation, Screen resolution 800x480, API Level 19' which is compatible(兼容的), but will actually be displayed with another more specific version of the layout.

为什么会出现上述提示:可能是因为我们在创建xml布局文件时系统自动给我们创建出来了布局的layout_width、layout_height以及orientation属性,但是系统创建的属性并不一定是我们想要的布局属性,比如说我想讲orientation属性设置为horizon,而系统给出的 是oervitical,所以会提示:默认的属性设置并不一定是设备的最佳匹配

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:orientation="vertical" >

</LinearLayout> >

</LinearLayout>

解决方法:不必在意,不会影响程序
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐