title: Applying a Theme to Dynamic Radio Buttons in Android
body: <p>I have a Theme in my Application which defines default textappearance and Button Style.</p>
  
  <p></p>
  
  <pre><code>&lt;style name="AppTheme" parent="@android:style/Theme.Light.NoTitleBar.Fullscreen"&gt;
      &lt;item name="android:textAppearance"&gt;@style/TextAppearance.Medium&lt;/item&gt;
      &lt;item name="android:textAppearanceLarge"&gt;@style/TextAppearance.Large&lt;/item&gt;
      &lt;item name="android:textAppearanceMedium"&gt;@style/TextAppearance.Small&lt;/item&gt;
      &lt;item name="android:textAppearanceSmall"&gt;@style/TextAppearance.Medium&lt;/item&gt;
      &lt;item name="android:textColorPrimary"&gt;#000000&lt;/item&gt;
      &lt;item name="android:textColorSecondary"&gt;#000000&lt;/item&gt;
      &lt;item name="android:textColorTertiary"&gt;#000000&lt;/item&gt;
      &lt;item name="android:buttonStyle"&gt;@style/Button&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="TextAppearance" parent="@android:style/TextAppearance"&gt;
      &lt;item name="android:textColor"&gt;?android:attr/textColorPrimary&lt;/item&gt;
      &lt;item name="android:textColorHint"&gt;?android:attr/textColorHint&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="TextAppearance.Large"&gt;
      &lt;item name="android:textColor"&gt;?android:attr/textColorPrimary&lt;/item&gt;
      &lt;item name="android:textSize"&gt;32dp&lt;/item&gt;
      &lt;item name="android:textStyle"&gt;bold&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="TextAppearance.Medium"&gt;
      &lt;item name="android:textColor"&gt;?android:attr/textColorSecondary&lt;/item&gt;
      &lt;item name="android:textSize"&gt;22dp&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="TextAppearance.Small"&gt;
      &lt;item name="android:textColor"&gt;?android:attr/textColorTertiary&lt;/item&gt;
      &lt;item name="android:textSize"&gt;18dp&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="Button" parent="@android:style/Widget.Button"&gt;
      &lt;item name="android:textColor"&gt;?android:attr/textColorSecondary&lt;/item&gt;
      &lt;item name="android:textColorHint"&gt;?android:attr/textColorHint&lt;/item&gt;
      &lt;item name="android:textStyle"&gt;normal&lt;/item&gt;
      &lt;item name="android:textAppearance"&gt;?android:attr/textAppearanceSmall&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I create a RadioButton using</p>
  
  <pre><code>RadioButton radioButton = new RadioButton(this, null, R.style.AppTheme);
  </code></pre>
  
  <p>The RadioButton is created and the text is styled properly but the checked marker disappears. Why?</p>
  
  <p>I have the Radiobutton in a Buttongroup, where I dynamically add the buttons. When I add a Button via the layout the marker is displayed properly. But the dynamically added buttons don't.</p>