title: Android custom widget styles: how to put them into a namespace?
body: <p>In the ApiDemos, there is a view example called Gallery1 which declares a custom style in attrs.xml, as such:</p>
  
  <pre><code>&lt;declare-styleable name="Gallery1"&gt;
      &lt;attr name="android:galleryItemBackground" /&gt;
  &lt;/declare-styleable&gt;
  </code></pre>
  
  <p>now, I want to do the same thing for my widgets, but using a different namespace. However, as soon as I replace the android: namespace with something else, I get this error:</p>
  
  <blockquote>
    <p>ERROR: In  Gallery1, unable to find attribute myns:galleryItemBackground</p>
  </blockquote>
  
  <p>Unable to find attribute? Why does it look for an attribute I am about to declare? Isn't the point of this file to be able to name your own custom attributes?</p>
  
  <p>It's interesting to note that it works if you do not supply a custom namespace, but just an attribute name.</p>