title: getView not getting called in custom adapter
body: <p>I am trying to make a listview within a dialog. But my getView function in my adapter is never getting called. Any ideas?</p>
  
  <p>Adapter :</p>
  
  <pre><code>public class DialogAdapter extends BaseAdapter{
  
  HashMap&lt;String, String&gt; extraInfo;
  private String[] mKeys;
  
  Context mContext;
  int res;
  LayoutInflater vi;
  public DialogAdapter(){
  
  }
  
  public DialogAdapter(Context context,HashMap&lt;String, String&gt; extraInfo) {
      this.extraInfo = extraInfo;
      mKeys = this.extraInfo.keySet().toArray(new String[this.extraInfo.size()]);
      mContext = context;
      vi = (LayoutInflater) context
              .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  }
  
  @Override
  public int getCount() {
      // TODO Auto-generated method stub
      return extraInfo.size();
  }
  
  
  @Override
  public Object getItem(int position) {
      return extraInfo.get(mKeys[position]);
  }
  
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
      Textholder textholder = null;
      System.out.println("Test");
      if(convertView ==null){
          convertView = vi.inflate(R.layout.cust_dialog_item, parent, false);
          textholder = new Textholder();
          textholder.info = (TextView)convertView.findViewById(R.id.textProfile);
          textholder.value = (TextView)convertView.findViewById(R.id.valueProfile);
  
          convertView.setTag(textholder);
      }
      else{
          textholder = (Textholder)convertView.getTag();
      }
      textholder.info.setText(mKeys[position]);
      textholder.value.setText(getItem(position).toString());
  
  
  
  
      return convertView;
  }
  
  private static class Textholder {
      TextView info;
      TextView value;
  }
  
  @Override
  public long getItemId(int position) {
      // TODO Auto-generated method stub
      return 0;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Setting the adapter and making the dialog :</p>
  
  <pre><code>        DialogAdapter dAdapter = new DialogAdapter(x,extraInfo);
          AlertDialog dialog = new AlertDialog.Builder(getActivity())
          .setView(getActivity().getLayoutInflater().inflate(R.layout.custdialog, null))
          .create();
          View x = inflater.inflate(R.layout.custdialog, container, false);
          ListView custListDialog = (ListView)x.findViewById(android.R.id.list);
  
          dialog.show();
          custListDialog.setAdapter(dAdapter);
  </code></pre>