I have created a few ListViews with custom layouts for the rows. I noticed that the rows on these ListViews do not turn orange when clicked (as do ListViews with standard rows, such as simple_list_item_1), so I added the following line to my onItemClick handler:
class FriendListOnItemClickListener implements OnItemClickListener
public void onItemClick(AdapterView<?> arg0, View view, int position, long id)
However, this only works sometimes, and very rarely. Usually the rows will stay white, and the rest of the code will execute fine. I would much rather see a consistent clicked-state in my custom rows, so does anyone know how to do this properly?