Skip to content

Xamarin.Android UI Library port that provides an explosive dust effect for android views.

License

Notifications You must be signed in to change notification settings

JoeTomkinson/Xama.JTPorts.ExplosionView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xama.JTPorts.ExplosionView

platform API License: MIT

Namespace: Xama.JTPorts.ExplosionView

Xamarin.Android UI Library port that provides an explosive dust effect for android views.

This is a ported build, converted from Java to C# for use with the Xamarin MonoFramework. Quite a bit needed to be reworked on this one to get it to work correctly in Xamarin.Android and there's some things that still need to be implemented to allow this library to function with quality of life functionality.


!gif

How to Install

NuGetIcon

Simply add the NuGet package directly to your Xamarin.Android solution, or use one of the following:

Package Manager:

Install-Package Xama.JTPorts.ExplosionView -Version 1.0.0

.NET CLI:

dotnet add package Xama.JTPorts.ExplosionView --version 1.0.0

Basic Usage

Create whatever controls you want to explode inside of your AXML layout as you would do any other view. In the backing class add the following code

Using Xama.JTPorts.ExplosionField;

// This creates the explosion view used to display the particals at the root of the content display.
// This is expecting an activity ideally, so this would be a little different if used inside of a fragment, so bear that in mind.
ExplosionField explosionField = new ExplosionField(this);

// Tells the view to start animating the explosion animation
explosionField.explode(view);

// Could be hooked up to an on click event of your control if you wish.
view.Click += (s,e) =>
{
    explosionField.Explode(view);
}

Support 💎

If you want to support the work that I do and you find any of these libraries useful? Consider supporting it by joining stargazers for this repository. 🔭 🌠


or alternatively if you want to you can also buy me a coffee.

Buy Me A Coffee

You know, only if you want to.

About

Xamarin.Android UI Library port that provides an explosive dust effect for android views.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages