String 转 Editable

孙泉
2023-12-01
   今天在 继承 Edittext  并且重写 getText 的时候遇到了这个问题,直接上代码
@Override
    public Editable getText() {
        String text = super.getText().toString();
        text = "do want u want here...";
        Editable editable = new SpannableStringBuilder(text);
        return editable;
    }

 类似资料: