title: How to reduce size of CalendarView?
body: <p>May I know how to resize the <code>CalendarView</code> in Android? 
  The <code>CalendarView</code> occupied more than half of the screen. 
  I wish to make it smaller, perhaps 40% of the screen. Thanks.</p>
  
  <p>Default CalendarView size in my smartphone, occupied more than half</p>
  
  <p><a href="https://i.stack.imgur.com/w0e6S.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w0e6S.jpg" alt="CalendarView"></a></p>
  
  <p>My current XML:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  tools:context="com.ada.landing.MainActivity"&gt;
  
  &lt;CalendarView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:id="@+id/calendarView"
      android:firstDayOfWeek="2"/&gt;&lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I tried another way to define <code>CalendarView</code>, but the overall height reduced but it does not shrink by ratio:</p>
  
  <p><a href="https://i.stack.imgur.com/Ez0vz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ez0vz.png" alt="CalendarView"></a></p>
  
  <pre><code>&lt;CalendarView
              android:layout_width="500dp"
              android:layout_height="200dp"
              android:id="@+id/calendarView"
              android:firstDayOfWeek="2" /&gt;
  </code></pre>