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
- Host: GitHub
- URL: https://github.com/waynell/dropanimationview
- Owner: waynell
- Created: 2015-11-16T07:12:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-12-12T02:40:29.000Z (over 8 years ago)
- Last Synced: 2025-03-25T11:11:28.025Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 1.41 MB
- Stars: 48
- Watchers: 3
- Forks: 19
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DropAnimationView
---
Using Android Property Animation to implement the animation of leaves falling.
# Demo
---

# 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.