title: Accessing <declare-styleable> resources programmatically
body: <p>Is it possible to receive the resource-ids being kept by a as an int[] programmatically without referring to the resource-class R?</p>
  
  <pre><code>&lt;declare-styleable name="com_facebook_login_view"&gt;
      &lt;attr name="confirm_logout" format="boolean"/&gt;
      &lt;attr name="fetch_user_info" format="boolean"/&gt;
      &lt;attr name="login_text" format="string"/&gt;
      &lt;attr name="logout_text" format="string"/&gt;
  &lt;/declare-styleable&gt;
  </code></pre>
  
  <p>The problem is that I cannot resolve the ID of the defined 'declare-styleable' attribute - 0x00 is always returned:</p>
  
  <pre><code>int id = context.getResources().getIdentifier( "com_facebook_login_view", "declare-styleable", context.getPackageName() ); 
  int[] resourceIDs = context.getResources().getIntArray( id );
  </code></pre>