title: how to override height and width of date picker to fill the parent layout
body: <p>I have an activity contains a date picker. I want to set <code>DatePicker</code> fit to the screen. I tried <a href="https://stackoverflow.com/questions/6674667/how-to-customize-date-pickers-width-and-height-in-android">this answer</a>. But which not able to give the result i need.</p>
  
  <p>This is my current code:</p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;DatePicker
          android:layout_width="match_parent"
          android:layout_height="match_parent"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This is my <code>DatePicker</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/szsPp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/szsPp.png" alt="enter image description here"></a></p>
  
  <p>I want to make the date picker fill on that green square too.</p>