Skip to content

Latest commit

 

History

History
145 lines (93 loc) · 4 KB

README-en.md

File metadata and controls

145 lines (93 loc) · 4 KB

Kawaii_LoadingView

点击查看中文文档

  • Author:Carson_Ho
  • Summary

示意图

1. Introduction

a cut & elegance Android DIY View

Github:Kawaii_LoadingView

示意图

2. Application Scenarios

Prompting the loading progress & easing the mood when the user is waiting for the App loading progress.

3. Feature

  • Fresh & concise style
  • Adjusting the color could make sense with different App positioning & main color

示意图

  • Easy to use
  • Secondary Programming costs are low

4. Usage

Step 1:Import Library

There are two ways to import Library:

    1. For Gradle build.Gradle
dependencies {
    compile 'com.carson_ho:Kawaii_LoadingView:1.0.0'
}
    1. For Maven pom.xml
<dependency>
  <groupId>com.carson_ho</groupId>
  <artifactId>Kawaii_LoadingView</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>
Step 2:Set Animation Attributes
  • Attributes Description:

示意图

  • Specific settings

示意图

  • Use examples

activity_main.xml

<scut.carson_ho.kawaii_loadingview.Kawaii_LoadingView

            android:id="@+id/Kawaii_LoadingView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"

            android:background="#FFCCFF" 
            app:blockColor="#ffffff" 

            app:lineNumber="3"
            app:fixBlock_Angle="5"
            app:moveBlock_Angle="20"

            app:blockInterval="8dp"
            app:half_BlockWidth="15dp"
            app:initPosition="0"

            app:isClock_Wise="false"
            app:moveSpeed="500"
            app:move_Interpolator="@android:anim/bounce_interpolator"

            />
Step 3:API Usage
    // 1. Defines the view variable
    private Kawaii_LoadingView Kawaii_LoadingView;

    // 2. Bind the view  variable
    Kawaii_LoadingView = (Kawaii_LoadingView) findViewById(R.id.Kawaii_LoadingView);
        
    // 3. Use animation(API description)
       // 3.1 start animation
       Kawaii_LoadingView.startMoving();
       // 3.2  stop animation
       Kawaii_LoadingView.stopMoving();

5. Complete Demo

Carson_Ho - Github:Kawaii_LoadingView_TestDemo

最终示意图.gif

6. Source code analysis

click here to see

7. LICENSE

Kawaii_LoadingView is available under the Apache 2.0 license.

8. Contribute

Before you open an issue or create a pull request, please read Contributing Guide first.

9. Release

2017-07-07 v1.0.0 :add start & stop animation

About the author