title: Programmatically styling Android's CheckBox
body: <p>I got a class which extends Activity and programmatically adding some View items.</p>
  
  <pre><code>CheckBox checkBox = new CheckBox(this, null, android.R.style.Widget_CompoundButton_Star);
  </code></pre>
  
  <p>I'd like to set some checkBoxes styled as the Android SDK stars. I can't see any check box after I set its style to that Widget_CompoundButton_Star. Although that SDK style apparently works when directly placing in a xml.</p>
  
  <p>Am I missing something here? THX</p>
  
  <p>// As Pragnani said. Using <code>android.R.attr.starStyle</code> instead works.</p>