Currently, I have the spinner in dialog mode.
<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" />
It will show something like this

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.
Note, Google Calendar does have such controls.

May I know how can I achieve this?
Do not use Spinner, but using TextView, and install a click listener to it.
In order to turn TextView looks like Spinner, here is the technique
or