v2.0
Library
- Support for listening to long-clicks on URLs
- Fixed a bug where URLs were staying highlighted even after lifting finger in some cases.
BetterLinkMovementMethod method = BetterLinkMovementMethod.linkify(Linkify.ALL, textView);
method.setOnLinkLongClickListener((textView, url) -> {
// Do something with the URL and return true to indicate that this URL was handled.
// Otherwise, return false to let Android handle the URL.
return true;
});
Sample
- Replaced dark theme with light
- Replaced custom floating menu with
PopupMenu
, which have a nice entry animation on Marshmallow and above.