Skip to content

TransformationMethod 不生效 #7

@trycatchx

Description

@trycatchx

需要修改代码:

    /**
     * 根据输入内容显示模式,绘制内容是圆心还是明文的text
     */
    private void drawContent(Canvas canvas) {
        int cy = getHeight() / 2;
        TransformationMethod mTransformationMethod = getTransformationMethod();
        String password = getText().toString().trim();
        if(mTransformationMethod != null) {
            password = mTransformationMethod.getTransformation(password,this).toString();
        }
       //....
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions