title: Android : getView does not called in custom adapter
body: <p>In my activity, I have one button, when I click on the button its shows the custom dialog containing title &amp; <code>ListView</code>.</p>
  
  <p>I set adapter for <code>ListView</code> but <code>getView()</code> method not called.my array is <code>ArrayList&lt;String&gt;</code> &amp; its size is 3.</p>
  
  <p>Here is my code.</p>
  
  <p>In Activity.java ::</p>
  
  <pre><code>    notification_btn = (Button) findViewById(R.id.notifications_btn);
      notification_btn.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View arg0) {
              Dialog dialog = new Dialog(Home.this,android.R.style.Theme_Translucent_NoTitleBar);
              dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
              dialog.setContentView(R.layout.notifications_layout);
  
  
              ListView list = (ListView) dialog.findViewById(R.id.listView_notifications);
              TextView title = (TextView) dialog.findViewById(R.id.dialogTitle);
              TextView footer = (TextView) dialog.findViewById(R.id.notification_footer);
  
              title.setText("Title");
  
  
              NotificationAdapter adapter = new NotificationAdapter(Home.this,array);
              list.setAdapter(adapter);
  
  
              dialog.show();
          }
      });
  </code></pre>
  
  <p>NotificationAdapter.java ::</p>
  
  <pre><code>public class NotificationAdapter extends BaseAdapter{
  
  ArrayList&lt;String&gt; items;
  private Context context;
  private LayoutInflater mInflater;
  
  static class ViewHolder {
      TextView text;
  }
  
  public NotificationAdapter(Context context, ArrayList&lt;String&gt; items) {
      this.context = context;
      this.items = items;
      mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  }
  
  @Override
  public int getCount() {
      return items.size();
  }
  
  @Override
  public Object getItem(int arg0) {
      return items.get(arg0);
  }
  
  @Override
  public long getItemId(int arg0) {
      return arg0;
  }
  
  
  // create a new ImageView for each item referenced by the Adapter
  public View getView(int position, View convertView, ViewGroup parent) {
      ViewHolder holder;
      if (convertView == null) { // if it's not recycled, initialize some
                                  // attributes
          convertView = mInflater.inflate(R.layout.notifiation_row, null);
          holder = new ViewHolder();
          holder.text = (TextView) convertView.findViewById(R.id.text_notification);
          convertView.setTag(holder);
      } else {
          holder = (ViewHolder) convertView.getTag();
      }
      try {
  
              holder.text.setText(items.get(position));
  
  
      } catch (Exception e) {
          VLogger.getLogger().info("Exception occured :: "+e);
      }
  
      return convertView;
  }
    }
  </code></pre>
  
  <p>why <code>getView()</code> method not called? I didn't find the reason. please help.</p>