Can't Load Data Properly From Xml File To Spinner
I have listgender.xml file like this: male female  
 
Solution 1:
thats the garbage value you getting.
try this method instead of setting values through adapter programiticaly.
you define string array in string.xml and set it to spinner in your layout file like this
<Spinner 
        android:id="@+id/spinner"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:drawSelectorOnTop="true"
        android:entries="@array/array_name"
    />
Post a Comment for "Can't Load Data Properly From Xml File To Spinner"