title: android Multiple View Pager in Single Activity not showing second View Pager
body: <p>I have 2 view pagers in a activity</p>
  
  <pre><code> &lt;android.support.v4.view.ViewPager
          android:id="@+id/latestProductSwipeCard"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" /&gt;
  
   &lt;android.support.v4.view.ViewPager
          android:id="@+id/popularProductSwipeCard"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" /&gt;
  </code></pre>
  
  <p>and I created an adapter</p>
  
  <pre><code>public class ProductSwipePageAdapter extends FragmentPagerAdapter {
  
  List&lt;Product&gt; products;
  
  public ProductSwipePageAdapter(FragmentManager fm) {
      super(fm);
  }
  
  public ProductSwipePageAdapter(FragmentManager fm, List&lt;Product&gt; products) {
      super(fm);
      this.products = products;
  }
  
  
  @Override
  public Fragment getItem(int position) {
      return ProductCardFragment.newInstance(products.get(position));
  }
  
  @Override
  public int getCount() {
      return products.size();
  }}
  </code></pre>
  
  <p>And i setting the pager</p>
  
  <pre><code>  productSwipePageAdapter1 = new ProductSwipePageAdapter(getFragmentManager(), allProducts);
      latestProductSwipeCard.setAdapter(productSwipePageAdapter1);
  
  productSwipePageAdapter2 = new ProductSwipePageAdapter(getFragmentManager(), allProducts1);
      popularProductSwipeCard.setAdapter(productSwipePageAdapter2);
  </code></pre>
  
  <p>As a Result it showing only one view pager </p>
  
  <p><a href="http://i.stack.imgur.com/EwLQG.png" rel="nofollow">enter image description here</a></p>