Code example for TextPaint

Methods: setColor, setTypeface, setUnderlineText

0
             
            _dialog.show();
        } 
         
        @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.
        } 
    } 
     
    private static Dialog       _dialog=null;
    private static LinearLayout _inflated_dialog_span=null;
     
    /** 
     * @see roge.taekim.content.span.Span#parseSpan(CharSequence, int, int, SpanAttributes) 
     */ 
    @Override public CharSequence parseSpan(CharSequence string,int span_start,int span_end,SpanAttributes attributes){
        if(!attributes.hasAttribute("word")){
            Log.e("JP","The "+this.getTag()+" tag MUST have the \"word\" attribute set.");