title: How to get boolean from custom boolean attribute for current theme?
body: <p>I am setting custom attribute with Boolean format in my theme.</p>
  
  <pre><code>&lt;attr name="isCompound" format="boolean" /&gt;
  </code></pre>
  
  <p>When I am trying to retrieve this attribute in my code using following </p>
  
  <pre><code>TypedValue typedValue = new TypedValue();
  getTheme().resolveAttribute(R.attr.isCompound, typedValue, true);
  if(typedValue.data) {
      ...
  }
  </code></pre>
  
  <p>I get error that typedValue.data (int) can not be converted to Boolean. My question is how do I get Boolean value isCompound from the current theme?</p>