- Author:Carson_Ho
- Summary
a cut & elegance Android DIY View
Github:Kawaii_LoadingView
Prompting the loading progress & easing the mood when the user is waiting for the App loading progress.
- Fresh & concise style
- Adjusting the color could make sense with different App positioning & main color
- Easy to use
- Secondary Programming costs are low
There are two ways to import Library:
-
- For Gradle build.Gradle
dependencies {
compile 'com.carson_ho:Kawaii_LoadingView:1.0.0'
}
-
- For Maven pom.xml
<dependency>
<groupId>com.carson_ho</groupId>
<artifactId>Kawaii_LoadingView</artifactId>
<version>1.0.0</version>
<type>pom</type>
</dependency>
- 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"
/>
// 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();
Carson_Ho - Github:Kawaii_LoadingView_TestDemo
Kawaii_LoadingView is available under the Apache 2.0 license.
Before you open an issue or create a pull request, please read Contributing Guide first.
2017-07-07 v1.0.0 :add start & stop animation
- ID:Carson_Ho
- 简介:CSDN签约作者、简书推荐作者、稀土掘金专栏作者
- E - mail:carson.ho@foxmail.com
- Github:https://github.com/Carson-Ho
- CSDN:http://blog.csdn.net/carson_ho
- 简书:http://www.jianshu.com/u/383970bef0a0
- 稀土掘金:https://juejin.im/user/58d4d9781b69e6006ba65edc