Set Spinner select to 'none' ?

by Mark Wyszomierski » Thu, 08 Apr 2010 00:47:20 GMT

Sponsored Links

Is there a way to set a Spinner's selection to 'none' ? When my
activity launches, it looks like a spinner will automatically select
the 0th element in the spinner. I'd like to explicitly make the user
choose a selection instead.



Set Spinner select to 'none' ?

by ~ TreKing » Thu, 08 Apr 2010 06:09:57 GMT


Not that I know of, but you can set a prompt as the first item and ignore
its selection. See this thread:

Sponsored Links

Other Threads

1. Getting the ContentView

So, I created a class that expands View and etc... and used it on
setContentView(). Now I want to access my original class to change
settings like color, etc... But I cant find a method to do it on my
app class (that extends Activity).

Is there anything that works as a getContentView? Or do I save my
class to a private attribute and acces it from there (ugly, I

Jos de Paula Eufrsio Jnior (coredump)
MCSO, GRC Professional


2. XML Preferences, reading and saving

On Fri, Apr 24, 2009 at 5:30 PM, Jose de Paula Eufrasio Junior

< snip>

Answering myself: the PreferenceManager class deals with all that
stuff, after creating the preference XML and inflating it you can
access the pairs using the

Very easy and cool :)

Jos de Paula Eufrsio Jnior (coredump)
MCSO, GRC Professional


3. Issues with debugging using Ganymede Eclipse

4. Changing a listview in onItemClickListener

5. Vibration class - ClassCastException

6. openGL Crash

7. How to add scrollbars in a custom view which override onDraw() method?