Hi guys! Does anyone know how to get the position of a specific element in a spinner based on the element's text: Example: Given the following Spinner: position element 0 Blue 1 Red 2 Yellow 3 Black 4 Brown
How do I get the position the element Red occupies? The method should return 1 in this case. I've been exploring the following method, without any luck: public int getPositionForView(View view) Get the position within the adapter's data set for the view, where view is a an adapter item or a descendant of an adapter item. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---