Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 782 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 782 Bytes

DxLoadingView

Android loading view

image

#Useage

layout:

 <com.dx.dxloadingview.DxLoadingView
        android:id="@+id/loading_view"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        app:loadingColor="@color/colorPrimary"
        app:animationDuration="2400"
        app:loadingViewSize="large"
        />

animationDuration: duration of animation play once

#start animation:

DxLoadingView loadingView = (DxLoadingView) findViewById(R.id.loading_view);
loadingView.startAnimation();

#cancel animation:

loadingView.cancelAnimation();



idea from:https://www.uplabs.com/posts/liquid-motion-marketing