<ListView ...
   android:drawSelectorOnTop="false"
   ...
/>

Does the trick, but that removes the selector completely, not only the
first default selection.

On Jan 29, 11:44 am, Ingar Arntzen <ingar.arnt...@gmail.com> wrote:
> Hi.
>
> SETUP : I'm using ListActivity and an ArrayAdapter to show alistof
> items - straight forward.
>
> OBSERVATION : When the application starts thelistshows 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to