Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation effect like below? #16

Closed
achinverma opened this issue Feb 27, 2015 · 3 comments
Closed

Animation effect like below? #16

achinverma opened this issue Feb 27, 2015 · 3 comments

Comments

@achinverma
Copy link

I want to create a animation with some dots and they are falling from top to bottom. For that I am using a translate animation which moves the dots images from top to bottom. But I want this to be continuous meaning the animation should repeat itself.

I have to create a animation with some dots and they are falling from top to bottom i will post gif animation file , which is my requirement , please anyone guide me how to create this one?
it starts with FadeIn animation it is running fine in my code and then the dots moving in continuous Motion from TOP TO BOTTOM as in gif i have posted it is not working in my code i have created 14 Linearlayouts they contains 7 texviews Horizontally with VISIBILITY.GONE in Oncreate i am changing its VISIBILITY to VISIBLE and starting FADE IN animation and i will post my code , please anyone guide me?
splash gif
http://stackoverflow.com/questions/28762408/android-how-to-create-rain-like-animtion

@plattysoft
Copy link
Owner

This does not look like a particle system to me, but more like a parallax.

This is extremely regular and periodic. All the items of the image are using the same direction, speed and size. That makes it not a good fit for a particle system.

@achinverma
Copy link
Author

do you have any example for this, because i have created this with TranslationAnimation but it is not repeating.? i have posted my code on stack , you can check it

@plattysoft
Copy link
Owner

You should look for a parallax implementation, otherwise you'd need to do it yourself inside the onDraw method.

It is not hard to do, but it is a very particular case that I think you'd have to implement it yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants