title: Unable to use recycler views in multiple tabs
body: <p>I have three tabs.For testing purposes,I am setting the same fragment to all the three tabs.Fragment has a recycler view. I am able to view the recycler view only in first fragment.</p>
  
  <p>Activity Code:</p>
  
  <pre><code>        ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());
          adapter.addFragment(new TrialsFragment(), getString(R.string.camps));
          adapter.addFragment(new TrialsFragment(), getString(R.string.trials));
          adapter.addFragment(new TrialsFragment(), getString(R.string.events));
          viewPager.setAdapter(adapter);
  </code></pre>
  
  <p>Fragment Code:</p>
  
  <pre><code>@Override
      public void onActivityCreated(Bundle savedInstanceState) {
          super.onActivityCreated(savedInstanceState);
          recyclerView = (RecyclerView) getActivity().findViewById(R.id.recycler);
          adapter = new TrialsRecyclerViewAdapter();
          recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
          recyclerView.setAdapter(adapter);
      }
  </code></pre>
  
  <p>Adapter code:</p>
  
  <pre><code>public class TrialsRecyclerViewAdapter extends RecyclerView.Adapter&lt;TrialsRecyclerViewAdapter.ViewHolder&gt; {
  
      String[] names = {"Sample Name","Sample Name","Sample Name","Sample Name","Sample Name"};
      String[] regNos ={"12345678","12345678","12345678","12345678","12345678"};
  
      @Override
      public TrialsRecyclerViewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
          CardView cv = (CardView) LayoutInflater.from(parent.getContext())
                  .inflate(R.layout.trial_card, parent, false);
          return new ViewHolder(cv);
      }
  
      @Override
      public void onBindViewHolder(TrialsRecyclerViewAdapter.ViewHolder holder, int position) {
          final CardView cardView = holder.cardView;
  
          TextView name = (TextView)cardView.findViewById(R.id.trial_name);
          TextView regNumber = (TextView)cardView.findViewById(R.id.trial_start_end);
          name.setText(names[position]);
          regNumber.setText(regNos[position]);
  
          cardView.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
              }
          });
      }
  
      @Override
      public int getItemCount() {
          return names.length;
      }
  
      public static class ViewHolder extends RecyclerView.ViewHolder
      {
          private CardView cardView;
          public ViewHolder(CardView v)
          {
              super(v);
              cardView = v;
          }
      }
  }
  </code></pre>
  
  <p>When the activity is started, RecyclerView is visible in first tab only. If I swipe the tabs, then it becomes visible in second tab only.</p>
  
  <p>I observed the following error while debugging it: </p>
  
  <blockquote>
    <p>No adapter attached; skipping layout</p>
  </blockquote>