spinner.setOnItemSelectedListener(new OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {
// ทำตรงนี้ครับ
}
@Override
public void onNothingSelected(AdapterView<?> parentView) {
// your code here
}
});