TextView-Linker

Additional

Language
Kotlin
Version
N/A
Created
Jan 18, 2019
Updated
Jan 21, 2019
Owner
Anton Artemov (antoxa2584x)
Contributor
Anton Artemov (antoxa2584x)
1
Activity
Badge
Generate
Download
Source code
APK file

Blurb

TextView-Linker

Simple Android Kotlin lib to highligt links in TextView

How to

To get a Git project into your build:

Step 1. Add the JitPack repository to your build file

allprojects {
 repositories {
  ...
  maven { url 'https://jitpack.io' }
 }
}

Step 2. Add the dependency

dependencies {
        implementation 'com.github.antoxa2584x:TextView-Linker:Tag'
}

Step 3. Span TextView

textView?.spanAllLinks(ContextCompat.getColor(this, R.color.highlighted_text_material_light)) {
          var webPage = Uri.parse(it)
}