How can I get an event in Android Spinner when the current selected item is selected again? -


I wrote a set animated style listener to change the spinner when the spinner item changes. My requirement is that when I click on the currently selected item, the toast should be displayed. How to get this event? When the currently selected item is clicked again, the spinner is not responding. `

  StorageSpinner.setOnItemSelectedListener (new adapterview .onitem-selectlist () {@ Override public on-body item, selected (View Adapter View Adapter, V, Int I., Long LNG) {Toast. Make Text (GetApplicationContext), (CharSequence) StorageSpinner.getSelectedItem (), toast.LENGTH_SHORT) Show ();} None except the public spaces (Adapterview RJX) {GetApplicationContext), " None selected ", Toast. LNNGHHORT). Show (); }});    

When you click on the currently selected item, Can not even stop the incident. You can not hold setOnItemSelectedListener to reply to the spinner

Comments