Android TextView with Outline/Stroke
Using Gradle
OutlineTextView is currently available in on Jitpack so add the following line before every other thing if you have not done that already.
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Then add the following line
dependencies {
implementation 'com.github.iamBedant:OutlineTextView:1.0.5'
}
Using Maven
Also add the following lines before adding the maven dependency
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Then add the dependency
<dependency>
<groupId>com.github.iamBedant</groupId>
<artifactId>OutlineTextView</artifactId>
<version>1.0.4</version>
</dependency>
Example
<com.iambedant.text.OutlineTextView
android:id="@+id/imageView23"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2"
android:textColor="@android:color/white"
android:textSize="36sp"
app:outlineColor="#53D1A1"
app:outlineWidth="0.7" />
OutlineTextView is distributed under the MIT license. See LICENSE for details.