title: Android - PullToRefresh ListView always empty
body: <p>I'm trying to implement <a href="https://github.com/chrisbanes/Android-PullToRefresh" rel="nofollow">chrisbanes's Android-PullToRefresh</a> in my app.
  But so far all I'm getting is an empty view.
  If I change the ListView to an Android widget it works fine, if I use PullToRefreshListView the list shows up empty.
  I'm using a custom ListAdapter.</p>
  
  <p>Here's the XML part:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/white"
      android:orientation="vertical" &gt;
  
      &lt;com.handmark.pulltorefresh.library.PullToRefreshListView
          android:id="@+id/listview_jogos"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:divider="@null" &gt;
      &lt;/com.handmark.pulltorefresh.library.PullToRefreshListView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here is the code in the activity (it's being called, at least according to the debug information):</p>
  
  <pre><code>private void constroiLista(ArrayList&lt;Jogo&gt; lista)
  {
      PullToRefreshListView lv = (PullToRefreshListView)findViewById(R.id.listview_jogos);
      if(lv != null &amp;&amp; lista != null)
      {
          lv.setAdapter(new ListAdapter(this, lista));
          lv.setOnRefreshListener(new OnRefreshListener&lt;ListView&gt;()
          {
              @Override
              public void onRefresh(PullToRefreshBase&lt;ListView&gt; refreshView)
              {
                  (dnt = new DownloadJogosTask()).execute();
              }
          });
          // Call onRefreshComplete when the list has been refreshed.
          lv.onRefreshComplete();
      }
  }
  </code></pre>
  
  <p>And if it makes a difference the layout containing this listview is being inflated into a base one:</p>
  
  <pre><code>((LinearLayout)findViewById(R.id.ll_base_layout)).addView(View.inflate(this, R.layout.lista_jogos, null));
  </code></pre>
  
  <p>Is there any known bugs associated with this library? I searched around but haven't found anything similar. Thanks in advance for your help :)</p>