title: How to fill ListView with the Custom Adapter? list view empty (
body: <p>I have custom adapter for listview. Programm works without erros, BUT List view is empty.</p>
  
  <p>My adapter looks like:</p>
  
  <pre><code>public class CustomAdapter extends BaseAdapter implements Filterable {
  
  private ArrayList&lt;OItem&gt; _data;
  Context _c;
  
  public CustomAdapter(ArrayList&lt;OItem&gt; data, Context c) {
      _data = data;
      _c = c;
  }
  
  public View getView(int position, View convertView, ViewGroup parent) {
      View v = convertView;
      if (v == null)
      {
         LayoutInflater vi = (LayoutInflater)_c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
         v = vi.inflate(R.layout.item, null);
      }
  
      OItem oItem = _data.get(position);
  
      TextView tvId = (TextView)v.findViewById(R.id.id);
      TextView tvName = (TextView)v.findViewById(R.id.name);
      TextView tvBatch = (TextView)v.findViewById(R.id.batch);
  
      tvId.setText(oItem.getId());
      tvName.setText(oItem.getName());
      tvBatch.setText(oItem.getBatch());
  
     return v;
  }
  }
  </code></pre>
  
  <p>In Activity:</p>
  
  <pre><code>ArrayList&lt;OItem&gt; arrItems = new ArrayList&lt;OItem&gt;();
  ....
  here I fill arrItens with the data
  ....
  ListView lvSimple = (ListView) findViewById(R.id.lvContent);
  lvSimple.setAdapter(new CustomAdapter(arrItems, this));
  </code></pre>
  
  <p>What can be the problem?
  Maybe something should be added in getView method of adapter? </p>
  
  <p>Thank you</p>