Same-named attributes in attrs.xml for custom view

I’m writing a few custom views which share some same-named attributes. In their respective <declare-styleable> section in attrs.xml I’d like to use the same names for attributes: <?xml version=”1.0″ encoding=”utf-8″?> <resources> <declare-styleable name=”MyView1″> <attr name=”myattr1″ format=”string” /> <attr name=”myattr2″ format=”dimension” /> … </declare-styleable> <declare-styleable name=”MyView2″> <attr name=”myattr1″ format=”string” /> <attr name=”myattr2″ format=”dimension” /> … </declare-styleable> … Read more