Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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 ()

Added in API level 1

Public Methods

public abstract void onClick ( View widget)

Added in API level 1

Performs the click action associated with this span.

public void updateDrawState ( TextPaint ds)

Added in API level 1

Makes the text underlined and in the link color.