title: Android - fancy ListView background problem
body: <p>I have a ListView backed by customized ArrayAdapter where each item has 2 LinearLayouts - one I call head, and the other one - body.
  The body is hidden (gone) until user clicks on the row at which time it slides out. The second click (on the head) will hide the body. However if user clicks on the body it brings another activity. All of this works just fine, here comes the problem: </p>
  
  <p>When user presses on body I want a visual indication of the action just the same way as regular list item will flicker an orange background when pressed. I'm not getting this by default since (my theory) the onPress event is intercepted by body's view and not processed by the list item. </p>
  
  <p>The first thing I tried was to execute <code>body.setBackground('#ff00ff')</code> (never mind the color) in onPress event. That didn't work since (I suspect) there's no repainting after the call. Then I dig a little bit more and decided to use <code>&lt;selector/&gt;</code>-based background. I defined <code>body_background.xml</code> in <code>drawable</code> folder and assigned that to the body's background property.</p>
  
  <p>There I noticed that background will only change if the even is processed by the list. For example if I set <code>&lt;item android:state_selected="true" android:drawable="@drawable/selected"/&gt;</code> then when I press on the head - the background of both elements (head and body) will change, however when I press on body - nothing.</p>
  
  <p>So to summarize my question - how do I change background of the child element in the list item if I assign custom onClick handler to it? Any hints will be greatly appreciated</p>