[android-developers] Re: How do I make sure one row ListView is always in focus

2008-11-21 Thread Romain Guy

You can't. That's the purpose of the choice mode.

On Fri, Nov 21, 2008 at 11:35 AM, j [EMAIL PROTECTED] wrote:

  myListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);

  works fine in non-touch mode.

 However, I notice that when in touch mode, myListView does not show a
 focused row (the orange row highlight).  How do I make it so that
 there is always one row that has orange highlight?
 myListView.setSelection did not do the trick.
 




-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How do I make sure one row ListView is always in focus

2008-11-21 Thread Romain Guy

I mean, the purpose of the choice mode is to let the user have a
persistent selection. He needs to touch the item or click it with the
trackball.

You cannot keep the highlight.

On Fri, Nov 21, 2008 at 11:43 AM, Romain Guy [EMAIL PROTECTED] wrote:
 You can't. That's the purpose of the choice mode.

 On Fri, Nov 21, 2008 at 11:35 AM, j [EMAIL PROTECTED] wrote:

  myListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);

  works fine in non-touch mode.

 However, I notice that when in touch mode, myListView does not show a
 focused row (the orange row highlight).  How do I make it so that
 there is always one row that has orange highlight?
 myListView.setSelection did not do the trick.
 




 --
 Romain Guy
 www.curious-creature.org




-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---