Skip to content

🌈 GradientStripAnimation: Unleash the Power of Hypnotic UI Magic! πŸš€

License

Notifications You must be signed in to change notification settings

alex11111115/GradientStripAnimation

StandWithPalestine

ReadMeSupportPalestine

🌈✨ GradientStripAnimation: Revolutionize Your Android UI! πŸš€πŸ”₯

API GitHub top language

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! πŸ€―πŸ’–

GradientStripAnimation Demo

πŸš€ Features That Will Blow Your Mind

  • 🌊 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

πŸ’₯ Why GradientStripAnimation Will Change Your Life

  1. πŸ”₯ Skyrocket User Engagement: Watch those retention rates soar!
  2. πŸ¦„ Stand Out from the Crowd: Leave boring apps in the dust
  3. 🎨 Unleash Your Inner Artist: Create UI masterpieces effortlessly
  4. πŸš€ Boost Performance: Smooth animations without the lag

🎬 See the Magic in Action

πŸ•°οΈ Perfect Timing, Every Time

Watch GradientStripAnimation dance to your app's rhythm:

screen-.-.mp4

✨ Shimmer Like a Superstar

Upgrade your loading screens from meh to marvelous:

screen-.-.mp4

πŸ“Έ Feast Your Eyes on These Beauties

Prepare to be mesmerized:

Mind-Blowing Design 1 Stunning Visual 2 UI Magic 3

πŸ› οΈ Installation: Let's Get This Party Started!

🎡 Gradle Groove

  1. Drop this beat in your root build.gradle:
dependencyResolutionManagement {
	repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
	repositories {
		mavenCentral()
        //...
		maven { url 'https://jitpack.io' }
	}
}
  1. Now, spice up your app build.gradle:
dependencies {
    implementation 'com.github.alex11111115:GradientStripAnimation:1.2'
}

πŸš€ Usage: Time to Create Some Magic!

🌟 Basic Spell Casting

  1. 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);
        
        
    }
}
  1. 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.
 
  1. 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();

Step 4: Very important function

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);
}

πŸ§™β€β™‚οΈ Advanced Sorcery

  • πŸ”§ 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

πŸ† Pro Tips for UI Wizards

  1. 🌈 Blend complementary colors for eye-catching gradients
  2. πŸ§ͺ Experiment with strip counts - sometimes less is more, sometimes more is MORE!
  3. πŸ”„ Sync animations with user actions for an interactive wonderland
  4. πŸš€ Keep it smooth - balance beauty with performance for the ultimate UX

🚨 Warning: Side Effects May Include

  • 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

🌟 Conclusion: Embrace the Future of UI

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

Credits

GradientStripAnimation is developed and maintained by alex11111115.

Contribution

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.

License

GradientStripAnimation is licensed under the Apache License 2.0. GitHub license

StandWithPalestine StandWithPalestineBadgeBordered


πŸš€ 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! πŸŒŸπŸŽ‰

More Info

Total Downloads

Total Downloads

Repo Size

Repo Size

Code Size

Code Size

Last Commit

Last Commit

Latest Release

Latest Release

Project Status

Project Status