- All Implemented Interfaces:
- android.text.method.MovementMethod
public class CatchableLinkMovementMethod
extends android.text.method.LinkMovementMethod
Custom MovementMethod allowing to check the clicked link before opening the browser.
It is based on LinkMovementMethod, only the onTouchEvent is overriden to add a call to the listener before it performs the Open action.
Source : http://stackoverflow.com/questions/1697084/handle-textview-link-click-in-my-android-app
Core Android source : https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/text/method/LinkMovementMethod.java