title: Android: onClick on LinearLayout with TextView and Button
body: <p>I have a Fragment that uses the following XML layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@drawable/card"
      android:clickable="true"
      android:onClick="editActions"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:id="@+id/title"
          style="@style/CardTitle"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:duplicateParentState="true"
          android:text="@string/title_workstation" /&gt;
  
      &lt;Button
          android:id="@+id/factory_button_edit"
          style="?android:attr/buttonStyleSmall"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:duplicateParentState="true"
          android:text="@string/label_edit" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>As you can see, I have an <strong>onClick</strong> parameter set on <code>LinearLayout</code>. Now on the <code>TextView</code> this one is triggered correctly, and on all empty area. Just on the <code>Button</code> it doesn't invoke the onClick method that I set.</p>
  
  <p>Is this normal? What do I have to do so that the onClick method is invoked everywhere on the <code>LinearLayout</code>?</p>