Skip to content

BookLoading

yankai-victor edited this page Oct 5, 2015 · 5 revisions

BookLoading

BookLoading looks like a book.

Supported on API Level 11 and above.

The idea was inspired by this gif in Dribbble.

And the effect is here

Usage

Add BookLoading to your xml.

  <com.victor.loading.book.BookLoading
        android:id="@+id/bookloading"
        android:layout_width="150dp"
        android:layout_height="100dp"/>

When start() is called, the animation will start.

When stop() is called, the animation will stop after the animation is finished.

If you want to change the color, you can edit the color.xml

<resources>
    <color name="book_loading_background">#ffffff</color>
    <color name="book_loading_book">#ff33b5e5</color>
    <color name="book_loading_page">#ffffff</color>
</resources>
Clone this wiki locally