EditText实时监测内容

editText.addTextChangedListener(new TextWatcher() {
            @Override
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {
            }

            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {
            }

            @Override
            public void afterTextChanged(Editable s) {
                textView.setText(editText.getText());
            }
        });

 

posted @ 2016-06-01 17:34  zqxLonely  阅读(335)  评论(0编辑  收藏  举报