title: How to create an alertDialog containing a list of items?
body: <p>How can I create an <code>alertDialog</code> which consists of a list of items defined in the code. I want the alert similar to this:</p>
  
  <p><img src="https://i.stack.imgur.com/8Yn8d.png" alt="enter image description here"></p>
  
  <p>I have seen <a href="http://developer.android.com/guide/topics/ui/dialogs.html" rel="nofollow noreferrer">this</a> but still I'm not able to create the alert.</p>