Android Spinner selection
问题 The OnItemSelectedListener event handler gets called both when a spinner selection is changed programmatically, and when a user physically clicks the spinner control. Is is possible to determine if an event was triggered by a user selection somehow? Or is there another way to handle spinner user selections? 回答1: To workaround you need to remember the last selected position. Then inside of your spinner listener compare the last selected position with the new one. If they are different, then