forked from ybq/Android-SpinKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
190 lines (162 loc) · 8.79 KB
/
index.html
File metadata and controls
190 lines (162 loc) · 8.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<title>Android-Spinkit by ybq</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
</head>
<body>
<section class="page-header">
<h1 class="project-name">Android-Spinkit</h1>
<h2 class="project-tagline">Android loading animations</h2>
<a href="https://github.com/ybq/Android-SpinKit" class="btn">View on GitHub</a>
<a href="https://github.com/ybq/Android-SpinKit/zipball/master" class="btn">Download .zip</a>
<a href="https://github.com/ybq/Android-SpinKit/tarball/master" class="btn">Download .tar.gz</a>
</section>
<section class="main-content">
<h1>
<a id="android-spinkit" class="anchor" href="#android-spinkit" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Android-SpinKit</h1>
<blockquote>
<p>Android loading animations(I wrote a android edition according <a href="https://github.com/tobiasahlin/SpinKit">SpinKit</a>)</p>
</blockquote>
<h2>
<a id="preview" class="anchor" href="#preview" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Preview</h2>
<p><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/screen.gif" width="240px" height="240px"></p>
<p><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/screen2.gif" width="200px" height="200px"></p>
<h2>
<a id="gradle-dependency" class="anchor" href="#gradle-dependency" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Gradle Dependency</h2>
<ol>
<li>
<p>Add the JitPack repository to your build file</p>
<div class="highlight highlight-source-groovy-gradle"><pre><span class="pl-en">allprojects</span> {
repositories {
<span class="pl-k">..</span>.
maven { url <span class="pl-s"><span class="pl-pds">"</span>https://jitpack.io<span class="pl-pds">"</span></span> }
}
}</pre></div>
</li>
<li>
<p>Add the dependency</p>
<div class="highlight highlight-source-groovy-gradle"><pre><span class="pl-en">dependencies</span> {
compile <span class="pl-s"><span class="pl-pds">'</span>com.github.ybq:Android-SpinKit:1.0.5<span class="pl-pds">'</span></span>
}</pre></div>
</li>
</ol>
<h2>
<a id="usage" class="anchor" href="#usage" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Usage</h2>
<ul>
<li>
<p>Xml</p>
<div class="highlight highlight-text-xml"><pre><<span class="pl-ent">com</span>.github.ybq.android.spinkit.SpinKitView
<span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">app</span>=<span class="pl-s"><span class="pl-pds">"</span>http://schemas.android.com/apk/res-auto<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/spin_kit<span class="pl-pds">"</span></span>
<span class="pl-e">style</span>=<span class="pl-s"><span class="pl-pds">"</span>@style/SpinKitView.Large.Circle<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_gravity</span>=<span class="pl-s"><span class="pl-pds">"</span>center<span class="pl-pds">"</span></span>
<span class="pl-e">app</span><span class="pl-e">:</span><span class="pl-e">SpinKit_Color</span>=<span class="pl-s"><span class="pl-pds">"</span>@color/colorAccent<span class="pl-pds">"</span></span> /> </pre></div>
</li>
<li>
<p>ProgressBar</p>
<div class="highlight highlight-source-java"><pre><span class="pl-smi">ProgressBar</span> progressBar <span class="pl-k">=</span> (<span class="pl-smi">ProgressBar</span>)findViewById(<span class="pl-smi">R</span><span class="pl-k">.</span>id<span class="pl-k">.</span>progress);
<span class="pl-smi">DoubleBounce</span> doubleBounce <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-smi">DoubleBounce</span>();
progressBar<span class="pl-k">.</span>setIndeterminateDrawable(doubleBounce);</pre></div>
</li>
</ul>
<h2>
<a id="style" class="anchor" href="#style" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Style</h2>
<blockquote>
<div class="highlight highlight-text-xml"><pre>@style/SpinKitView
@style/SpinKitView.Circle
@style/SpinKitView.Large
@style/SpinKitView.Small
@style/SpinKitView.Small.DoubleBounce </pre></div>
</blockquote>
<table>
<thead>
<tr>
<th>Style</th>
<th>Preview</th>
</tr>
</thead>
<tbody>
<tr>
<td>RotatingPlane</td>
<td><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/RotatingPlane.gif" alt="RotatingPlane" width="90px" height="90px"></td>
</tr>
<tr>
<td>DoubleBounce</td>
<td><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/DoubleBounce.gif" alt="DoubleBounce" width="90px" height="90px"></td>
</tr>
<tr>
<td>Wave</td>
<td><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/Wave.gif" alt="Wave" width="90px" height="90px"></td>
</tr>
<tr>
<td>WanderingCubes</td>
<td><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/WanderingCubes.gif" alt="WanderingCubes" width="90px" height="90px"></td>
</tr>
<tr>
<td>Pulse</td>
<td><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/Pulse.gif" alt="Pulse" width="90px" height="90px"></td>
</tr>
<tr>
<td>ChasingDots</td>
<td><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/ChasingDots.gif" alt="ChasingDots" width="90px" height="90px"></td>
</tr>
<tr>
<td>ThreeBounce</td>
<td><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/ThreeBounce.gif" alt="ThreeBounce" width="90px" height="90px"></td>
</tr>
<tr>
<td>Circle</td>
<td><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/Circle.gif" alt="Circle" width="90px" height="90px"></td>
</tr>
<tr>
<td>CubeGrid</td>
<td><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/CubeGrid.gif" alt="CubeGrid" width="90px" height="90px"></td>
</tr>
<tr>
<td>FadingCircle</td>
<td><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/FadingCircle.gif" alt="FadingCircle" width="90px" height="90px"></td>
</tr>
<tr>
<td>FoldingCube</td>
<td><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/FoldingCube.gif" alt="FoldingCube" width="90px" height="90px"></td>
</tr>
<tr>
<td>RotatingCircle</td>
<td><img src="https://raw.githubusercontent.com/ybq/AndroidSpinKit/master/art/RotatingCircle.gif" alt="RotatingCircle" width="90px" height="90px"></td>
</tr>
</tbody>
</table>
<h2>
<a id="acknowledgements" class="anchor" href="#acknowledgements" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Acknowledgements</h2>
<ul>
<li>
<a href="https://github.com/tobiasahlin/SpinKit">SpinKit</a>.</li>
</ul>
<h2>
<a id="license" class="anchor" href="#license" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>LICENSE</h2>
<pre><code> 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.
</code></pre>
<footer class="site-footer">
<span class="site-footer-owner"><a href="https://github.com/ybq/Android-SpinKit">Android-Spinkit</a> is maintained by <a href="https://github.com/ybq">ybq</a>.</span>
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the <a href="https://github.com/jasonlong/cayman-theme">Cayman theme</a> by <a href="https://twitter.com/jasonlong">Jason Long</a>.</span>
</footer>
</section>
</body>
</html>