title: android studio recyclerview in multi-fragment tabbed activity
body: <p>I am make a activity with 3 fragment, each fragment have recyclerview item.</p>
  
  <p>I successfully make the first one fragment by a class RecyclerViewAdapter.</p>
  
  <p>My question is, if i further make 2 another fragment with recyclerview item</p>
  
  <p>should i make 2 more RecyclerViewAdapter new class, or just start another Viewholder in my first RecyclerViewAdapter class?</p>
  
  <p>my RecyclerViewAdapter class here</p>
  
  <pre><code>public class TabMatch_RecyclerViewAdapter extends RecyclerView.Adapter&lt;TabMatch_RecyclerViewAdapter.MyViewHolder&gt;{
  
  Context mContext;
  List&lt;Match&gt; mData;
  Dialog mydialog;
  
  public TabMatch_RecyclerViewAdapter(Context mContext, List&lt;Match&gt; mData) {
      this.mContext = mContext;
      this.mData = mData;
  }
  
  @Override
  public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      View v;
      v = LayoutInflater.from(mContext).inflate(R.layout.tab_match_item,parent,false);
      final MyViewHolder vHolder = new MyViewHolder(v);
      return vHolder;
  }
  
  @Override
  public void onBindViewHolder(MyViewHolder holder, int position) {
      holder.tv_id.setText(mData.get(position).getId());
      holder.tv_weekday.setText(mData.get(position).getWeekday());
      holder.tv_date.setText(mData.get(position).getDate());
      holder.tv_time.setText(mData.get(position).getTime());
  
  }
  
  @Override
  public int getItemCount() {
      return mData.size();
  }
  
  public static class  MyViewHolder extends RecyclerView.ViewHolder {
  
      private TextView tv_id, tv_weekday, tv_date, tv_time, tv_league, tv_home, tv_away;
      private LinearLayout match_item;
  
      public MyViewHolder(View itemView) {
          super(itemView);
          match_item = (LinearLayout) itemView.findViewById(R.id.match_item_id);
          tv_id = (TextView) itemView.findViewById(R.id.match_id);
          tv_weekday = (TextView) itemView.findViewById(R.id.match_weekday);
          tv_date = (TextView) itemView.findViewById(R.id.match_date);
          tv_time = (TextView) itemView.findViewById(R.id.match_time);
  
      }
  }
  </code></pre>
  
  <p>}</p>