title: How to have a android:background color and still retain the gray focus highlight for lists in Android?
body: <p>I'm porting my app to Chrome OS and there are a few places in the app where arrow key navigation works, but the current focused element is not highlighted in any way. I've found that whenever I set a background color for an element like </p>
  
  <pre><code>&lt;LinearLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          ...
          android:background="@color/white" &gt;
  
      ...
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>then the default highlighting of the focused element will not show. Removing this will show the default background (which is not always the same as what I want).</p>
  
  <p>Also, in cases where I use a selector in a ListView, the background is in front of the intended highlighting drawable (which can be seen if the color is somewhat transparent).</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"
      android:exitFadeDuration="@android:integer/config_mediumAnimTime" &gt;
      &lt;item android:state_pressed="false" android:state_focused="true" android:drawable="@drawable/list_focused" /&gt;
      &lt;item android:state_pressed="true" android:drawable="@drawable/list_pressed" /&gt;
      &lt;item android:drawable="@color/white" /&gt;
  
  &lt;/selector&gt;
  </code></pre>
  
  <p>This is even more strange since I was under the (possibly incorrect) impression that selectors will only pick one of the items.</p>
  
  <p>I can't post too much code since this is work code, but this is happening throughout the app wherever there's a list.</p>