title: listView SetAdaptor is causing crash at app start
body: <p>I am playing around with Monodroid, trying to set an adaptor to a listview at start up. I have a bunch of controls on the screen, what I am trying to do is when the button is clicked an item goes into the listview.</p>
  
  <p>I don't get any error from the debugger, just a "Unfortunately Application1 has stopped", which makes it hard to work out what I am doing wrong.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public class Activity1 : Activity
  {
      List&lt;string&gt; items = new List&lt;string&gt;();
      ArrayAdapter&lt;string&gt; adaptor;
      protected override void OnCreate(Bundle bundle)
      {
          base.OnCreate(bundle);
  
          SetContentView(Resource.Layout.Main);
          int i = 0;
  
          items.Add("Hello world");
          adaptor = new ArrayAdapter&lt;string&gt;(this,
              Resource.Id.listView1,
              items);
  
          Button button = FindViewById&lt;Button&gt;(Resource.Id.button1);
          ListView listView = FindViewById&lt;ListView&gt;(Resource.Id.listView1);
          listView.SetAdapter(adaptor);
  
          button.Click += delegate
          {
              items.Add("Hello " + ++i);
              adaptor.NotifyDataSetChanged();
          };
      }
  }
  </code></pre>
  
  <p>Upon a comment I found the Device Log with the following:</p>
  
  <pre><code>android.content.res.Resources$NotFoundException: Resource ID #0x7f050003 type #0x12 is not valid
  </code></pre>
  
  <p>This is the ID for the listview in Resource.Designer.cs</p>
  
  <pre><code>public const int listView1 = 2131034115;
  </code></pre>
  
  <p>The listview is declared like this:</p>
  
  <pre><code>    &lt;ListView
          p1:minWidth="25px"
          p1:minHeight="25px"
          p1:layout_width="wrap_content"
          p1:layout_height="fill_parent"
          p1:id="@+id/listView1"
          p1:layout_marginBottom="70dp" /&gt;
  </code></pre>