Skip to content

This Android library gives a transition of gradient of shades of given color in background of a layout. Just like an Instagram Background.

License

Notifications You must be signed in to change notification settings

mayankagg9722/InstagramGradientLibrary

Repository files navigation

InstagramGradientLibrary

Release This Android library gives a transition of gradient of shades of given color in background of a layout. Just like an Instagram Background.

alt tag

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

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

Add the dependency:

dependencies {
        compile 'com.github.mayankagg9722:InstagramGradientLibrary'
}

Usage:

XML:

<com.example.animatebackground.AnimateActivity
    xmlns:custom="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    custom:LayoutColor="#fff"
    android:id="@+id/mylayout"
    />

Java:

((com.example.animatebackground.AnimateActivity)findViewById(R.id.mylayout)).setColor(Color.parseColor("#8057e1"));

License:

	Copyright 2017 Mayank Aggarwal
	Apache License
	Version 2.0, January 2004
	http://www.apache.org/licenses/

About

This Android library gives a transition of gradient of shades of given color in background of a layout. Just like an Instagram Background.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages