TouchableSpanListener

A listener that reacts to touch events on a clickable span. A listener such as this should be used when the touch action needs to access heavyweight objects such as fragments or activities. Using such objects within the spannable can cause memory leaks as spannables are cached in sCached which is static.

Functions

Link copied to clipboard
abstract fun onTouch(@Nullable span: ClickableSpan, motionEvent: MotionEvent, view: View): Boolean