Show custom dialog when spinner is being clicked
<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="http://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 date picker, when spinner is being clicked.</p>

<p>Note, Google Calendar does have such controls.</p>

<p><img src="http://i.stack.imgur.com/9gxpd.png" alt="enter image description here"></p>

<p>May I know how can I achieve so?</p>
