title: OnClickListener Layout detection
body: <p>I've a custom button layout: Its a FrameLayout as a background with a normal Button in the center with an icon next to the text. </p>
  
  <pre><code>&lt;RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  &lt;FrameLayout
      android:id="@+id/framelayout"
      style="?android:attr/buttonStyle"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentStart="true"
      android:layout_centerVertical="true"
      android:background="#F00"&gt;
  
      &lt;android.support.v7.widget.AppCompatButton
          android:id="@+id/buttonWithIcon"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="center_horizontal|bottom"
          android:background="@null"
          android:drawableStart="@android:drawable/ic_delete"
          android:gravity="center"
          android:textAllCaps="false"
          android:textColor="#FFF"/&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>I had an <code>onClickListeners</code> on the Button and I realized, clicks on the background (=FrameLayout) weren't detected. Because of this I want an onClickListener that detects clicks on the FrameLayout and also on the Button, without having two Listeners, that do the same.</p>
  
  <p>I tried giving the RelativeLayout an ID, but the layout couldn't be found (=null).</p>
  
  <p>Maybe my button layout isn't optimal. But I need a fullwidth button with a icon next to the text, without any spaces between the icon and the text.</p>
  
  <p>The Icons gets set like this</p>
  
  <p><code>button.setCompoundDrawablesWithIntrinsicBounds(R.mipmap.ic_icon, 0, 0,0);</code></p>
  
  <p>Thank you</p>