package com.ycgis.macall.personalcenter.p.callback;/*
 * 项目名：xayss
 * 作者：马超
 * 类目：EditTextWatcherListener.java
 * 包名：com.ruansee.sx.xayss.p.callback.EditTextWatcherListener
 * 当前修改时间：2023年05月08日 14:26:02
 * 上次修改时间：2023年05月08日 14:26:02
 * Copyright©：2023 安徽软思信息技术有限公司
 * 功能描述：
 */

import android.text.Editable;
import android.text.Spannable;
import android.text.TextWatcher;

public abstract class EditTextWatcherListener implements TextWatcher {
    /**
     * This method is called to notify you that, within <code>s</code>,
     * the <code>count</code> characters beginning at <code>start</code>
     * are about to be replaced by new text with length <code>after</code>.
     * It is an error to attempt to make changes to <code>s</code> from
     * this callback.
     */
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {

    }

    /**
     * This method is called to notify you that, within <code>s</code>,
     * the <code>count</code> characters beginning at <code>start</code>
     * have just replaced old text that had length <code>before</code>.
     * It is an error to attempt to make changes to <code>s</code> from
     * this callback.
     */
    public void onTextChanged(CharSequence s, int start, int before, int count) {

    }

    /**
     * This method is called to notify you that, somewhere within
     * <code>s</code>, the text has been changed.
     * It is legitimate to make further changes to <code>s</code> from
     * this callback, but be careful not to get yourself into an infinite
     * loop, because any changes you make will cause this method to be
     * called again recursively.
     * (You are not told where the change took place because other
     * afterTextChanged() methods may already have made other changes
     * and invalidated the offsets.  But if you need to know here,
     * you can use {@link Spannable#setSpan} in {@link #onTextChanged}
     * to mark your place and then look up from here where the span
     * ended up.
     */
    public void afterTextChanged(Editable s){

    }
}
