Last active
August 29, 2015 14:24
-
-
Save anotherdev/ac3a027a440187cb1b3d to your computer and use it in GitHub Desktop.
Works on pre-lollipop but not on lollipop. :(
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextView tv = ButterKnife.findById(layout, R.id.tv); | |
tv.setAutoLinkMask(Linkify.PHONE_NUMBERS); | |
tv.setLinksClickable(true); | |
Pattern pattern = Pattern.compile("(\\d[\\s-]*){4,22}\\d"); | |
Linkify.addLinks(tv, pattern, "tel:"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment