allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
dependencies {
compile 'com.github.lightfire:Android-Gradient-Text-Color:b0047755f7'
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.lightfire</groupId>
<artifactId>Android-Gradient-Text-Color</artifactId>
<version>e66cd5cf65</version>
</dependency>
#Button
<com.lightfire.gradienttextcolor.GradientButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Hello World! Button"
app:gradientStart="@color/test1"
app:gradientEnd="@color/test2"
android:textStyle="bold"
android:textSize="30sp"
android:textColor="#d83737" />
#TextView
<com.lightfire.gradienttextcolor.GradientTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Hello World! Text"
app:gradientStart="@color/test2"
app:gradientEnd="@color/test1"
android:textStyle="bold"
android:textSize="30sp"
android:textColor="#d83737" />
app:gradientStart
app:gradientEnd
tags your textColor has no meaning.
MIT