Convert Figma logo to code with AI

tyrantgit logoExplosionField

explosive dust effect for views

3,599
578
3,599
23

Top Related Projects

Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your development.

2,277

A Particle System for standard Android UI: http://plattysoft.github.io/Leonids/

Cute view animation collection.

2,710

Configurable animations based on points

5,436

A Java library that models spring dynamics and adds real world physics to your app.

A beautiful ripple animation for your app

Quick Overview

ExplosionField is an Android library that creates an explosion animation effect for views. It allows developers to add a visually appealing particle explosion animation to UI elements, enhancing the user experience when removing or transitioning views.

Pros

  • Easy to implement with minimal code
  • Customizable explosion parameters (e.g., particle size, duration)
  • Smooth and visually appealing animations
  • Lightweight library with minimal impact on app performance

Cons

  • Limited to Android platform
  • May not be suitable for all types of applications or design styles
  • Lacks advanced features like custom particle shapes or complex explosion patterns
  • Not actively maintained (last update was several years ago)

Code Examples

  1. Basic explosion effect:
ExplosionField explosionField = ExplosionField.attach2Window(this);
explosionField.explode(view);
  1. Customizing explosion parameters:
ExplosionField explosionField = ExplosionField.attach2Window(this);
explosionField.setParticleSize(10);
explosionField.setDuration(1500);
explosionField.explode(view);
  1. Exploding multiple views:
ExplosionField explosionField = ExplosionField.attach2Window(this);
explosionField.explode(view1);
explosionField.explode(view2);
explosionField.explode(view3);

Getting Started

To use ExplosionField in your Android project:

  1. Add the JitPack repository to your root build.gradle file:
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
  1. Add the dependency to your app's build.gradle file:
dependencies {
    implementation 'com.github.tyrantgit:ExplosionField:1.0.1'
}
  1. In your activity or fragment, create an ExplosionField and use it to explode views:
ExplosionField explosionField = ExplosionField.attach2Window(this);
explosionField.explode(viewToExplode);

Competitor Comparisons

Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your development.

Pros of bubbles-for-android

  • More versatile, allowing for creation of floating bubble views
  • Supports drag-and-drop functionality for bubbles
  • Provides a more interactive user experience

Cons of bubbles-for-android

  • More complex implementation compared to ExplosionField
  • Limited to creating bubble-like views, less suitable for general particle effects
  • May require more system resources due to its interactive nature

Code Comparison

ExplosionField:

ExplosionField explosionField = ExplosionField.attach2Window(this);
explosionField.explode(view);

bubbles-for-android:

BubbleLayout bubbleView = (BubbleLayout)LayoutInflater.from(MainActivity.this).inflate(R.layout.bubble_layout, null);
bubblesManager.addBubble(bubbleView, 60, 20);

ExplosionField focuses on creating a particle explosion effect for views, while bubbles-for-android is designed to create interactive floating bubble views. ExplosionField's implementation is simpler and more straightforward, requiring fewer lines of code to achieve its effect. On the other hand, bubbles-for-android offers more customization options and interactivity, but requires more setup and configuration.

Both libraries serve different purposes and can enhance the visual appeal and user experience of Android applications in their own unique ways.

2,277

A Particle System for standard Android UI: http://plattysoft.github.io/Leonids/

Pros of Leonids

  • More versatile particle system with customizable particle shapes, colors, and behaviors
  • Supports both one-shot and continuous particle emitters
  • Includes built-in animations like acceleration, rotation, and scale

Cons of Leonids

  • Slightly more complex API, requiring more setup code
  • May have higher performance overhead for complex particle systems
  • Limited to particle-based animations, less suitable for view explosion effects

Code Comparison

ExplosionField:

ExplosionField explosionField = ExplosionField.attach2Window(this);
explosionField.explode(view);

Leonids:

new ParticleSystem(this, 80, R.drawable.star_pink, 10000)
    .setSpeedRange(0.1f, 0.25f)
    .oneShot(anchor, 100);

Summary

ExplosionField focuses on creating explosion-like animations for views, while Leonids offers a more general-purpose particle system. ExplosionField is simpler to use for specific explosion effects, but Leonids provides greater flexibility for various particle-based animations. The choice between the two depends on the specific animation requirements of your project and the desired level of customization.

Cute view animation collection.

Pros of AndroidViewAnimations

  • Offers a wide variety of pre-built animations for Android views
  • Provides an easy-to-use API for chaining multiple animations
  • Supports a larger number of view types and animation styles

Cons of AndroidViewAnimations

  • May have a larger footprint due to the extensive animation library
  • Requires more setup and configuration for complex animations
  • Less focused on a specific effect, potentially overwhelming for simple use cases

Code Comparison

ExplosionField:

ExplosionField explosionField = ExplosionField.attach2Window(this);
explosionField.explode(view);

AndroidViewAnimations:

YoYo.with(Techniques.Tada)
    .duration(700)
    .repeat(5)
    .playOn(findViewById(R.id.button));

Summary

ExplosionField focuses on a single, unique animation effect (explosion), while AndroidViewAnimations provides a comprehensive set of animations for various Android views. ExplosionField is simpler to implement for its specific use case, but AndroidViewAnimations offers more flexibility and options for general animation needs. The choice between the two depends on the project requirements and the desired level of animation complexity.

2,710

Configurable animations based on points

Pros of Grav

  • More versatile animation effects, allowing for gravity-based particle animations
  • Customizable particle properties (size, color, shape)
  • Supports both 2D and 3D animations

Cons of Grav

  • More complex implementation compared to ExplosionField
  • Potentially higher performance overhead due to advanced physics calculations
  • Steeper learning curve for developers

Code Comparison

ExplosionField:

ExplosionField explosionField = ExplosionField.attach2Window(this);
explosionField.explode(view);

Grav:

GravView gravView = new GravView(this);
gravView.setParticleSystem(new ParticleSystem());
gravView.start();

Both libraries offer unique animation effects for Android applications. ExplosionField focuses on a specific explosion-like animation, making it simpler to implement but less flexible. Grav, on the other hand, provides a more comprehensive particle system with gravity-based animations, offering greater customization options at the cost of increased complexity.

ExplosionField is ideal for developers seeking a quick and easy way to add explosion animations to their apps. Grav is better suited for those who need more control over particle animations and are willing to invest time in learning its more advanced features.

Ultimately, the choice between these libraries depends on the specific requirements of your project and the level of customization you need for your animations.

5,436

A Java library that models spring dynamics and adds real world physics to your app.

Pros of Rebound

  • More comprehensive animation library with a wider range of features
  • Better documentation and examples for developers
  • Actively maintained with regular updates and improvements

Cons of Rebound

  • Steeper learning curve due to more complex API
  • Larger library size, which may impact app performance
  • Primarily focused on spring animations, limiting versatility for certain effects

Code Comparison

ExplosionField:

ExplosionField explosionField = ExplosionField.attach2Window(this);
explosionField.explode(view);

Rebound:

Spring spring = springSystem.createSpring();
spring.addListener(new SimpleSpringListener() {
    @Override
    public void onSpringUpdate(Spring spring) {
        float value = (float) spring.getCurrentValue();
        view.setScaleX(value);
        view.setScaleY(value);
    }
});
spring.setEndValue(1);

ExplosionField offers a simpler API for creating explosion animations, while Rebound provides more control over spring-based animations but requires more setup code.

Both libraries serve different purposes: ExplosionField focuses on particle explosion effects, while Rebound is a general-purpose spring animation system. Developers should choose based on their specific animation needs and desired level of control.

A beautiful ripple animation for your app

Pros of android-ripple-background

  • Provides a customizable ripple animation effect for backgrounds
  • Offers more control over animation parameters like color, duration, and scale
  • Suitable for creating engaging, interactive UI elements

Cons of android-ripple-background

  • Limited to ripple animations, less versatile than ExplosionField
  • May require more setup and configuration for complex effects
  • Potentially higher performance impact for multiple simultaneous animations

Code Comparison

android-ripple-background:

RippleBackground rippleBackground = (RippleBackground)findViewById(R.id.content);
rippleBackground.startRippleAnimation();

ExplosionField:

ExplosionField explosionField = ExplosionField.attach2Window(this);
explosionField.explode(view);

android-ripple-background focuses on creating ripple animations for backgrounds, while ExplosionField provides a particle explosion effect for views. The code snippets show that android-ripple-background requires initializing a RippleBackground object and calling the animation method, whereas ExplosionField attaches to a window and can be applied to any view.

Both libraries offer unique visual effects, but ExplosionField provides a more dramatic and versatile animation that can be applied to various UI elements. android-ripple-background is better suited for subtle, continuous background animations.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

ExplosionField

Android Arsenal

explosive dust effect for views

explosionfield.gif

Getting started

In your build.gradle:

 dependencies {
   compile 'tyrantgit:explosionfield:1.0.1'
 }
ExplosionField explosionField = ...;
explosionField.explode(view);

License

Copyright 2015 tyrantgit

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.