mike wrote: > I'm having trouble with a list Activity, and selected items. > Basically, when I move the wheel ball (i select an item without > touch), then the background of the list item will highlight an orange, > then I click my corresponding button below and it acts upon the > selected item. I also want the user to be able to press with their > finger once, and highlight the item, however, when I touch, it just > highlights it orange and then back to normal.
This is by design. > I know it's calling the > onListItemClicked. I tried to set the position from that as > this.setSelected(position), but that doesn't make the background stay > a constant orange. It's not supposed to. Now, you are welcome to disable the list selector (by making it transparent) and then doing whatever you want manually to indicate selected rows, including keeping rows highlighted after being touched. Just bear in mind that what you are doing runs counter to the Android style and therefore may confuse your users. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

