It seems very simple but accidentally i have tested this, and it works well. I hope this will also help you...
First create separate xml file which contains only CalendarView. Named “cal_view.xml”
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<android.widget.CalendarView
android:layout_width="200dp"
android:layout_height="200dp" />
</LinearLayout>
Then include this xml file in to your main xml file, just like following. Instead of your CalanderView, include the xml file.
<include
android:id="@+id/subCategory"
layout="@layout/cal_view" />