android.text.style
Class ClickableSpan
java.lang.Object
android.text.style.CharacterStyle
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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClickableSpan
public ClickableSpan()
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
Please submit a feedback, bug or feature