Releases: saket/Better-Link-Movement-Method
Releases · saket/Better-Link-Movement-Method
v2.2.0
v2.1.0
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.
v1.2
v1.1
Library:
- Added support for all spans that extend
ClickableSpan
. The library was previously only limited toURLSpan
. - Fixed a memory leak issue.
- Added
linkifyHtml()
methods that can be used whenHtml.fromHtml()
is used for inserting links. An example for its usage can be seen in the sample app.
Sample:
- Added separate floating menus for phone number, email and map links.