https://github.com/fobidlim/linkable-text-android
Clickable @mentions, #hashtags and links
https://github.com/fobidlim/linkable-text-android
android android-library hashtags linkable links mentions
Last synced: 5 months ago
JSON representation
Clickable @mentions, #hashtags and links
- Host: GitHub
- URL: https://github.com/fobidlim/linkable-text-android
- Owner: fobidlim
- License: apache-2.0
- Created: 2016-11-17T02:40:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-09-28T01:44:23.000Z (over 4 years ago)
- Last Synced: 2025-08-18T21:26:30.248Z (10 months ago)
- Topics: android, android-library, hashtags, linkable, links, mentions
- Language: Kotlin
- Homepage:
- Size: 273 KB
- Stars: 25
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Linkable Text Library
[](http://android-arsenal.com/details/1/4674)
[](https://gitter.im/fobid/linkable-text?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Github Release][release-image]][release-url]
You can download Linkable Text Sample application on Google Play.
[](https://play.google.com/store/apps/details?id=com.github.fobid.linkabletext.sample)
# Download
Download [the latest JAR](https://repo1.maven.org/maven2/com/github/fobid/linkable-text/0.2.0/linkable-text-0.2.0.aar) or grab via Maven:
```
com.github.fobid
linkable-text
0.2.0
```
or Gradle:
```
implementation 'com.github.fobid:linkable-text:0.2.0'
```
# Usage
```
```
If you don't want to set link, then add `app:enabledLinks="false"` in your xml.
Or, `LinkableTextView.setEnabledLinks(false)` in your code.
You must call `LinkableTextView.setOnLinkClickListener()` after `setText()` to set links clickable.
# Attributes
```
```
You can make all links to be disabled with `enabledLinks=false` in your layout xml or `setEnabledLinks(false)` in your code.
Every links are able to be set disabled on each.
If you remove all of underlines, then use `enabledUnderlines=false` in your layout xml or `setEnabledUnderlines(false)` in your code.
It is also supported to each links.
Default value of all links and underlines is `true`
# License
```
Copyright 2016 fobidlim
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```
[release-image]: https://img.shields.io/badge/release-v0.2.0-lightgrey.svg
[release-url]: https://github.com/fobidlim/linkable-text-android/releases/tag/v0.2.0