Android “分析XML时出错:文档元素后出现垃圾”

Android “分析XML时出错:文档元素后出现垃圾”,android,Android,我在尝试创建自定义按钮时收到此错误消息,我已经尝试了与我的问题类似的大多数答案,但仍然无法使其工作。非常感谢您的帮助。另外,由于这是我第一次在这里发帖,请原谅我的规则有任何错误 <?xml version="1.0" encoding="UTF-8"?> <RelativeLayout <Selector xmlns:android="http://schemas.android.com/apk/res/android">

我在尝试创建自定义按钮时收到此错误消息,我已经尝试了与我的问题类似的大多数答案,但仍然无法使其工作。非常感谢您的帮助。另外,由于这是我第一次在这里发帖,请原谅我的规则有任何错误

<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout
 <Selector
          xmlns:android="http://schemas.android.com/apk/res/android">
           <item android:drawable="@drawable/touchlighter" android:state_pressed="true"/>
           <item android:drawable="@drawable/touch"/>
 </Selector>
</RelativeLayout>
你在打字
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android">
    <Selector>
       <item android:drawable="@drawable/touchlighter" android:state_pressed="true"/>
       <item android:drawable="@drawable/touch"/>
    </Selector>
</RelativeLayout>