title: OnClickListener listener is not working on frame layout
body: <p>I have an activity containing frame layout for fragment transition. Frame layout is loading a fragment and now I want to set click listener on frame layout. But click listener is working properly.</p>
  
  <p>here is the layout that contains frame layout for fragments</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  app:layout_behavior="@string/appbar_scrolling_view_behavior"
  tools:context=".FragmentActivity"
  tools:showIn="@layout/app_bar_balance"
  android:id="@+id/layout"&gt;
  
  &lt;FrameLayout
      android:name="com.dd.cotech.Fragments.HomeFragment"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:id="@+id/fragmentWindow"
      tools:layout="@layout/fragment_home" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>here is the listener coding</p>
  
  <pre><code>findViewById(R.id.fragmentWindow).setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              Toast.makeText(FragmentActivity.this, "I am click", Toast.LENGTH_SHORT).show();
          }
      });
  </code></pre>
  
  <p>Any help?</p>