This is a Simple Android Implementation of Newton Cradle.
Design Inspired from Cradle - Material Up!
- Change Number of Spheres.
- Change Number of Moving Spheres.
Copy CircleIndicator.java to the project.
In Layout xml,
<com.scriptedpapers.CradleLoader
android:id="@+id/cradleLoader"
android:layout_width="match_parent"
android:layout_height="match_parent" />
In View,
cradleLoader.startAnimation(ballCount, movingBallCount);
- Basic Implementation.
- Change Number of Spheres.
- Change Number of Moving Spheres.
- Sphere Animation.