I have a problem selecting and highlighting an item in an array list. I have successfully used " myListView.setSelection(0); " to position the place in the array list correctly. But I have been unable to turn on the highlight at this position. When I press the down key on the dpad the highlight turns on at the position that I have set, as outlined above. But when I try to use " myListView.getSelectedItemPosition() " without manually highlighting the position first, the app crashes. I want to highlight an item by program control, to prevent such a crash. Is there any way to turn on the selection highlight in code?
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

