在xml布局中出现错误 [英] Getting error in xml layout
本文介绍了在xml布局中出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将此代码用于主要布局并收到此错误.
错误为:不允许匹配"[xX] [mM] [lL]"的处理指令目标".
I am using this code for the main layout and getting this error.
The error is : "The processing instruction target matching "[xX][mM][lL]" is not allowed."
<bitmap xmlns:android="http://schemas.android.com/apk/res/android">
android:src="@drawable/bg_tile"
android:tileMode="repeat"
android:dither="true" />
请提供适当的解决方案以对其进行修复.谢谢.
Please give a proper solution to fix it. Thank you.
推荐答案
我尝试了您的代码,它正在与我一起工作.
我尝试了以下
I tried your code and it''s working with me.
i tried following
<bitmap xmlns:android="http://schemas.android.com/apk/res/android">
android:dither="true"
android:src="@drawable/ic_launcher"
android:tileMode="repeat" >
</bitmap>
我还必须添加以下声明.
xml声明.谢谢你. :-)
I have to add following declaration also.
the xml declaration. THANK YOU. :-)
这篇关于在xml布局中出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文