I have an Android ListView with a custom item layout:
| ... |
+-----------------+-------------+
| Labels & Info | ImageView |
+-----------------+-------------+
| ... |
I want two different actions to occur when either the left side (Labels & Info), or the right side (ImageView) of the list item are clicked. Also, the part of the item which is pressed should show accurate touch feedback (as it would highlight a ListView item by clicking on it).
I know how to implement OnClickListeners for specific views, but what I really want is to split the list item itself into two clickable areas.
How can I achieve this?
EDIT: Here is an image that should describe what I want more accurately:
The red and green areas in the item on the bottom illustrate the two areas that should be clickable and highlighted when clicked.