• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android Spinner setOnItemSelectedListener

Mingi

Lurker
Is there a way to execute when the same Position is selected?

For example, if 0 is currently selected, selecting 0 again will cause the same event to occur again.
 
use a switch statement

switch(selected){
case 0:
//do something
break;

case 1:
//do something
break;
}
 
Last edited:
Back
Top Bottom