title: Inflated view's button onClickListener not responding inside RecyclerView adapter
body: <p>I've been trying to get button's <code>onClickListener</code> working from inflated layout. I was trying this but nothing happens:</p>
  
  <pre><code>LayoutInflater inflater = (LayoutInflater)mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  View view = inflater.inflate(R.layout.my_profile_fragment, null);
  Button svBtn = (Button) view.findViewById(R.id.saveBtn);
  
  svBtn.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View view) {
          System.out.println("CLICKED");
      }
  });
  </code></pre>
  
  <p>Inside the <code>RecyclerView</code> adapter I inflate the original layout in <code>onCreateViewHolder</code> which has the layout of the cards, and I am able to interact with it:</p>
  
  <pre><code>@Override
  public ItemRowHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
      View v = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.single_card, null);
  
      return new ItemRowHolder(v);
  }
  </code></pre>
  
  <p>But I would like to interact with the button from a different layout (fragment layout). Is that possible, if so how can I achieve that?</p>