tyrantgit / explosionfield Goto Github PK
View Code? Open in Web Editor NEWexplosive dust effect for views
explosive dust effect for views
I am trying to use this with a library which I being developer by me. But the explosion is not working file. Only the Button is disappearing.
I have tried copying the Java classes directly but the idea was of no use.
Will this library work within another library? If not is there any way I can make it work? Also is there any other library or resource available which can help me achieve this beautiful explosion effect?
Any help will be really appreciated.
RT
public static ExplosionField attach2Window(Activity activity) {
ViewGroup rootView = (ViewGroup) activity.findViewById(Window.ID_ANDROID_CONTENT);
ExplosionField explosionField = new ExplosionField(activity);
rootView.addView(explosionField, new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
return explosionField;
}
public static ExplosionField attach2WindowViewGroup(ViewGroup viewGroup,Context context) {
ExplosionField explosionField = new ExplosionField(context);
viewGroup.addView(explosionField, new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
return explosionField;
}
can reference from jcenter in Android Studio ?
Really helpful library, but issue is that I am trying this function but there is no luck to bring that view back to original state. I want to explode the view then it should return back to original state after a specific time. Any solution ?
Right now explostion is going to down wards how can i do it will go up side any one help me on this?
You can add this to the library for it to work with dialog:
public static ExplosionField attach2Window(ViewGroup rootView, Activity activity) { ExplosionField explosionField = new ExplosionField(activity); rootView.addView(explosionField, new ViewGroup.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); return explosionField; }
Error is in below line.
mExplosionField = ExplosionField.attach2Window(this);
addListener(findViewById(R.id.root));
Hi, in landscape orientation i got problem that explosion starts not from the senter of View. It starts from Point X: ~leftEdge, Y: ~center of View. How it can be fixed?
cants create object ExplosionField
if the explosionfield is attached to callingActivity and if I try to explode a view on alertdialog, it crashes.
I want to edit the source files of this project ( ExplosionField.java , ExplosionAnimation.java , Utils.java ) for my personal use
( non-commercial ). I want to make the particles fall down instead of explode upwards and I know how to do it , can I do it
You'r missing the most important:animation listener,which shall be there as the explode() argument so i will know when the animation has ended and do basics about it,plus the clear() method does not work at all,i reckon it is because i have no clue when the animation is going to end,so the clear just invalidates itself without getting and clearing the animation at all,please take a look at the code
ExplosionField Always on top
Using with ImageView, can't get any particles.
Hi tyrantgit
My name is Farid. I'm a developer with great interest in making open source contributions to popular projects.
My company - DevFactory - is sponsoring me to improve unit test coverage in open source projects.
I have analyzed ExplosionField and observed that there is room for improvement of coverage. The results indicate that the project has:
Coverage: 0%, Total Lines: 87
If you are interested in having us work towards improving the project’s coverage to 80%, please let me know and we will add it to our pipeline. Our first step will be to create a pull request with a sample. Once you approve it, we'll follow up with one or two more pull requests. Our target is to increase code coverage to above 80 percent.
For an example of our work, please see these Pull Requests accepted by the community:
I'm looking forward to your confirmation.
Thank you,
Mohd Farid
Open Source Code Coverage Team
DevFactory
I want to show the clicked image after some time,can you please guide me.
when click the view quick or double,it is also working (当快速点击或双击,依然触发,我认为需要处理)
After the item in the recyclerview is deleted, the position of the item is shifted due to the jitter of the deleted animation.
It would be great if you can add an option to set the number of particles we want, or at least something like PARTICLES_LOW, PARTICLES_MEDIUM, PARTICLES_DEFAULT, PARTICLES_HIGH and so on.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.