title: RecyclerView item click using RxJava2 + RxBinding not working after Fragment replacements
body: <p>I have a RecyclerView in Fragment, item clicks are handled using RxJava2 as explained in <a href="https://stackoverflow.com/a/39962415/2341815">this SO answer</a>, It's working fine in non fragments.</p>
  
  <pre><code>private PublishSubject&lt;Place&gt; itemViewClickSubject = PublishSubject.create();
  
  @Override
      public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
          View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.search_result_view, parent, false);
  
          ViewHolder viewHolder = new ViewHolder(view);
  
          // convert click events into reactive stream
          RxView.clicks(view)
                  .takeUntil(RxView.detaches(parent))
                  // viewHolder.getPlace() is null until it get bound
                  .map(__ -&gt; viewHolder.getPlace())
                  .subscribe(itemViewClickSubject);
  
          return viewHolder;
      }
  </code></pre>
  
  <p>When the RecyclerView in the fragment it works fine only for one time. On item click fragment is replaced with another fragment. After back press, RecyclerView fragment appears but clicks doesn't work anymore. </p>
  
  <p>It works if I remove the <code>.takeUntil(RxView.detaches(parent))</code> line. I think it's required to break RxView click's strong bindings with the the RecyclerView when it is not displayed (Detached). How can I solve the issue? I am looking to solve the issue using one of attach/detach events, any suggestion would be great!. Thanks.</p>