title: How to set click listener to LinearLayout using data binding
body: <p>I am currently trying to set a click listener to a <code>LinearLayout</code> view in the <code>.xml</code> layout file using data binding.</p>
  
  <p>I have managed to get it to work well on other views like a <code>Button</code> or <code>TextView</code>, but for some reason it is not working with a <code>LinearLayout</code>.</p>
  
  <p>This is the bare bones of my attempts and I still cannot get it to work:</p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="72dp"
      android:clickable="true"
      android:focusable="true"
      android:onClick="@{action::linearLayoutClicked}"
      android:orientation="vertical"&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Where <code>linearLayoutClicked</code> is my method defined in the action class:</p>
  
  <pre><code>public void linearLayoutClicked(View view) {
      // specific logic
  }
  </code></pre>
  
  <p>I have also tried with child views and those child views with <code>clickable</code> and <code>focusable</code> set to false as well as <code>duplicateParentState</code> set to <code>true</code> and <code>false</code>.</p>
  
  <p>That action is exactly the same action that is being used on other views which is working correctly.</p>
  
  <p>Is this a bug or am I doing this incorrectly? Why is this not working for <code>LinearLayout</code> but works without any problems for other views?</p>