title: Android CalendarView class cannot be found
body: <p>Im designing the xml format for a calendar to be used in an app, but I cant get the calendar to show in the <strong>graphical layout</strong> shower. </p>
  
  <p>Instead I get the following 'error':</p>
  
  <blockquote>
    <p>The following classes could not be found:
    - CalendarView (Change to android.widget.CalendarView, Fix Build Path, Edit XML)</p>
  </blockquote>
  
  <p>The min SDK version for this project is 14 and its target version is 15.</p>
  
  <p>Here is my <strong>XML</strong> code:</p>
  
  
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="horizontal" &gt;
  
          &lt;RelativeLayout android:id="@+id/top"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"&gt;
                  &lt;Button android:id="@+id/dash"
                      android:layout_height="wrap_content"
                      android:layout_width="wrap_content"
                      android:maxWidth="200dp"
                      android:maxHeight="10dp"
                      android:text="DASHBOARD"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:layout_alignParentLeft="true"/&gt;
  
                  &lt;TextView
                      android:id="@+id/textView1"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_centerInParent="true"
                      android:paddingBottom="10px"
                      android:paddingTop="10px"
                      android:text="Calendar"
                      android:textAppearance="?android:attr/textAppearanceLarge"/&gt;
                  &lt;Button
                      android:id="@+id/plusButton"
                      style="?android:attr/buttonStyleSmall"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_alignParentRight="true"
                      android:text="+"
                      android:textAppearance="?android:attr/textAppearanceLarge"/&gt;
          &lt;/RelativeLayout&gt;
          &lt;CalendarView
              android:id="@+id/calview"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/top"
              android:maxHeight="300dp" /&gt;
  
          &lt;RelativeLayout android:id="@+id/infoScroll"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/calview"&gt;
  
              &lt;ScrollView
                  android:id="@+id/scrollView1"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:maxHeight="100dp"&gt;
  
                  &lt;ListView
                      android:id="@+id/listView1"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent" &gt;
                  &lt;/ListView&gt;
  
              &lt;/ScrollView&gt;
          &lt;/RelativeLayout&gt;
          &lt;RelativeLayout android:id="@+id/bottomBar"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/infoScroll"&gt;
              &lt;Button android:id="@+id/todayButton"
                  android:layout_height="wrap_content"
                      android:layout_width="wrap_content"
                      android:layout_alignParentLeft="true"
                      android:text="Today"
                  android:textAppearance="?android:attr/textAppearanceSmall"/&gt;
  
              &lt;Button android:id="@+id/listButton"
                  android:layout_height="wrap_content"
                      android:layout_width="wrap_content"
                      android:layout_toLeftOf="@+id/dayButton"
                      android:text="List"
                      android:textAppearance="?android:attr/textAppearanceSmall"/&gt;
  
          &lt;Button android:id="@+id/dayButton"
                  android:layout_height="wrap_content"
                      android:layout_width="wrap_content"
                      android:layout_centerInParent="true"
                      android:text="Day"
                  android:textAppearance="?android:attr/textAppearanceSmall"/&gt;
  
          &lt;Button
              android:id="@+id/monthButton"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_toRightOf="@+id/dayButton"
              android:text="Month"
              android:textAppearance="?android:attr/textAppearanceSmall"/&gt;
  
          &lt;Button android:id="@+id/PeopleButton"
              android:layout_height="wrap_content"
                  android:layout_width="wrap_content"
                      android:layout_alignParentRight="true"
                  android:text="People"
                  android:textAppearance="?android:attr/textAppearanceSmall"/&gt;
  
  
  
          &lt;/RelativeLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Much appreciated! Thanks!</p>