title: Android frame layout click listener not working
body: <p>I've got a <code>FrameLayout</code> with two nested <code>LinearLayout</code>s. I want an <code>onClickListener()</code> for <code>FrameLayout</code>. After a search I got a solution <code>clickable="false"</code>.</p>
  
  <p>This is my Layout file:</p>
  
  <pre><code>&lt;FrameLayout
      android:id="@+id/flOuter"
      android:paddingLeft="@dimen/half_margin"
      android:paddingRight="@dimen/half_margin"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;LinearLayout
          android:clickable="false"
          android:gravity="center"
          android:id="@+id/flAddIdProof"
          android:background="@drawable/add_background"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
          &lt;ImageView
              android:clickable="false"
              android:id="@+id/ivIcon"
              android:src="@drawable/ic_add_black_48dp"
              android:background="@drawable/add_button_border"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" /&gt;
          &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:clickable="false"
          android:id="@+id/llLinear"
          android:alpha="0.5"
          android:orientation="vertical"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;EditText
              android:enabled="false"
              android:clickable="false"
              android:drawablePadding="@dimen/half_margin"
              android:drawableLeft="@drawable/ic_devices_black_24dp"
              android:hint="Identity Proof"
              android:inputType="none"
              android:layout_width="match_parent"
              android:layout_height="wrap_content" /&gt;
  
          &lt;EditText
              android:enabled="false"
              android:clickable="false"
              android:drawableLeft="@drawable/ic_border_color_black_24dp"
              android:hint="Identity Number"
              android:drawablePadding="@dimen/half_margin"
              android:inputType="none"
              android:layout_width="match_parent"
              android:layout_height="wrap_content" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>Here is my click listener:</p>
  
  <pre><code>flOuter.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View view) {
          Toast.makeText(DeviceInMeeting.this, "detect", Toast.LENGTH_SHORT).show();
      }
  });
  </code></pre>
  
  <p>I don't know how to debug for onClick listeners, <code>clickable="false"</code> is not working in my case.</p>