Build 1.0_r1(from source)

android.text.style
Class ClickableSpan

java.lang.Object
  extended by android.text.style.CharacterStyle
      extended by android.text.style.ClickableSpan
Direct Known Subclasses:
URLSpan

public abstract class ClickableSpan
extends CharacterStyle

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


Constructor Summary
ClickableSpan()
           
 
Method Summary
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.
 
Methods inherited from class android.text.style.CharacterStyle
getUnderlying, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClickableSpan

public ClickableSpan()
Method Detail

onClick

public abstract void onClick(View widget)
Performs the click action associated with this span.


updateDrawState

public void updateDrawState(TextPaint ds)
Makes the text underlined and in the link color.

Specified by:
updateDrawState in class CharacterStyle

Build 1.0_r1(from source)

Please submit a feedback, bug or feature