Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 892 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 892 Bytes

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