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);
spinner5.setSelection(position);
  }

            public void onNothingSelected(AdapterView<?> arg0)
        {
        }
});

spinner2.setOnItemSelectedListener(new OnItemSelectedListener() {
           public void onItemSelected(AdapterView<?> parentView, View
selectedItemView, int position, long id) {

>
>                        spinner1.setSelection(position);
>                        spinner3.setSelection(position);
>                        spinner4.setSelection(position);
>                        spinner5.setSelection(position);
>            }
>
>            public void onNothingSelected(AdapterView<?> arg0) {
>            }


The position, I put as argument to setSelection method is the position of
selected item.

Hope this will help you.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to