You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/mursaat/animatedgradienttextview

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mursaat/animatedgradienttextview

v0.0.6
Source
Go
Version published
Created
Source

alt tag

AnimatedGradientTextView : Color gradients for TextView

This library will allow you to create TextView which uses color gradients and custom fonts.

Changelog

v0.0.5

  • app:font become app:customFont
  • Add app:maxFPS (define how many times the gradient should refresh each second)

Latest release

The most recent release is v0.0.5, 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.5'
}

Getting started

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 :

  • colors : It must reference an array of colors in res/values/attr.xml, for example :
<?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>
  • simultaneousColors : The number of colors (of the array) possibly displayed in a same time
  • angle : The angle of the color gradient
  • speed : A number in milliseconds. Increase this number will decrease the gradient move speed
  • customFont : Must be a name of a font located in assets/fonts folder
  • maxFPS : Define how many times the gradient should refresh each second. (Default : 24 FPS)

FAQs

Package last updated on 29 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts