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. Properly Disconnecting the "Network" on the Emulator

I'm working on making an app robust in the face of network

When I test a socket application on the emulator, and disconnect using
the Data setting on DDMS, the socket connection does not get cut.
Instead, it hangs.

Strangely enough, it seems that DDMS and logcat also get hung.

When testing on WiFi, and I disconnect using the Settings app, I get
an IOException immediately.

Any tips? Thanks.

2. where is the correct place to put libopencorehw?

2009/10/12 liang ming-chuan <>:

Placing under directory hardware is better since it is meant by HAL.

Here is another sample:

It builds and works on TI OMAP3 platform.

Jim Huang (jserv)


3. Auto Text seperti di bb

4. should the values in be unique?

5. files

6. How to connect a context menu to a spinner popup?

7. Salam Kenal dan Nanya Prog Alkitab