title: Android studio ListView error
body: <p>I am trying to use listview in my demo application but whenever I am executing my application it will display an error that "Unfortunately application has been stoped". Can you please tell me whats wrong with this code?</p>
  
  <p><strong>Following is my code:-</strong></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=".MainActivity" &gt;
  
      &lt;CalendarView
          android:id="@+id/calendarView1"
          android:layout_width="match_parent"
          android:layout_height="250dp"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true" /&gt;
  
      &lt;ListView
          android:id="@+id/AssignListView"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/calendarView1"
          android:layout_below="@+id/calendarView1" &gt;
  
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/date_display"
              android:text="Calendar view date display"
              /&gt;
  
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Event Name:"
              /&gt;
  
          &lt;EditText
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:hint="Enter Event Name"
              android:id="@+id/event_name"/&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Event Description:"
              /&gt;
  
          &lt;EditText
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:hint="Enter Event Description"
              android:id="@+id/event_description"/&gt;
  
  
          &lt;Button
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Add Event"
              android:id="@+id/add_event_button"/&gt;
  
          &lt;Button
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Cancel"
              android:id="@+id/cancel_event_button"/&gt;
  
      &lt;/ListView&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>