SocialTextView
A simple custom Android TextView that highlights content such as Mention, Hashtag, Phone, Email and Url.
Setup
Usage
only for linking of the mention you specify
only for linking of the hashtag you specify
To capture click events
Attributes
Attribute | Type | Summary |
---|---|---|
app:linkType |
int |
hashtag-mention-url-phone-email |
app:underLine |
int |
true or false |
app:normalTextColor |
int |
Sets the text color of a normal text color. |
app:hashtagColor |
color |
Sets the text color of a hashtag link in the text. |
app:mentionColor |
color |
Sets the text color of a mention link in the text. |
app:phoneColor |
color |
Sets the text color of a phone number link in the text. |
app:emailColor |
color |
Sets the text color of an email link in the text. |
app:urlColor |
color |
Sets the text color of a web url link in the text. |
app:selectedColor |
color |
Sets the text color of a selected link in the text. |