title: Show custom dialog when spinner is being clicked
body: <p>Currently, I have the spinner in <code>dialog</code> mode.</p>
  
  <pre><code>        &lt;Spinner
              android:spinnerMode="dialog"
              android:id="@+id/genderSpinner"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginBottom="10dp"
              android:entries="@array/gender_array"
              android:prompt="@string/gender_prompt" /&gt;
  </code></pre>
  
  <p>It will show something like this</p>
  
  <p><img src="https://i.stack.imgur.com/Ujwt1.png" alt="enter image description here"></p>
  
  <p>However, sometimes, I will like to have control on what type of dialog to be shown. For instance, I will like to show a dialog with a date picker when the spinner is clicked.</p>
  
  <p>Note, Google Calendar does have such controls.</p>
  
  <p><img src="https://i.stack.imgur.com/9gxpd.png" alt="enter image description here"></p>
  
  <p>May I know how can I achieve this?</p>