SplitEditTextView icon indicating copy to clipboard operation
SplitEditTextView copied to clipboard

TransformationMethod 不生效

Open trycatchx opened this issue 1 year ago • 1 comments

需要修改代码:

    /**
     * 根据输入内容显示模式,绘制内容是圆心还是明文的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();
        }
       //....
    }

trycatchx avatar Jul 07 '23 09:07 trycatchx

不然 无法设置使用 :splitEdit.transformationMethod = AllCapTransformationMethod()

trycatchx avatar Jul 07 '23 09:07 trycatchx