Import BezierLoadingView via Gradle
masterTo use BezierLoadingView in your Android project, add the following dependency to your build.gradle file:
dependencies {
compile 'me.wangyuwei:LoadingiVew:1.0.5'
}repository·master·Indexed 21 days ago
https://github.com/jeasonwong/bezierloadingviewAn Android library providing a custom loading view with Bezier curves and smooth circular motion animations. Supports customization of external and internal radii, animation duration, and start and end colors via XML attributes.
To use BezierLoadingView in your Android project, add the following dependency to your build.gradle file:
dependencies {
compile 'me.wangyuwei:LoadingiVew:1.0.5'
}Add the me.wangyuwei.loadingview.LoadingView component to your XML layout file. Ensure you have defined the lv namespace (usually xmlns:lv="http://schemas.android.com/apk/res-auto") to use the custom attributes.
<me.wangyuwei.loadingview.LoadingView
android:id="@+id/loading_view"
android:layout_width="match_parent"
android:layout_height="350dp"
lv:lv_duration="10"
lv:lv_start_color="#688fdb"
lv:lv_end_color="#fff"
lv:lv_internal_radius="5dp"
lv:lv_external_radius="92dp"/>You can customize the appearance and animation of the LoadingView using the following XML attributes:
| Attribute | Format | Description |
|---|---|---|
lv_external_radius | dimension | Set the external circle radius |
lv_internal_radius | dimension | Set the internal circle radius |
lv_duration | integer | Set the animation duration |
lv_start_color | color | Set the start color |
lv_end_color | color | Set the end color |