Skip to content

iamBedant/OutlineTextView

Repository files navigation

OutlineTextView

Android TextView with Outline/Stroke

License

Example

Example 1     
Example 2     

Quick Setup

1. Include library

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" />

License

OutlineTextView is distributed under the MIT license. See LICENSE for details.