to top
Android APIs
public abstract class

ClickableSpan

extends CharacterStyle
implements UpdateAppearance
java.lang.Object
   ↳ android.text.style.CharacterStyle
     ↳ android.text.style.ClickableSpan
Known Direct Subclasses

Class Overview

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 onClick(View) method will be called.

Summary

Public Constructors
ClickableSpan()
Public Methods
abstract void onClick(View widget)
Performs the click action associated with this span.
void updateDrawState(TextPaint ds)
Makes the text underlined and in the link color.
[Expand]
Inherited Methods
From class android.text.style.CharacterStyle
From class java.lang.Object

Public Constructors

public ClickableSpan ()

Since: API Level 1

Public Methods

public abstract void onClick (View widget)

Since: API Level 1

Performs the click action associated with this span.

public void updateDrawState (TextPaint ds)

Since: API Level 1

Makes the text underlined and in the link color.