title: Add footer to ListView if ArrayList size isn't 0
body: <p>I only want my footer view to load if the size of my array is greater than 0. If I test it with an if statement, the footer doesn't load at all, even though the size of the array is greater than 0. </p>
  
  <p>Here's the code to setup the footer: </p>
  
  <pre><code>private void setupFooterView()
  {
      footerView = (LoadMoreListItem) getSherlockActivity().getLayoutInflater().inflate(R.layout.load_more, null);
      footerView.showFooterText(); 
      mListView.addFooterView(footerView);     
  }
  </code></pre>
  
  <p>The onCreateView:</p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) 
  {
      View view = inflater.inflate(R.layout.network_listview, container, false);
      mListView = (ListView)view.findViewById(R.id.network_listview);     
  
      aToken = getSherlockActivity().getIntent().getStringExtra("token");
      aTokenSecret = getSherlockActivity().getIntent().getStringExtra("token_secret");
      context = getSherlockActivity().getBaseContext();       
  
      if (timeline_arg.size != 0) { 
         setupFooterView(); // doesnt load if timeline_arg (ArrayList) is not 0 
      } 
  
      // nothing special, just sets up baseadapter and passes arraylist
      attachAdapter();
  } 
  </code></pre>
  
  <p>Why doesn't this work? It seemed so obvious, but ended up being more complicated than I thought.</p>