title: ViewPager Inside listView as a row
body: <p>I have placed a viewpager as a listview's row. but the list items are not getting displayed i have set fixed height to the viewpager.</p>
  
  <p>My ListViewAdapater's getView()</p>
  
  <pre><code>public View getView(final int position, View convertView, ViewGroup parent) {
  
      LayoutInflater mInflater = ((Activity) context).getLayoutInflater();
      if (convertview == null) {
          convertView = mInflater.inflate(R.layout.row, null);
          holder = new ViewHolder();
          holder.vp = (ViewPager) convertView.findViewById(R.id.vp);
      } else {
          holder = (ViewHolder) convertView.getTag();
      }
  
      holder.adapter = new PagerAdapter(this.context);
      holder.vp.setAdapter(holder.adapter);
      holder.vp.setCurrentItem(0, true);
      convertview.setTag(holder);
      return convertView;
  }
  </code></pre>
  
  <p>I have read a SO Answer <a href="https://stackoverflow.com/questions/8674529/viewpager-inside-listview">ViewPager inside ListView</a> that implementing viewpager inside listview is not advisable.  Now my problem is only the <strong>first row is displayed rest of the rows are empty</strong>. </p>