Skip to content

Commit

Permalink
add info about making modes bold to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Mar 6, 2018
1 parent c6dd15f commit 0b444a2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0b444a2

Please sign in to comment.