private static class Visible extends Handler implements UpdateLayout, Runnable{
public Visible(Spannable sp, PasswordTransformationMethod ptm) { mText = sp; mTransformer = ptm; postAtTime(this, SystemClock.uptimeMillis() + 1500); } public void run() { mText.removeSpan(this); } private Spannable mText; private PasswordTransformationMethod mTransformer; }
可以看到是1500秒变一次,在此记录一下