title: Custom Listview inside an AlertDialog hides dialog's message?
body: <p>I am working on an application in which I have a list populated in an <code>AlertDialog</code>. On some event the dialog appears, showing its <code>Title</code>, <code>Message</code> and the <code>Custom listview</code>. Problem is, when I add more than 4 entries in the list, the Dialog's message that is set gets hidden by the list view. I want to show list view below the message, no matter how long the list is. Can any one help me out???? </p>
  
  <p>Implementation is as follows:</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(xActivity.this);
       builder.setTitle("Title");
       builder.setMessage("Following items are in the List");                 
       final ListView modeList = new ListView(xActivity.this);
       ArrayAdapter&lt;String&gt; modeAdapter = new ArrayAdapter&lt;String&gt;(xActivity.this, android.R.layout.simple_list_item_1, android.R.id.text1, simpleArray);
       modeList.setAdapter(modeAdapter);
       modeList.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
       builder.setView(modeList);
       builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
  
       public void onClick(DialogInterface arg0, int arg1) {
  
      // Do Something
  
      }
  }});
  
  final Dialog dialog = builder.create(); 
  dialog.show();
  </code></pre>
  
  <p>Any help is appreciated.... :-)                 </p>