title: How to connect RecyclerView's ViewHolder and the container activity/fragment?
body: <p>I made the <code>ViewHolder</code> itself as its <code>OnClickListener</code>:</p>
  
  <pre class="lang-java prettyprint-override"><code>public class ListItemViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
      ...
      @Override
      public void onClick(View view) {
          ...
      }
  }
  </code></pre>
  
  <p>Now I can handle the click event of list items in the activity/fragment. However, I want to give a "feedback" to the item. For example, the list item contains a <code>TextView</code> and a <code>ProgressBar</code>, when clicking on it the <code>ProgressBar</code> will show up and the <code>TextView</code> will hide, and the activity/fragment will do something like an HTTP request. When the request is over, the <code>ProgressBar</code> will become invisible while the <code>TextView</code> will show up again. How can I inform the list item's <code>ViewHolder</code> of this kind of progress?</p>