title: How to set theme for TextView on Dialog?
body: <p>I'm adding TextView to Dialog with this code:</p>
  
  <pre><code>TextView alertView=new TextView(this);
  alertView.setTextAppearance(this, android.R.style.TextAppearance_Medium);
  alertView.setPadding(7, 7, 7, 7);
  alertView.setText(Html.fromHtml(alertText));
  
  Dialog dialog=new Dialog(this);
  dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
  dialog.setContentView(alertView);
  dialog.getWindow().setLayout(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
  dialog.show();
  </code></pre>
  
  <p>In Android 4.0 it looks ok. But in Android 2.1 background of Dialog is black, and text of TextView is black too. How to fix it?</p>