title: DatePickerDialog how to no show the calendar just a spinner?
body: <p>I want to create a DatePickerDialog like this :</p>
  
  <pre><code>mDatePickerDialog = new DatePickerDialog(context, null /* listener */, 2000/* year */, 1/* month */, 1/* dayOfMonth */);
  </code></pre>
  
  <p>but with spinner like this :</p>
  
  <p><a href="https://i.stack.imgur.com/zOzu4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zOzu4.png" alt="enter image description here"></a></p>
  
  <p>i try to set this in the xml: </p>
  
  <pre><code>  &lt;style name="MyDatePicker" parent="@android:style/Widget.DatePicker"&gt;
      &lt;item name="android:calendarViewShown"&gt;false&lt;/item&gt;
      &lt;item name="android:datePickerMode"&gt;spinner&lt;/item&gt;
    &lt;/style&gt;
  
    &lt;style name="MyAppTheme" parent="@android:style/Theme.Material.Light.NoActionBar"&gt; 
      &lt;item name="android:datePickerStyle"&gt;@style/MyDatePicker&lt;/item&gt;
    &lt;/style&gt;
  </code></pre>
  
  <p>but didn't work :(</p>