Set Spinner select to 'none' ?

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


Sponsored Links
 Hi,

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.

Thanks

--



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

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

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:background = "@color/ImageColor" android:orientation = "horizontal"
android:layout_width="fill_parent" android:layout_height="wrap_content">

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/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:color="@color/ImageColor"
                    android:paddingTop ="20pt"
android:layout_width="80px"
                    android:background = "@drawable/myimage"
                    android:layout_height="95px"/>

    </LinearLayout>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/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"
                     android:layout_width="fill_parent"
                     android:layout_height="wrap_content"/>
</LinearLayout>

</LinearLayout>


Charles Berman
313.790.9851

www.charlesberman.com

-- 

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: 
http://www.sqlite.org/c3ref/create_function.html

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

Thanks,

 Lex

-- 

3. x10 minipr

4. Founder ilmukomputer.com 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...........