Blank option in Spinner

by julius » Tue, 03 Mar 2009 10:43:40 GMT

Sponsored Links

I have a spinner which I would like to add a blank option to so that
by default no choice is selected. I've looked around and in the
Spinner class, but I can't see how to do this. I am just wondering if
there is a method already for doing this.

Thanks for any ideas.


Blank option in Spinner

by Will » Sat, 07 Mar 2009 07:29:42 GMT

 If you're populating your Spinner with a string array I would just
make one item in the array a blank string.


Sponsored Links

Other Threads

1. Hide a progressbar?


I have added an indeterminate progress bar to my view and I want it to
be displayed when the user clicks a button.
The problem is as soon as the activity is loaded and the intent
displayed, the progress bar is also displayed. I have used the
setProgressBarVisibility(true); statement in the onClick method but
the progress bar is displayed even without the onClick.

Can someone please tell me how to keep the progress bar hidden till
the button click happens?


2. XMF file format support

Do we have support for XMF file format . Its audio file . I was under
impression that the way midi is supported same wat xmf may be


3. Singleton in different service which share same process

4. Is it possible to start an application programmatically?

5. Application Android keyboard stoppe

6. How do the services communicate with each other?

7. Any more info about android.os.RemoteException ??