title: setSpinnersShown and setCalendarViewShown on DatePicker deprecated in API level 24
body: <p>I tried to switch to calendar to spinner mode in <strong>DatePicker</strong> by changing <code>setSpinnersShown</code> and <code>setCalendarViewShown</code> value programmatically, but in API 24, Android Studio shows the <code>deprecated</code> warning.</p>
  
  <p>What is the alternative ways for me to set my DatePicker from calendar to spinner mode programmatically without set values on XML in API 24. Thank you.   </p>