Hi.

SETUP : I'm using ListActivity and an ArrayAdapter to show a list of
items - straight forward.

OBSERVATION : When the application starts the list shows up with the
first entry lit up in bright orange. At this point the ListView is not
in Touch Mode, so I'm thinking that this represents the default
selection of the ListView.
( If I enter Touch Mode the selection goes away as expected, and if I
exit touchmode again the selection is back on)

PROBLEM : However, I would like to see the listview (in non-touch-
mode) without this "default" selection. My first intuition was to try
to set the selection to some magic value setSelection(NO_SELECTION).
Yet, the documentation of setSelection() tells me that parameters less
than 0 will be replaced by 0. Also - playing with the setSelection()
method does not seem to have any effect (even though I'm in non-touch-
mode). This puzzles me.

QUESTION : So, this seems like an easy thing, still after having spent
some time researching selection/focus/touchmode I'm still confused
about how to approach this.

- What am I missing here?
- Alternatively, is my desire not to show the default selection
inherently unwise for some reason?

-- 
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

Reply via email to