public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
if(parent.getId() == R.id.spinner1)
{
//do this
}
else if(parent.getId() == R.id.spinner2)
{
//do this
}
}
More Related Contents:
- Android Spinner: Get the selected item change event
- How to keep onItemSelected from firing off on a newly instantiated Spinner?
- Spinner does not wrap text — is this an Android bug?
- How to set font custom font to Spinner text programmatically?
- Multi selection spinner in android without AlertDialog
- Android – configure Spinner to use array
- Spinner : onItemSelected not called when selected item remains the same
- How to wrap lengthy text in a spinner? [duplicate]
- Android Spinner with different layouts for “drop down state” and “closed state”?
- How to add a Hint in spinner in XML
- How to color and alignment spinner item on android?
- Spinner onItemSelected called erroneously (without user action)
- How can I showing checkbox when I choose the spinner data?
- How to make an Android Spinner with initial text “Select One”?
- How to customize a Spinner in Android
- Android: How to bind spinner to custom object list?
- Android OnClickListener – identify a button
- How to change the spinner background in Android?
- Android: Where is the Spinner widget’s text color attribute hiding?
- How to limit the height of Spinner drop down view in Android
- Android: RadioGroup – How to configure the event listener
- Set Key and Value in spinner
- How to set dropdown arrow in spinner?
- Change text color of selected item in spinner
- Change colour of small triangle on spinner in android
- Get back key event on EditText
- Creating a custom event listener on an Android app
- How to get Spinner selected item value to string?
- How do I create an Android Spinner as a popup?
- Text color of a closed spinner