title: List View Item Recycling
body: <p>I have a list view with 14 rows, with each item as View Pager. Here is my getView() Method:</p>
  
  <pre><code>    @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          ViewHolder holder = null;
          FindMyBeerPager findMyBeerPager;
          if(convertView==null){
              holder = new ViewHolder();
              LayoutInflater inflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
              convertView = inflater.inflate(R.layout.beer_list_item, parent,false);
  
              findMyBeerPager = new FindMyBeerPager(context, findBeerDataList.get(position));
              holder.beerPager = (ViewPager)convertView.findViewById(R.id.mypager);
              holder.beerPager.setAdapter(findMyBeerPager);
  
              System.out.println("Recycling view position"+position);
              holder.beerPager.setTag(findMyBeerPager);
  
              convertView.setTag(holder);
          }
          else{
              holder = (ViewHolder) convertView.getTag();
              System.out.println("Recycled"+position);
          }
  
          return convertView; 
      }
  }
  
  class ViewHolder{
      ViewPager beerPager;
  }
  </code></pre>
  
  <p><strong>Problem:</strong> The problem I am facing is that, when I scroll down the list view I am not getting further rows values,i.e the list view is recycled with the previous values. I don't know why this is going on. I have to send the View Pager (data item for every position). Before Scrolling down everything works fine.</p>