title: Geting context of recylerview item instead of its postion android
body: <p>I have a recylerview in my app, I am able to get the postions of each item however, I am not quite sure how to get the context of the postion from recylerview; </p>
  
  <pre><code>    mRecyclerView.addOnItemTouchListener(
              new RecyclerItemClickListener(getActivity(), new RecyclerItemClickListener.OnItemClickListener() {
  
                  @Override
                  public void onItemClick(View view, int position) {
                      Snackbar.make(view, "clicked" + " " + position, Snackbar.LENGTH_LONG).setAction("Action", null).show();
                  }
              })
      );
  </code></pre>
  
  <p>Also, the structure each item/column contain one textView to which I am adding data like this;</p>
  
  <pre><code>list.add(new itemtoadd("John Smith" + "\nMale" + "\nSingle”));
  </code></pre>
  
  <p>What I want to do is because I only have one textview contain 3 set of data Name+gender+status, whilst getting the context of the position I would like to only get 1 piece of data from it, for example the name of the person.</p>
  
  <p>EDIT:</p>
  
  <p>right now the code I have written gets the position of the recylerview item for example it will say clicked 1, what I want to do is instead of saying clicked 1, I want it to get the context of position 1 for example, in this case get 'John Smith, Male, Single' </p>
  
  <p>What I mean is, say for example I have this data in my recylerview;</p>
  
  <pre><code>list.add(new itemtoadd("John Smith0" + "\nMale0" + "\nSingle0”));
  list.add(new itemtoadd("John Smith1" + "\nMale1" + "\nSingle1”));
  list.add(new itemtoadd("John Smith1" + "\nMale1" + "\nSingle1”));
  </code></pre>
  
  <p>in this case, the first data I add to my recylerview would be in position 0, instead of printing out 'position 0' I want to get the data in poition 0, which in this case would be; John Smith0, Male0, Single0.</p>