TextView.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:JotaTextEditor 作者:
/**
 * Sets the transformation that is applied to the text that this
 * TextView is displaying.
 *
 * @attr ref android.R.styleable#TextView_password
 * @attr ref android.R.styleable#TextView_singleLine
 */
public final void setTransformationMethod(TransformationMethod method) {
    if (method == mTransformation) {
        // Avoid the setText() below if the transformation is
        // the same.
        return;
    }
    if (mTransformation != null) {
        if (mText instanceof Spannable) {
            ((Spannable) mText).removeSpan(mTransformation);
        }
    }

    mTransformation = method;

    setText(mText);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号