title: How add two recyclerview same fragmnets
body: <p>Hi am going to add two <code>RecyclerView</code> same <code>fragment</code> as shown in image <a href="https://i.stack.imgur.com/aSku5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aSku5.jpg" alt="as shown in image"></a> but i have already did first recyclerview <a href="https://i.stack.imgur.com/H2Vcu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H2Vcu.png" alt="click here to view implemnted"></a> . I am not getting how to add one more with my existing code please help me. My <code>RecyclerView</code> code</p>
  
  <p><strong>Communication.class</strong></p>
  
  <pre><code>public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
  
      View view = inflater.inflate(R.layout.fragment_communication_summary, container, false);
  
      mRecyclerView = (RecyclerView) view.findViewById(R.id.comm_expected_recycler_view);
  
      mRecyclerView.setHasFixedSize(true);
      mRecyclerView.setHasFixedSize(true);
      mRecyclerViewLayoutManager = new LinearLayoutManager(getContext());
      mRecyclerView.setLayoutManager(mRecyclerViewLayoutManager);
  
  private class MyRecyclerViewAdapter extends RecyclerView.Adapter&lt;MyRecyclerViewAdapter.ViewHolder&gt; {
  
      private List&lt;CommunicationVO&gt;  mCommunicationVOsList;
  
      public MyRecyclerViewAdapter(List&lt;CommunicationVO&gt; communicationVOsList) {
  
          mCommunicationVOsList = communicationVOsList;
      }
  
  @Override
      public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
  
          View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.communication_summary_list_item, parent, false);
  
          ViewHolder viewHolder = new ViewHolder(view);
  
          return viewHolder;
      }
  @Override
      public void onBindViewHolder(ViewHolder holder, int position) {
  
          if (holder != null) {
  
              CommunicationVO communicationVO = mCommunicationVOsList.get(position);
  
              holder.expInvoiceNumber.setText(communicationVO.getExpInvoiceNumber());
              holder.expAmount.setText(CashPunditUtils.formatAmount(communicationVO.getExpAmount()));
              holder.expDueDate.setText(CashPunditUtils.formatDate(CashPunditUtils.extractDateAndTime(communicationVO.getExpDueDate()), "dd-MMM-yy"));
              holder.expPromisedDate.setText(CashPunditUtils.formatDate(CashPunditUtils.extractDateAndTime(communicationVO.getExpPromisedDate()), "dd-MMM-yy"));
  
          }
      }
  @Override
      public int getItemCount() {
          return mCommunicationVOsList.size();
      }
  
      public class ViewHolder extends RecyclerView.ViewHolder {
  
          public TextView expInvoiceNumber, expAmount, expDueDate, expPromisedDate;
  
          public ViewHolder(View itemView) {
  
              super(itemView);
  
              expInvoiceNumber = (TextView) itemView.findViewById(R.id.textview_invnum);
              expAmount = (TextView) itemView.findViewById(R.id.textview_amount);
              expDueDate = (TextView) itemView.findViewById(R.id.textview_duedate);
              expPromisedDate = (TextView) itemView.findViewById(R.id.textview_promisedate);
          }
      }
  </code></pre>