title: Android : Apply style to List and set a selected item shown in AlertDialog
body: <p>I am showing a List in AlertDialog. I want to customize the list with some style (maybe custom). Also want an item to be selected in the list of Alert dialog. I have used very simple code :</p>
  
  <pre><code>                new AlertDialog.Builder(TrainsListActivity.this).setTitle(curTrainRoute.getName() + " to " + stationNames[which])
                  .setItems(timeList, new DialogInterface.OnClickListener() {         
                      @Override
                      public void onClick(DialogInterface dialog, int which) {
                          dialog.dismiss();
                      }
                  })
  
                  .show(); 
  </code></pre>
  
  <p>I tried searching for the same, but couldn't find any resource for the same. Can you please help me out. Any help is highly appreciated.</p>
  
  <p>Thanks</p>