[android-developers] Re: Run function when EditText text changed

2008-10-26 Thread tauntz
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 s

[android-developers] Re: Run function when EditText text changed

2008-10-27 Thread David
So that's how I use the TextWatcher...Ok, it works perfectly! Thanks tauntz! (Am I correct in assuming this is how to use the tabHost.setOnTabChangeListener()?) On Oct 26, 12:39 pm, tauntz <[EMAIL PROTECTED]> wrote: > http://code.google.com/android/reference/android/widget/TextView.html...) > > E

[android-developers] Re: Run function when EditText text changed

2008-10-28 Thread tauntz
Yes, you are correct. (You can also create your own class that implements OnTabChangeListener like this: public class TabChangeListener implements OnTabChangeListener { public void onTabChanged(String tabID) { // XXX do something } } and then use it: TabChangeLis