package kr.co.hanwha.hifive.util;

import android.graphics.Color;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.view.View;

/**
 * Created by sanghoonkwon on 2018. 3. 29..
 */

public class HFNonUnderlineClickableSpan extends ClickableSpan {
    @Override
    public void onClick(View widget) {

    }

    int color = Color.parseColor("#000000");

    public HFNonUnderlineClickableSpan() {
        super();
    }

    public HFNonUnderlineClickableSpan(int color) {
        super();
        this.color = color;
    }


    @Override
    public void updateDrawState(TextPaint ds) {
//		super.updateDrawState(ds);
//		ds.setColor(ds.linkColor);
        ds.setColor(color);
        ds.setUnderlineText(false);    // set to false to remove underline
    }
}
