I create a custom adapter where each row includes a radio button. Only one radio button can be selected at a time. Up until now I have always added a onClick (or onTouch) event handler to the listview and then gone through all the items (stored in my ArrayList) to determine which item was last selected, then uncheck it (if it's different than the currently selected one), then mark the item associated with the currently selected row to indicate that it has been selected and check the radio button for that item.
This seems kind of a long way of doing things. Is there a simple way to have Android just automatically uncheck whatever radio button is currently selected and then select the newly selected one?