title: Custom Listview Adapter, adding a static footer, and understanding R.id.list
body: <p>There is something I'm just not getting, and I'm looking for assistance in understanding what is happening here.</p>
  
  <p>I have a custom list adapter (that just extends BaseAdapter) that I have successfully been using to generate and display a list. Now I want to add a static footer to the bottom of my list. After looking at a number of resources (specifically <a href="http://blog.maxaller.name/2010/05/attaching-a-sticky-headerfooter-to-an-android-listview/" rel="nofollow noreferrer">this one)</a> I've come to realize that my reluctance of using XML has to come to an end, and set up the following xml layout in a file called devices_list.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content" android:layout_height="wrap_content"
  android:orientation="vertical"&gt;
  &lt;LinearLayout android:id="@+id/bottom_control_bar"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"&gt;
      &lt;ToggleButton android:id="@+id/bottom_control_toggle"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content" 
          android:textOff="Filter Favourites OFF" 
          android:textOn="Filter Favourites ON"/&gt;
  &lt;/LinearLayout&gt;
  &lt;ListView android:id="@android:id/list"
      android:layout_width="fill_parent"
      android:layout_height="0dip" 
      android:layout_above="@id/bottom_control_bar"&gt;
  &lt;/ListView&gt;
  &lt;TextView android:id="@android:id/empty" 
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" 
      android:text="@string/main_empty_list"
      android:layout_above="@id/bottom_control_bar"/&gt;
    &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>After some adjustments to the activity that holds the list, I ran the code. I see my footer, (and also the tab widget which is parent to everything), but the area where the list goes is empty.</p>
  
  <pre><code>    @Override
      public void onCreate(Bundle savedInstanceState){
         super.onCreate(savedInstanceState);
         this.setContentView(R.layout.devices_list);
  
         db = new DbManager(this);
         db.open();
  
         AllCur = db.fetchAllDevices();
         startManagingCursor(AllCur);
  
         list = new DeviceListAdapter(this, AllCur);   //make my custom list adapter                  
         setListAdapter(list);
              }
  </code></pre>
  
  <p>Is there some way to link up the ListView widget declared in my xml with my DeviceListAdapter? It's pretty clear to me now that I'm not entirely sure about how this is all working. Any help in clarification would be much appreciated.</p>