title: How to get particular item's view of RecyclerView?
body: <p>Actually I wanna get view of particular item in <code>RecyclerView</code> in my <code>fragment.class</code>. For this purpose I tried to set a <code>getter</code> in my <code>adapter</code> class then tried to access it in my <code>fragment</code> but I'm unable to access the views .</p>
  
  <p>Code of Adapter Class :</p>
  
  <pre><code>private List&lt;ViewHolder&gt; holder_list=new ArrayList&lt;&gt;();
   @Override
  public void onBindViewHolder(ViewHolder holder, int position) {
  
      holder_list.add(holder);
     }
  public ViewHolder getViewHolder(int position){
      return holder_list.get(position);
  }
  </code></pre>
  
  <p>Fragment Code:</p>
  
  <pre><code>MessageAdapter.ViewHolder holder= msgAdp.getViewHolder(msgAdp.getItemCount()-1);
      //Here holder.mMessageView is a text view
  Toast.makeText(ctx,holder.mMessageView.getText().toString(),Toast.LENGTH_SHORT).show();
  </code></pre>