title: How do I use obtainStyledAttributes(int []) with internal Themes of Android
body: <p>So I have looked around and found out that <code>android.R.styleable</code> is no longer part of the SDK even though it is still documented <a href="http://developer.android.com/reference/android/R.styleable.html" rel="nofollow noreferrer">here</a>.</p>
  
  <p>That wouldn't really be an issue if it was clearly documented what the alternative is. For example the AOSP Calendar App is still using the <code>android.R.styleable</code></p>
  
  <pre><code>// Get the dim amount from the theme   
  TypedArray a = obtainStyledAttributes(com.android.internal.R.styleable.Theme);
  lp.dimAmount = a.getFloat(android.R.styleable.Theme_backgroundDimAmount, 0.5f);
  a.recycle();
  </code></pre>
  
  <p>So how would one get the <strong><code>backgroundDimAmount</code></strong> without getting the <code>int[]</code> from <code>android.R.styleable.Theme</code>?</p>
  
  <p>What do I have to stick into <code>obtainStyledAttributes(int [])</code> in order to make it work with the SDK?</p>