- TextWatcher tw = new TextWatcher() {
- @Override
- public void beforeTextChanged(CharSequence s, int start, int count,
- int after) {
- Log.e("beforeTextChanged", "-----------------------");
- Log.e("beforeTextChanged", "s:" + s + " start:" + start + " count:"
- + count + " after:" + after);
-
-
-
-
- }
-
- @Override
- public void onTextChanged(CharSequence s, int start, int before,
- int count) {
- Log.e("onTextChanged", "-----------------------");
- Log.e("onTextChanged", "s:" + s + " start:" + start + " before:"
- + before + " count:" + count);
-
-
-
-
- }
-
- @Override
- public void afterTextChanged(Editable s) {
- Log.e("afterTextChanged", "-----------------------");
- Log.e("afterTextChanged", "s:" + s);
-
- }
- };
- tv.addTextChangedListener(tw);
发表于
2016-04-22 10:17
有一天
阅读( 153)
评论()
编辑
收藏
举报
|
|