2012-11-29 2 views

답변

0

이 내가 해결 방법은 다음과 같습니다

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) {} 


} 
관련 문제