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



在新建一个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>

 解决方法:不必在意,不会影响程序

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值