Skip to content

maheswaranapk/Android-Cradle

Repository files navigation

Android-Cradle

This is a Simple Android Implementation of Newton Cradle.

Design Inspired from Cradle - Material Up!

Features

  • Change Number of Spheres.
  • Change Number of Moving Spheres.

How To use

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);

Task

  • Basic Implementation.
  • Change Number of Spheres.
  • Change Number of Moving Spheres.
  • Sphere Animation.

Output

alt tag

About

This is a Simple Android Implementation of Newton Cradle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages