trailing tôi nhận được các lỗi nàyXML: nội dung không được phép trong phần
Multiple annotations found at this line: - error: Error parsing XML: not well-formed (invalid token) - Content is not allowed in trailing section.
trên tập tin XML này ...
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_enabled="false"
android:drawable="@drawable/btn_red" />
<item
android:state_pressed="true"
android:state_enabled="true"
android:drawable="@drawable/btn_orange" />
<item
android:state_focused="true"
android:state_enabled="true"
android:drawable="@drawable/btn_orange" />
<item
android:state_enabled="true"
android:drawable="@drawable/btn_black" />
</selector>
lẽ khá đơn giản để bạn người biết XML. Bất kỳ ý tưởng?
Bạn có thẻ bộ chọn gần hoặc đây là tệp XML hoàn chỉnh không? – ronaldosantana
toàn bộ tệp xml của nó. tôi đã làm theo hướng dẫn này .. http://blog.androgames.net/40/custom-button-style-and-theme/ – Capsud
Bạn có thể kiểm tra các ký tự này bằng cách sử dụng trình chỉnh sửa như notepad ++. Kiểm tra trong chế độ ANSI (Encoding -> mã hóa trong ANSI), bạn có thể thấy quan sát chúng ngay bên cạnh đóng thẻ. –