I have an array of Strings I\'m populating a Spinner object with. However, I\'d like to attach an ID to each element of the Spinner, so when the user selects an item, I hav
Andrew Hi, it's been a long time but it's worth to write.
You can set a tag for each row when you'r inflating spinnerLayout in SpinnerAdapter:
spinnerView = inflater.inflate(spinnerLayout, parent, false);
spinnerView.setTag("Your Tag");
And then you can get the tag with:
yourSpinner.getSelectedView().getTag();