버튼을 클릭하면 아래로 떨어지는 스피너가 있습니다. 그러나 onItemSelectedListener를 설정하려고 할 때 click 이벤트를 사용하지 않습니다.Spinner on Button이 클릭 이벤트에 응답하지 않음 :
spnrLocation.setOnItemSelectedListener(new OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View arg1,
int arg2, long arg3) {
System.out.println("location clicked" + arg2);
edtLocation.setText(parent.getItemAtPosition(arg2).toString());
System.out.println("wfefe"
+ parent.getItemAtPosition(arg2).toString());
}
@Override
public void onNothingSelected(AdapterView<?> arg0) {
}
});
코드를 게시하십시오. –
코드에서 아무 것도 할 수 없습니다. –
열리는 의미는 ..... ..... –