title: Same-named attributes in attrs.xml for custom view
body: <p>I'm writing a few custom views which share some same-named attributes. In their respective <code>&lt;declare-styleable&gt;</code> section in <code>attrs.xml</code> I'd like to use the same names for attributes:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;declare-styleable name="MyView1"&gt;
          &lt;attr name="myattr1" format="string" /&gt;
          &lt;attr name="myattr2" format="dimension" /&gt;
          ...
      &lt;/declare-styleable&gt;
  
      &lt;declare-styleable name="MyView2"&gt;
          &lt;attr name="myattr1" format="string" /&gt;
          &lt;attr name="myattr2" format="dimension" /&gt;
          ...
      &lt;/declare-styleable&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>I'm getting an error saying that <code>myattr1</code> and <code>myattr2</code> are already defined. I found that I should omit the <code>format</code> attribute for <code>myattr1</code> and <code>myattr2</code> in <code>MyView2</code>, but if I do that, I obtain the following error in the console:</p>
  
  <pre><code>[2010-12-13 23:53:11 - MyProject] ERROR: In &lt;declare-styleable&gt; MyView2, unable to find attribute 
  </code></pre>
  
  <p>Is there a way I could accomplish this, maybe some sort of namespacing (just guessing)?</p>