English | Site Directory

Android - An Open Handset Alliance Project

android.text
public interface

android.text.TextWatcher

android.text.TextWatcher

When an object of a type is attached to an Editable, its methods will be called when the text is changed.

Known Indirect Subclasses

Summary

Public Methods

        void  beforeTextChanged(CharSequence s, int start, int count, int after)
This method is called to notify you that, within s, the count characters beginning at start are about to be replaced by new text with length after.
        void  onTextChanged(CharSequence s, int start, int before, int count)
This method is called to notify you that, within s, the count characters beginning at start have just replaced old text that had length before.

Details

Public Methods

public void beforeTextChanged(CharSequence s, int start, int count, int after)

This method is called to notify you that, within s, the count characters beginning at start are about to be replaced by new text with length after.

public void onTextChanged(CharSequence s, int start, int before, int count)

This method is called to notify you that, within s, the count characters beginning at start have just replaced old text that had length before.
Build m5-rc15i - 10 Jun 2008 13:54