FileDocCategorySizeDatePackage
ClickableSpan.javaAPI DocAndroid 1.5 API1368Wed May 06 22:41:56 BST 2009android.text.style

ClickableSpan

public abstract class ClickableSpan extends CharacterStyle implements UpdateAppearance
If an object of this type is attached to the text of a TextView with a movement method of LinkMovementMethod, the affected spans of text can be selected. If clicked, the {@link #onClick} method will be called.

Fields Summary
Constructors Summary
Methods Summary
public abstract voidonClick(android.view.View widget)
Performs the click action associated with this span.

public voidupdateDrawState(android.text.TextPaint ds)
Makes the text underlined and in the link color.

        ds.setColor(ds.linkColor);
        ds.setUnderlineText(true);