An open API service indexing awesome lists of open source software.

https://github.com/waynell/dropanimationview

Imitating the animation of falling leaves
https://github.com/waynell/dropanimationview

Last synced: 10 months ago
JSON representation

Imitating the animation of falling leaves

Awesome Lists containing this project

README

          

# DropAnimationView
---

Using Android Property Animation to implement the animation of leaves falling.

# Demo
---
![preview_drop_animation](preview_drop_animation.gif)

# Gradle dedependency
compile 'com.waynell.library:drop-animation-view:1.0'

# Usage
---
First, add following code into your layout xml

Second, find this view and set drawables id

DropAnimationView view = (DropAnimationView) findViewById(R.id.drop_animation_view);
view.setDrawables(R.drawable.leaf_1,
R.drawable.leaf_2,
R.drawable.leaf_3,
R.drawable.leaf_4,
R.drawable.leaf_5,
R.drawable.leaf_6);

finally, call startAnimation() begin doing animation.