title: Why is fab in fragment not responding to click events?
body: <p>I have added a floating action button to a fragment held in an activity. When the user clicks on it, a new activity should be launched, but nothing happens.</p>
  
  <p>Here is the fragment layout:</p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
               xmlns:tools="http://schemas.android.com/tools"
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               xmlns:app="http://schemas.android.com/apk/res-auto"
               android:paddingBottom="@dimen/activity_vertical_margin"
               android:paddingLeft="@dimen/activity_horizontal_margin"
               android:paddingRight="@dimen/activity_horizontal_margin"
               android:paddingTop="@dimen/activity_vertical_margin"
               tools:context="com.neutronstar.revu.fragment.FeedFragment"&gt;
  
      &lt;android.support.v7.widget.RecyclerView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/review_recycler_view"/&gt;
  
      &lt;android.support.design.widget.FloatingActionButton
          android:id="@+id/add_review_fab"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom|end"
          android:layout_margin="@dimen/fab_margin"
          app:srcCompat="@drawable/ic_add_white_24dp"
          android:clickable="true"/&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>Here is the fragment class:</p>
  
  <pre><code>public class ReviewFragment extends Fragment {
  
      @BindView(R.id.add_review_fab) FloatingActionButton mAddReviewButton;
  
      private OnReviewNext mListener;
  
      public ReviewFragment() {
          // Required empty public constructor
      }
  
      public interface OnReviewNext {
          void finishReview(String description);
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
          // Inflate the layout for this fragment
          View view = inflater.inflate(R.layout.fragment_review, container, false);
          ButterKnife.bind(this, view);
  
          mAddReviewButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Intent intent = new Intent(getActivity(), AddReviewActivity.class);
                  startActivity(intent);
              }
          });
          return view;
      }
  
      @Override
      public void onAttach(Context context) {
          super.onAttach(context);
          if (context instanceof OnReviewNext) {
              mListener = (OnReviewNext) context;
          } else {
              throw new RuntimeException(context.toString()
                      + " must implement OnReviewNext");
          }
      }
  
      @Override
      public void onDetach() {
          super.onDetach();
          mListener = null;
      }
  }
  </code></pre>
  
  <p>Why is the fab not responding to the click events, should this be handled by the activity?</p>
  
  <p>Thanks in advance.</p>