Re: [android-developers] Spinner Help

2012-05-31 Thread Narendra Singh Rathore
Use the following spinner1.setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected(AdapterView? parentView, View selectedItemView, int position, long id) { spinner2.setSelection(position); spinner3.setSelection(position); spinner4.setSelection(position);

Re: [android-developers] Spinner Help

2012-05-23 Thread TreKing
On Sun, May 20, 2012 at 12:39 AM, Ashintha Rukmal ashin...@gmail.comwrote: I used setOnItemSelectedListner and it worked for the 1st spinner.. but others don't work. here's my code for 1st 2 spinners. any solution? Debug your app. At the very least, explain what other don't work means and

[android-developers] Spinner Help

2012-05-21 Thread Ashintha Rukmal
Hi,, I'm new to android developing... I'm developing a simple app that have 5 spinners.. when I select 1 item in a spinner I want to auto select other spinner items that equals to the selected item position. I used setOnItemSelectedListner and it worked for the 1st spinner.. but others don't work.

[android-developers] Spinner Help

2012-05-21 Thread Ashintha Rukmal
Hi,, I'm new to android developing.. I'm trying to make a simple app that contains 5 spinners. When I select one item in a spinner I want to auto select other spinner items that equals to selected item position. I used setOnItemSelected listner and it worked for the 1st spinner. But when I select

Re: [android-developers] Spinner Help

2012-05-21 Thread Justin Anderson
int pos2=spinner.getSelectedItemPosition(); Shouldn't this line be the following? *int pos2 = spinner1.getSelectedItemPosition();* Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, May 21, 2012 at 9:47 AM, Ashintha Rukmal ashin...@gmail.com