转载

Android-SpinKit:Android 加载动画库

Android-SpinKit

Android loading animations(I wrote a android edition accordingSpinKit)

Preview

Android-SpinKit:Android 加载动画库

Android-SpinKit:Android 加载动画库

Gradle Dependency

  1. Add the JitPack repository to your build file

    allprojects {             repositories {                 ...                 maven { url "https://jitpack.io" }             } }
  2. Add the dependency

    dependencies { compile 'com.github.ybq:Android-SpinKit:1.0.4' }

Usage

  • Xml

    <com.github.ybq.android.spinkit.SpinKitView  xmlns:app="http://schemas.android.com/apk/res-auto"  android:id="@+id/spin_kit"  style="@style/SpinKitView.Large.Circle"  android:layout_width="wrap_content"  android:layout_height="wrap_content"  android:layout_gravity="center"  app:SpinKit_Color="@color/colorAccent" />
  • ProgressBar

    ProgressBar progressBar = (ProgressBar)findViewById(R.id.progress); DoubleBounce doubleBounce = new DoubleBounce(); progressBar.setIndeterminateDrawable(doubleBounce);

Style

@style/SpinKitView @style/SpinKitView.Circle @style/SpinKitView.Large @style/SpinKitView.Small @style/SpinKitView.Small.DoubleBounce
Style Preview
RotatingPlane Android-SpinKit:Android 加载动画库
DoubleBounce Android-SpinKit:Android 加载动画库
Wave Android-SpinKit:Android 加载动画库
WanderingCubes Android-SpinKit:Android 加载动画库
Pulse Android-SpinKit:Android 加载动画库
ChasingDots Android-SpinKit:Android 加载动画库
ThreeBounce Android-SpinKit:Android 加载动画库
Circle Android-SpinKit:Android 加载动画库
CubeGrid Android-SpinKit:Android 加载动画库
FadingCircle Android-SpinKit:Android 加载动画库
FoldingCube Android-SpinKit:Android 加载动画库
RotatingCircle Android-SpinKit:Android 加载动画库

Thanks

  • SpinKit .

LICENSE

 Copyright ybq 2016  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at      http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
原文  https://github.com/ybq/Android-SpinKit
正文到此结束
Loading...