title: Custom AlertDialog ScrollView, too big in 2.3 missing ok button
body: <p>I have to show a help info, instructions of how to use the program, i've chosen the AlertDialog using a custom XML with an ScrollView.
  I tested in tablet, xperia neo and 2 virtual devices. In 3 of them goes good, but in the 2.3 with small screen,the dialog is too big and has a bug in the visualization that makes it hard to close. Any idea why?
  Here is my code:
  XML for the ScrollView:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content" &gt;
      &lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:orientation="vertical" 
      android:textSize="10sp"&gt;
      &lt;/TextView&gt;
  &lt;/ScrollView&gt;`
  </code></pre>
  
  <p>And for my code for calling it:</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(this);
      builder.setMessage(R.string.msg_help)
             .setCancelable(false)
             .setView(LayoutInflater.from(this).inflate(R.layout.dialog_scrollable,null))
             .setTitle(R.string.help_title)
             .setPositiveButton("OK", new DialogInterface.OnClickListener() {
                 public void onClick(DialogInterface dialog, int id) {
                      //do things
                 }
             });
      AlertDialog alert = builder.create();
      alert.getWindow().setLayout(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
      alert.show();
  </code></pre>
  
  <p>Here is how it looks: <a href="http://postimg.org/image/wvg61x0qv/" rel="nofollow">http://postimg.org/image/wvg61x0qv/</a></p>