I have a list of search results that appear in ListActivity. When I change the background color of the ListActivity elements, changing the background color of the first LinearLayout (parent), the OnClick highlighting stops working. Why is this and how can I make this selection still work when I change the background color of my items? On the side of the note, is it possible to change the color of this highlight? Thank.
My XML is something like this:
<LinearLayout>
<LinearLayout>
<ImageView>
<LinearLayout>
<TextView>
</TextView>
<TextView>
</TextView>
<TextView>
</TextView>
</LinearLayout>
</LinearLayout>
and my activity is this:
public class ResultsPage extends ListActivity {
source
share