Most visited

Recently visited

Added in API level 1

ClickableSpan

public abstract class ClickableSpan
extends CharacterStyle implements UpdateAppearance

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


如果使用LinkMovementMethod的移动方法将此类型的对象附加到TextView的文本中,则可以选择受影响的文本跨度。 如果点击,将调用onClick(View)方法。

Summary

Public constructors

ClickableSpan()

Public methods

abstract void onClick(View widget)

执行与此跨度相关联的点击操作。

void updateDrawState(TextPaint ds)

使文本下划线并以链接颜色显示。

Inherited methods

From class android.text.style.CharacterStyle
From class java.lang.Object

Public constructors

ClickableSpan

Added in API level 1
ClickableSpan ()

Public methods

onClick

Added in API level 1
void onClick (View widget)

执行与此跨度相关联的点击操作。

Parameters
widget View

updateDrawState

Added in API level 1
void updateDrawState (TextPaint ds)

使文本下划线并以链接颜色显示。

Parameters
ds TextPaint

Hooray!