Tired of boring, static UIs? π΄ Say hello to the future of Android design! π GradientStripAnimation brings your layouts to life with mind-blowing, customizable gradient animations that will leave your users in awe! π€―π
- π Hypnotic, endless gradient flows that defy physics
- π¨ Infinite color combinations to match any theme
- β±οΈ Precision timing control for perfectly synced animations
- π§ Flexible configurations for ultimate creative freedom
- π Eye-popping shadow effects for that extra oomph
- ποΈ Blazing-fast performance that won't slow you down
- π₯ Skyrocket User Engagement: Watch those retention rates soar!
- π¦ Stand Out from the Crowd: Leave boring apps in the dust
- π¨ Unleash Your Inner Artist: Create UI masterpieces effortlessly
- π Boost Performance: Smooth animations without the lag
Watch GradientStripAnimation dance to your app's rhythm:
screen-.-.mp4
Upgrade your loading screens from meh to marvelous:
screen-.-.mp4
Prepare to be mesmerized:
- Drop this beat in your root
build.gradle
:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
//...
maven { url 'https://jitpack.io' }
}
}
- Now, spice up your app
build.gradle
:
dependencies {
implementation 'com.github.alex11111115:GradientStripAnimation:1.2'
}
- Prepare your canvas:
First, make sure you have a LinearLayout
ready to be transformed into a canvas of moving art:
package com.your.app;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.widget.LinearLayout;
import com.kilobyte.gradientstripanimation.GradientStripAnimation;
import java.util.ArrayList;
import java.util.List;
public class MainActivity extends Activity {
private Context context = this;
private LinearLayout container; //Replace with your LinearLayout
private GradientStripAnimation animation;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
container = findViewById(R.id.container);
animation = new GradientStripAnimation(this, container);
}
}
- Mix your potion (configure those strips):
List<GradientStripAnimation.StripConfig> configs = new ArrayList<>();
// Strip 1: The Ethereal Whisper
configs.add(new GradientStripAnimation.StripConfig(LinearLayout.LayoutParams.MATCH_PARENT, dpToPx(18),
new int[]{0xFF8EA3FE, 0xFFA179C6, 0xFFB44F8F, 0xFF946591, 0xFF34A79A, 0xFF8D8CD3 /*You can add more colors to infinity according to your need.*/})
.setCornerRadius(dpToPx(4))
.setEnableShadow(true)
.setShadowColor(0x66222327)
.setShadowRadius(dpToPx(1))
.setShadowDx(0)
.setShadowDy(dpToPx(0)));
// Strip 2: The Ocean's Depth
configs.add(new GradientStripAnimation.StripConfig(LinearLayout.LayoutParams.MATCH_PARENT, dpToPx(18),
new int[]{0xFF8D8CD3, 0xFF8EA3FE, 0xFFA179C6, 0xFFB44F8F, 0xFF946591, 0xFF34A79A /*You can add more colors to infinity according to your need.*/})
.setCornerRadius(dpToPx(4))
.setEnableShadow(true)
.setShadowColor(0x66222327)
.setShadowRadius(dpToPx(1))
.setShadowDx(0)
.setShadowDy(dpToPx(0)));
// Strip 3: The Celestial Dance
configs.add(new GradientStripAnimation.StripConfig(dpToPx(450), dpToPx(18),
new int[]{0xFF34A79A, 0xFF8D8CD3, 0xFF8EA3FE, 0xFFA179C6, 0xFFB44F8F, 0xFF946591 /*You can add more colors to infinity according to your need.*/})
.setCornerRadius(dpToPx(4))
.setEnableShadow(true)
.setShadowColor(0x66222327)
.setShadowRadius(dpToPx(1))
.setShadowDx(0)
.setShadowDy(dpToPx(0)));
//You can add more Strip with the features you want wherever you want.
- Wave your wand (start the animation):
new GradientStripAnimation(context, container)
.setStripConfigs(configs)
.setDuration(5000) // 5 seconds of pure visual ecstasy
.setStripDelay(150) // A tantalizing 150ms delay between strips
.setOnAnimationEndListener(() -> {
// Add your own method here so that when the animation is finished something happens like text appears etc.
}).startAnimation();
Add this method in your activity or class to convert dp to Px
private int dpToPx(int dp) {
float density = context.getResources().getDisplayMetrics().density;
return Math.round((float) dp * density);
}
- π§ Tweak dimensions, colors, and curves to your heart's content
- π΄οΈ Levitate your UI with gravity-defying shadow effects
- π Orchestrate multiple animations for a symphony of motion
- π¦ Transform loading screens from dull to dazzling
- π Blend complementary colors for eye-catching gradients
- π§ͺ Experiment with strip counts - sometimes less is more, sometimes more is MORE!
- π Sync animations with user actions for an interactive wonderland
- π Keep it smooth - balance beauty with performance for the ultimate UX
- Increased user happiness
- Uncontrollable urges to stare at your app for hours
- Sudden realization that static UIs are a thing of the past
- Desire to redesign your entire app (or life) around these animations
Don't just build apps β create experiences. With GradientStripAnimation
, you're not just a developer; you're a digital artist, a maestro of motion, a sorcerer of the screen.
So, are you ready to elevate your UI game and leave the mundane world behind? The power is in your hands. Use it wisely, and watch as your app becomes the talk of the town, the envy of your peers, and the object of your users' undying affection.
Remember: In a world of static, be the motion. In a sea of boring, be the GradientStripAnimation
. πβ¨ #GradientStripAnimation
GradientStripAnimation is developed and maintained by alex11111115.
We welcome contributions from the community! If you have ideas or improvements, feel free to submit pull requests or open issues on the GitHub repository.
GradientStripAnimation is licensed under the Apache License 2.0.
π Ready to transform your Android app from snooze-fest to spectacular? GradientStripAnimation is your ticket to the UI big leagues. Don't just build apps - create experiences that users will rave about! Let's make your app the talk of the Play Store! ππ