Re: [android-developers] How to select an item in a listview by code

2010-01-27 Thread Matt Oakes
On Wed, Jan 27, 2010 at 5:11 AM, Michael J McLean m...@mmc2.com.au wrote: Mark,               Thank you for taking the time to reply. There are a lot of restrictions placed on developers trying to provide a quality user interface. I can live with this particular restriction but I would

[android-developers] How to select an item in a listview by code

2010-01-26 Thread MMC2
How do you select an item in a listview by code -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] How to select an item in a listview by code

2010-01-26 Thread Martin Obreshkov
ListView.setSelected(int position) On Tue, Jan 26, 2010 at 3:12 PM, MMC2 m...@mmc2.com.au wrote: How do you select an item in a listview by code -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] How to select an item in a listview by code

2010-01-26 Thread Michael J McLean
I tried you suggestion but got an error message. So I tried myListView.setSelection(1); No error message but it doesn't work - Original Message - From: Martin Obreshkov To: android-developers@googlegroups.com Sent: Tuesday, January 26, 2010 11:15 PM Subject: Re:

Re: [android-developers] How to select an item in a listview by code

2010-01-26 Thread Mark Murphy
Michael J McLean wrote: I tried you suggestion but got an error message. So I tried myListView.setSelection(1); No error message but it doesn't work Yes, it works. When users use their touchscreens, there is no notion of selection, only item clicks. Hence, in touch mode,

Re: [android-developers] How to select an item in a listview by code

2010-01-26 Thread Michael J McLean
Thank you for that, but how can I show that the item has been selected? - Original Message - From: Mark Murphy mmur...@commonsware.com To: android-developers@googlegroups.com Sent: Tuesday, January 26, 2010 11:54 PM Subject: Re: [android-developers] How to select an item in a listview

Re: [android-developers] How to select an item in a listview by code

2010-01-26 Thread Mark Murphy
Michael J McLean wrote: Thank you for that, but how can I show that the item has been selected? You rethink your user interface to avoid the question. Do not use ListView with a selection mindset. Think of ListView as being more akin to a rolling roster of buttons, not something that has a

Re: [android-developers] How to select an item in a listview by code

2010-01-26 Thread Michael J McLean
Mark, Thank you for taking the time to reply. There are a lot of restrictions placed on developers trying to provide a quality user interface. I can live with this particular restriction but I would appreciate help on one other issue. If I use the navigation buttons to