'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>

 解決方法:不必在意,不會影響程序

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章