Code example for SpannableStringBuilder

Methods: getSpanslength

0
            text.append("\n");
    } 
     
    private Object getLast(Spanned text, Class<?> kind)
    { 
        Object[] objs = _builder.getSpans(0, _builder.length(), kind);
         
        if (objs.length == 0)
            return null; 
        return objs[objs.length -1];
    } 
     
    private void start(Object mark)
    { 
        int len = _builder.length();
        _builder.setSpan(mark, len, len, Spannable.SPAN_MARK_MARK);
    } 
     
    private void startA(Attributes attributes)
    { 
Contextual code suggestions in your IDE  Get Codota for Java