ListView addHeader() - all child views becoming focused when tapping anywhere in header?
<p>I have a ListView. I want to add a header view, which has two focusable controls:</p>

<pre><code>&lt;LinearLayout
  android:layout_width="fill_parent"
  android:layout_width="wrap_content"&gt;

  &lt;LinearLayout
    android:background="@drawable/selector_foo"
    /&gt;

  &lt;LinearLayout
    android:background="@drawable/selector_grok"
    /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>So I see both my child layouts in the header view, and the strange thing is, tapping anywhere in the header area (even if I miss either child) results in both of them being "selected", as I can see their background resource change.</p>

<p>Both selector_foo and selector_grok have a different background image to display when the selected / focused state = true.</p>

<p>I'm wondering if there's a way to stop this behavior? I put click handlers on both of the children, and they are correctly only firing when I intersect them. Not sure why their selected state is becoming true if I tap anywhere in the header though.</p>

<p>Thanks</p>
