If your project don't have Jitpack, you have to add it first
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Then add dependencies
dependencies {
implementation 'com.github.taweewong:OuterStrokeTextView:1.0'
}
This library provides 2 attributes
app:outlineColor
app:outlineWidth
Example
<com.taweewong.textview.OuterStrokeTextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
android:textSize="18sp"
app:outlineColor="#67C5F8"
app:outlineWidth="1dp" />