I create a custom control as a android library. Everything is OK when i use this control in android project if i declare and use it programmatically, but i can't use this on XML so i follow this tut Declaring a custom android UI element using XML. In the first step, I meet this error
ERROR: In <declare-styleable> myView, unable to find attribute a:gender
ERROR: In <declare-styleable> myView, unable to find attribute a:location
....
And also this on R.java file
Syntax error, insert "}" to complete ClassBody
this is my values\attrs.xml on library
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<declare-styleable name="myView">
<attr name="a:location"/>
<attr name="a:gender"/>
</declare-styleable>
</resources>
Am I missing something?. Waiting for your help. Thanks you!