Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Little library to do dynamic gradient background of view

Notifications You must be signed in to change notification settings

thrashedbrain/GradientBackground

Repository files navigation

GradientBackground

Little Android dynamic gradient background library

Setup

Add a gradle dependency

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
implementation 'com.github.thrashedbrain:GradientBackground:0.2.1'

Usage

gradBg = new GradientBackground.Builder()
                .addColor("#ff5400", "#ffb600")
                .addColor("#9d4edd", "#ff9100")
                .setDuration(5500)
                .build();
        gradBg.init();
        gradBg.start(frameLayout);

Also add

@Override
    protected void onPause() {
        gradBg.onPause();
        super.onPause();
    }
@Override
    protected void onResume() {
        super.onResume();
        gradBg.onResume();
    }

About

Little library to do dynamic gradient background of view

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages