title: Hide Calendarview from DatePicker programmatically in API 21
body: <p>I'm having the same issue as this thread: <a href="https://stackoverflow.com/questions/26854762/android-material-design-inline-datepicker-issue">Android Material Design Inline Datepicker issue</a>, but I am not using an XML layout, instead I'm building the DatePicker programmatically.</p>
  
  <p>This is the code I am using but is not working</p>
  
  <pre><code>DatePicker dpView = new DatePicker(ctx);
  dpView.setCalendarViewShown(false);
  dpView.setSpinnersShown(true);
  </code></pre>
  
  <p>how can I make it work?</p>