Here, we attach the activity itself as the selection listener (spin.setOnItemSelectedListener(this)), as Spinner widgets only support selection events, not click events.
Here, we attach the activity itself as the selection listener(spin.setOnItemSelectedListener(this)), as Spinner widgets only supportselection events, not click events.