atributos personalizados para diferentes dominios de atributos, utilizando el mismo nombre de atributo, se generará un error:
../attrs.xml: Error: Found item Attr/rightTextColor more than one time
<declare-styleable name="s1">
<attr name="rightTextColor" format="color"/>
</declare-styleable>
<declare-styleable name="s2">
<attr name="rightTextColor" format="color"/>
</declare-styleable>
Resolución:
La propiedad se define en el referencial solamente declarativa externo, interno.
<attr name="rightTextColor" format="color" />
<declare-styleable name="s1">
<attr name="rightTextColor"/>
</declare-styleable>
<declare-styleable name="s2">
<attr name="rightTextColor"/>
</declare-styleable>