use:
switch(parent.getId()) {
...
}
instead is what you need.
The view in your parameter is the actual ‘row’ (i.e. the clicked child of spinner item), and the parent is the actual ‘spinner’ that you are after.
use:
switch(parent.getId()) {
...
}
instead is what you need.
The view in your parameter is the actual ‘row’ (i.e. the clicked child of spinner item), and the parent is the actual ‘spinner’ that you are after.