title: Getting RecyclerView.Adapter List from ViewHolder
body: <p>Is any way to transfer the current list of items to a new <code>Activity</code> using <code>OnClickListener</code> of <code>ViewHolder</code>? Or any other way?</p>
  
  <pre><code>public class RVAdapter extends RecyclerView.Adapter&lt;RVAdapter.EventsViewHolder&gt; {
      List&lt;Event&gt; events; //get this List
      RVAdapter(List&lt;Event&gt; events) {
          this.events = events;
  }
  
  public static class EventsViewHolder extends RecyclerView.ViewHolder {
  
      TextView date;
      TextView text;
      ImageView photo;
  
      EventsViewHolder(final View itemView) {
          super(itemView);
          date = (TextView) itemView.findViewById(R.id.date);
          text = (TextView) itemView.findViewById(R.id.text);
          photo = (ImageView) itemView.findViewById(R.id.photo);
          itemView.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Context context = v.getContext();
                  SendObject sendObject = new SendObject(setList); //and transfer it here
                  Intent intent = new Intent(context, ReadEvent.class);
                  Bundle bundle = new Bundle();
                  bundle.putSerializable("events", sendObject);
                  bundle.putInt("pos", getAdapterPosition());
                  bundle.putString("test", "test");
                  intent.putExtras(bundle);
                  context.startActivity(intent);
              }
          });
      }
  }
  </code></pre>