Skip to content

Maggie-Wan/StrokeTextView

Repository files navigation

Preview

sample

Gradle:

Add it in your root build.gradle at the end of repositories:

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

Add the dependency

dependencies {
        implementation 'com.github.Maggie-Wan:StrokTextView:v1.0'
}

Usage:

Add the stroke and stroke color in your xml.

stroke setting: app:stroke="your stroke(float)"

stroke color setting: app:strokeColor="your color(Hex Code)"

You can see the example in app file.

<com.maggie.stroketextviewlibrary.StrokeTextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Hello Android!"
    android:textSize="40sp"
    android:textColor="#00BCD4"
    app:stroke="20.0"
    app:strokeColor="#F44336"
    android:paddingBottom="20dp"/>

About

Style the TextView with customized stroke

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages