BezierLoadingView

repository·master·Indexed 21 days ago

https://github.com/jeasonwong/bezierloadingview

An 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.

Tokens
389
Snippets
2
Records
3
Agent score
24%

What's inside BezierLoadingView

  1. Use BezierLoadingView in XML layout

    master

    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"/>
  2. Configure BezierLoadingView attributes

    master

    You can customize the appearance and animation of the LoadingView using the following XML attributes:

    AttributeFormatDescription
    lv_external_radiusdimensionSet the external circle radius
    lv_internal_radiusdimensionSet the internal circle radius
    lv_durationintegerSet the animation duration
    lv_start_colorcolorSet the start color
    lv_end_colorcolorSet the end color