Don’t know what’s the use of loading pages

The cause of

One day Design picked up a GIF

Github.com/frakbot/Jum…

How to use

It is also very easy to use in XML:

<com.wang.bookloading.widget.BookLoadingView
    android:id="@+id/book_loading_view"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    app:blv_tickColor="@color/light_green500"
    app:blv_tickStrokeWidth="4dp"
    app:blv_lineColor="@color/grey500"
    app:blv_lineStrokeWidth="8dp">

</com.wang.bookloading.widget.BookLoadingView>  
Copy the code

In Java, just:

@OnClick(R.id.show_btn)
public void onMShowBtnClicked() {
    //start loading
    mBookLoadingView.setVisibility(View.VISIBLE, 0);
}

@OnClick(R.id.hide_btn)
public void onMHideBtnClicked() {
    //stop loading
    mBookLoadingView.setVisibility(View.GONE);
}
Copy the code

TODO

  1. Modify the bottom text animation (the existing idea is that a text is a view, and then animate it. But personally it feels stupid. Have a good idea to issue to me. thanks)