AnimatedGradientTextView
v0.0.6
該庫將允許您創建使用顏色漸變和自定義字體的TextView。
V0.0.6
V0.0.5
最新版本是V0.0.6,2017年8月29日發布
要使用Gradle添加依賴項,請添加您的頂級build.gradle :Gradle:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
然後添加您的應用程序build.gradle :
dependencies {
compile 'com.github.Mursaat:AnimatedGradientTextView:v0.0.6'
}
首先,不要忘記將其添加到您的容器佈局中:
xmlns:app="http://schemas.android.com/apk/res-auto"這是使用AnimatedGradientTextView的典範。我只是放入XML佈局:
< 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 "
/>所有這些參數都是選項。一些解釋:
<? 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 >