http://code.google.com/android/reference/android/widget/TextView.html#addTextChangedListener(android.text.TextWatcher)

Example:
        editText.addTextChangedListener(new TextWatcher() {
                        public void afterTextChanged(Editable s) {
                                //XXX do something
                        }
                        public void beforeTextChanged(CharSequence s, int 
start, int count,
int after) {
                                //XXX do something
                        }
                        public void onTextChanged(CharSequence s, int start, 
int before, int count) {
                                //XXX do something
                        }
        });


Tauno



On Sun, Oct 26, 2008 at 9:33 PM, David <[EMAIL PROTECTED]> wrote:
>
> I want to run a function when the text in an EditText is changed. How
> would I do this?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to