title: Custom adapter getview is not called
body: <p>I have a <strong>Custom adapter</strong> with a <code>ListFragment</code> but the adapters <code>getView()</code> is not getting called at all.</p>
  
  <p>This is how the adapter looks like - </p>
  
  <pre><code>public class ModuleListItemAdapter extends BaseAdapter {
  
      List&lt;ModuleItem&gt; list;
      Context context;
      Module mod;
  
      public ModuleListItemAdapter() {
          super();
          // TODO Auto-generated constructor stub
      }
  
      public ModuleListItemAdapter(Context context, List&lt;ModuleItem&gt; list, Module mod) {
          super();
          this.list = list;
          this.context = context;
          this.mod = mod;
          // TODO Auto-generated constructor stub
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          LayoutInflater inflater = (LayoutInflater) context
                  .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          RelativeLayout rl = (RelativeLayout) inflater.inflate(R.layout.moduleitem, null);
          GenerateModuleItemView gmiv = new GenerateModuleItemView(context);
          rl.addView(gmiv.itemDispView(mod.getFields(), list.get(position)));
          return rl;
      }
  
      public void setValue(List&lt;ModuleItem&gt; l) {
          this.list = l;
          notifyDataSetChanged();
      }
  
      public void addValue(ModuleItem item) {
          this.list.add(item);
          notifyDataSetChanged();
      }
  
      @Override
      public int getCount() {
          // TODO Auto-generated method stub
          return list.size();
      }
  
      @Override
      public Object getItem(int position) {
          // TODO Auto-generated method stub
          return list.get(position);
      }
  
      @Override
      public long getItemId(int position) {
          // TODO Auto-generated method stub
          return 0;
      }
  }
  </code></pre>
  
  <p>And the Fragment - </p>
  
  <pre><code>public class ModuleItemListFragment extends ListFragment {
  
      List&lt;ModuleItem&gt; list;
      Module mod;
  
      public ModuleItemListFragment() {
          super();
          // TODO Auto-generated constructor stub
      }
  
      public ModuleItemListFragment(List&lt;ModuleItem&gt; list, Module mod) {
          super();
          this.list = list;
          this.mod = mod;
          // TODO Auto-generated constructor stub
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          return inflater.inflate(R.layout.list, container, false);
      }
  
      @Override
      public void onActivityCreated(Bundle savedInstanceState) {
          super.onActivityCreated(savedInstanceState);
          ModuleListItemAdapter adapter = new ModuleListItemAdapter(getActivity(), list, mod);
          setListAdapter(adapter);
      }
  }
  </code></pre>
  
  <p>And this is how my layout looks like - </p>
  
  <pre><code>&lt;ListView xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@android:id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:divider="#000000"
            android:dividerHeight="1dip" /&gt;
  </code></pre>
  
  <p>I don't know what the problem is here.</p>