mAuto.addTextChangedListener(new TextWatcher() {
@Override
public void onTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) {
// TODO Auto-generated method stub
if (arg0.toString()==null||arg0.toString().trim().equals("")) {
Log.d("tag", "msg");
}else if (!arg0.toString().trim().equals("s")||!arg0.toString().trim().equals("S")) {
}
Log.d("tag", "msgooooooo"+arg0+arg1+arg2);
handler.sendEmptyMessage(7777777);
// mAuto.setFocusable(false);
}
@Override
public void beforeTextChanged(CharSequence arg0, int arg1, int arg2,
int arg3) {
// TODO Auto-generated method stub
}
@Override
public void afterTextChanged(Editable arg0) {
// TODO Auto-generated method stub
}
});
Editext
最新推荐文章于 2023-06-30 00:57:43 发布