-
Notifications
You must be signed in to change notification settings - Fork 204
NewtonCradleLoading
Midhilaj edited this page Mar 18, 2017
·
12 revisions
And the effect is here
Add NewtonCradleLoading to your xml.
<com.victor.loading.newton.NewtonCradleLoading
android:id="@+id/newton_cradle_loading"
android:layout_width="wrap_content"
android:layout_height="150dp"/>
When start() is called, the animation will start.
When stop() is called, the animation will stop.
example Java code
NewtonCradleLoading newtonCradleLoading=(NewtonCradleLoading)findViewById(R.id.newton_cradle_loading); newtonCradleLoading.start(); newtonCradleLoading.setLoadingColor(R.color.colorPrimary);
Wow!