0
Tab 키를 누르면 다음 EditText로 이동합니다. 지금은 공백 만 추가합니다. Android 2.3에서 작업 중입니다.탭 키는 공백만을 제공합니다. Tab을 사용하여 다음 EditText로 어떻게 이동합니까?
누구든지 알고 계신가요?
감사합니다.
Tab 키를 누르면 다음 EditText로 이동합니다. 지금은 공백 만 추가합니다. Android 2.3에서 작업 중입니다.탭 키는 공백만을 제공합니다. Tab을 사용하여 다음 EditText로 어떻게 이동합니까?
누구든지 알고 계신가요?
감사합니다.
이 내가 해결 방법은 다음과 같습니다
private class GenericTextWatcher implements TextWatcher{
private View view;
private GenericTextWatcher(View view) {
this.view = view;
}
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
switch(view.getId()){
case R.id.txt_checklocation_location:
if (txt_checklocation_location.getText().toString().endsWith("\t"))
txt_checklocation_location.focusSearch(View.FOCUS_DOWN).requestFocus();
break;
}
}
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {}
public void afterTextChanged(Editable editable) {}
}