title: Android: How to get reference to listView?
body: <p>I am trying to use a <code>MapView</code> in conjunction with a <code>ListView</code>. My understanding is that I need to extend <code>MapActivity</code> and then get a reference to the <code>ListView</code> to be used in my class. My problem is that I cannot get a reference to the <code>ListView</code>. </p>
  
  <p>This is my XML:</p>
  
  <pre><code>&lt;AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/AbsoluteLayout1"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;com.google.android.maps.MapView
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/mapview"
          android:layout_width="match_parent"
          android:layout_height="150dp"
          android:layout_y="0dp"
          android:clickable="true" /&gt;
  
      &lt;ListView
          android:id="@android:id/list"
          android:layout_width="match_parent"
          android:layout_height="268dp"
          android:layout_y="151dp" &gt;
  
      &lt;/ListView&gt;
  
  &lt;/AbsoluteLayout&gt;
  </code></pre>
  
  <p>This is how I am trying to get a reference to the <code>ListView</code>:</p>
  
  <pre><code>//instance vars
  ListView listView;
  
  //get ref to listview
  listView = findViewById(R.id.list);
  </code></pre>
  
  <p>For some reason it says that list is not a field. Am I referencing it incorrectly?</p>
  
  <p>Any help appreciated.</p>