# AndroidSpinKit **Repository Path**: android_ios_test/AndroidSpinKit ## Basic Information - **Project Name**: AndroidSpinKit - **Description**: Android loading animations - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-01 - **Last Updated**: 2025-01-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AndroidSpinKit ##### Android 加载动画(参照[SpinKit](https://github.com/tobiasahlin/SpinKit)写了个android版本) ## 效果 ## Gradle 依赖 1.在项目根目录的build.gradle添加 ```gradle allprojects { repositories { ... maven { url "https://jitpack.io" } } } ``` 2.添加依赖 ``` gradle dependencies { compile 'com.github.ybq:AndroidSpinKit:v1.0.0' } ``` ## 使用 ```xml ``` ```xml @style/SpinKitView @style/SpinKitView.Circle @style/SpinKitView.Large @style/SpinKitView.Small @style/SpinKitView.Small.DoubleBounce ``` ####ProgressBar ```java ProgressBar progressBar = (ProgressBar)findViewById(R.id.progress); DoubleBounce doubleBounce = new DoubleBounce(); progressBar.setIndeterminateDrawable(doubleBounce); ``` ###样式: 样式 | 预览 ------------ | ------------- RotatingPlane | RotatingPlane DoubleBounce | DoubleBounce Wave | Wave WanderingCubes | WanderingCubes Pulse | Pulse ChasingDots | ChasingDots ThreeBounce | ThreeBounce Circle | Circle CubeGrid | CubeGrid FadingCircle | FadingCircle FoldingCube | FoldingCube ##感谢 - [SpinKit](https://github.com/tobiasahlin/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.