title: Android Lollipop setAdapter slow
body: <p>I have a large query, that I run like:</p>
  
  <pre><code>Cursor c = db.rawQuery(SQL, null);
  ListView list = (ListView) findViewById(R.id.listItens);
  String[] fromFields = new String[] {fields...};
  int[] toView = new int[] {ids...};
  BaseAdapter adapter = new AdaptaListaItem(ItemList.this,R.layout.layout_item,c,toView);
  list.setAdapter(adapter);
  </code></pre>
  
  <p>the <code>AdaptaListaItem</code> extends <code>SimpleCursorAdapter</code>.</p>
  
  <p>The problem:
  On devices running Lollipop, when debug gets to <code>setAdapter</code>, that takes several seconds to render (like 40 seconds!).</p>
  
  <p>It's only on Lollipop, any other version that doesn't happen.</p>
  
  <p>What I can do?</p>
  
  <p>ListView:</p>
  
  <pre><code>&lt;ListView
      android:id="@+id/lstitemlista"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_alignParentLeft="true"
      android:layout_below="@+id/txtItemListaResultados"
      android:divider="#cccccc"
      android:dividerHeight="1dp"
      android:fastScrollEnabled="true"
      /&gt;
  </code></pre>