Code example for Editable

Methods: length, setSpan

0
            handleLi(opening, output);
        } 
    } 
 
    private void handleStrike(boolean opening, Editable output) {
        final int length = output.length();
        if (opening) {
            strikePos = length;
        } else { 
            if (strikePos > UNDEFINED_POSITION) {
                output.setSpan(new StrikethroughSpan(), strikePos, length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
                strikePos = UNDEFINED_POSITION;
            } 
        } 
    } 
 
    public boolean isProblematicDetected() { 
        return problematicDetected;
    } 
 
    private void handleProblematic() {