[android-developers] Re: Default the Spinner Selection

2008-10-19 Thread humanoid
I have the same problem. I want to pre-set the selection based on an _id that is not the same as the position. I display a set of codes in the spinner i.e. _id display 4 blue 5 green i want when I have an _id of 4 to set the position to 0. I populate the spinner dynamicall

[android-developers] Re: Default the Spinner Selection

2008-10-03 Thread Megha Joshi
You could use Spinner's setSelection(int position) method. 2008/10/3 Lonzo1968 <[EMAIL PROTECTED]> > > I feel almost embarrassed to ask this.. But how do you default the > selection in a Spinner Widget? I have a Spinner that uses an > ArrayAdapter to fill the Selections. I get the value of the >