Code example for TextPaint

Methods: setColor, setTypeface, setUnderlineText

0
                Tools.logException(e);
            } 
        } 
         
        @Override public void updateDrawState(TextPaint paint){
            paint.setColor(0xFFB100C4);  //TODO:  Find a better way to set these values.
            paint.setUnderlineText(false);
            paint.setTypeface(Typeface.create((String)null,Typeface.BOLD));  //Have to add that cast to avoid ambiguity.
        } 
    } 
     
    /** 
     * @see roge.taekim.content.span.Span#parseSpan(java.lang.CharSequence, int, int, roge.taekim.content.span.SpanAttributes) 
     */ 
    @Override 
    public CharSequence parseSpan(CharSequence string, int span_start, int span_end,SpanAttributes attributes){
        if(!attributes.hasAttribute("link")){
            Log.d("JP","The link attribute for the \""+this.getTag()+"\" span was not set.");
             
            return string;
        }else if(attributes.getAttribute("link").equals("")){