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. either im only registering textview and webview clicks or im not getting my listitemclick

i may get flamed for this question, but help me do it right. I was
downloading images from a website and putting them into a database, and then
displaying them in an imageview. well to reduce the size of my database, i
changed from an imageview to a webview and now only do a
Webview.Loaddata(ImageLink). all of this is contained within a listactivity.
my problem seems to be that for whatever reason now i dont seem to be
capturing the Listclick event any longer


<?xml version="1.0" encoding="utf-8"?>

    <LinearLayout xmlns:android=""
android:background = "@color/ImageColor" android:orientation = "horizontal"
android:layout_width="fill_parent" android:layout_height="wrap_content">

    <LinearLayout xmlns:android=""
android:background = "@drawable/bluebg" android:orientation = "vertical"
android:layout_width="wrap_content" android:layout_height="wrap_content">

        <WebView     android:id="@+id/image"     android:padding = "5pt"
                    android:paddingTop ="20pt"
                    android:background = "@drawable/myimage"

    <LinearLayout xmlns:android=""
android:background = "@drawable/bluebg" android:orientation = "vertical"
android:layout_width="fill_parent" android:layout_height="wrap_content">

        <TextView     android:id="@+id/title" android:text="title"
                     android:paddingRight= "2pt"
                     android:paddingLeft= "2pt"
                     android:background = "@android:color/transparent"


Charles Berman


2. SQLite Creating SQL Functions

How does one go about adding a custom SQLite function from within the
Android sqlite API?

I have a function (written in C) that I'm able to add using the C API
outside of Android as described here:

But can't figure out how to do the same from within Android.




3. x10 minipr

4. Founder lagi milih-milih HH

5. Static variables cleared in JUnit tests! (???)

6. Checking to See if I directory is there and if not creating one?

7. contacts.people is deprecated...........