From 0b444a2e5b5bfa114182530957985bdec432b76e Mon Sep 17 00:00:00 2001 From: Liam Cottle Date: Tue, 6 Mar 2018 20:47:59 +1300 Subject: [PATCH] add info about making modes bold to readme --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index c2eb62f..27a3d82 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ The current minSDK version is API level 14 Android 4.0 (ICE CREAM SANDWICH). * Support for **custom types** via regex * Ability to set text color * Ability to set pressed state color +* Ability to make specific modes **bold** ![](screens/screen1.png) @@ -116,6 +117,20 @@ And also autoLink text pressed state color ```java autoLinkTextView.setSelectedStateColor(ContextCompat.getColor(this, R.color.yourColor)); ``` +------------------------- + +Set modes that should be bold + +```java +autoLinkTextView.setBoldAutoLinkModes( + AutoLinkMode.MODE_HASHTAG, + AutoLinkMode.MODE_PHONE, + AutoLinkMode.MODE_URL, + AutoLinkMode.MODE_EMAIL, + AutoLinkMode.MODE_MENTION +); +``` + ------------------------- Enable under line ```java