public class SpanClickHandler
extends Object
TextView or a Layout. The text in the layout must
be of type Spanned, and the spans need to implement HighlightedClickableSpan.| Constructor and Description |
|---|
SpanClickHandler(View view,
Layout layout)
Creates an instance of this helper for a layout and its containing view.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
enableClicksOnSpans(TextView textView) |
boolean |
handleTouchEvent(MotionEvent event)
Takes a motion event from the processing view and check for clicks on
any of the clickable spans in the layout.
|
public SpanClickHandler(View view,
Layout layout)
public static void enableClicksOnSpans(TextView textView)
public boolean handleTouchEvent(MotionEvent event)
event - The motion event.