mEdit.addTextChangeListener(mWatcher);
TextWatcher mWatcher = new TextWatcher(){
public void afterTextChanged(Editable s){
}
public void beforeTextChanged(CharSequence s, int start, int count,
int after){
}
public void onTextChanged(CharSequence s, int start, int before, int count){
mText.setText("echo: " + s);
}
};
'Programming > Android' 카테고리의 다른 글
Memo (0) | 2010.08.02 |
---|---|
PaintTest (3) | 2010.07.09 |
레이아웃 (0) | 2010.07.05 |