AnimatedGradientTextView
v0.0.6
This library will allow you to create TextView which uses color gradients and custom fonts.
v0.0.6
v0.0.5
The most recent release is v0.0.6, released August 29, 2017
To add a dependency using Gradle, add in your top-level build.gradle:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
And then add in your app build.gradle :
dependencies {
compile 'com.github.Mursaat:AnimatedGradientTextView:v0.0.6'
}
Firstly, don't forget to add this in your container layout :
xmlns:app="http://schemas.android.com/apk/res-auto"Here is an exemple using an AnimatedGradientTextView. I just put in my xml layout :
<com.mursaat.extendedtextview.AnimatedGradientTextView
...
app:colors="@array/funny_colors"
app:simultaneousColors="4"
app:angle="45"
app:speed="1000"
app:maxFPS="30"
app:customFont="BebasNeue.otf"
/>All these parameters are optionals. Some explanations :
<?xml version="1.0" encoding="utf-8"?>
<resources>
...
<array name="funny_colors">
<item>@color/materialRed</item>
<item>@color/materialLime</item>
<item>@color/materialOrange</item>
<item>@color/materialPurple</item>
</array>
</resources>