Skip to content

Commit 37b8ece

Browse files
committed
Initial commit
0 parents  commit 37b8ece

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1911
-0
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/copyright/profiles_settings.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/dictionaries/tangqi92.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 78 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# WaveLoadingView
2+
3+
[![License](https://img.shields.io/badge/license-Apache%202-green.svg)](https://www.apache.org/licenses/LICENSE-2.0)
4+
5+
**WaveLoadingView** - An Android library providing to realize wave loading effect.
6+
7+
<img src="/screenshots/ss.png" alt="screenshot" title="screenshot" width="450" height="495" />
8+
9+
## Sample
10+
11+
![sample.gif](/screenshots/sample.gif "sample.gif")
12+
13+
14+
15+
## Usage
16+
17+
**For a working implementation of this project see the `sample/` folder.**
18+
19+
### Setp 1
20+
21+
Include the library as local library project or add the dependency in your build.gradle.
22+
23+
```groovy
24+
dependencies {
25+
compile 'me.itangqi.waveloadingview:library:0.1.2'
26+
}
27+
```
28+
### Step 2
29+
30+
Include the WaveLoadingView widget in your layout. And you can customize it like this.
31+
32+
```xml
33+
<me.itangqi.waveloadingview.WaveLoadingView
34+
android:id="@+id/waveLoadingView"
35+
android:layout_width="wrap_content"
36+
android:layout_height="wrap_content"
37+
app:borderWidth="3"
38+
app:borderColor="@color/colorAccent"
39+
app:progressValue="40"
40+
app:shapeType="circle"
41+
app:waveColor="@color/colorAccent"
42+
app:waveAmplitude="50"
43+
app:titleTop="Top Title"
44+
app:titleTopColor="@color/colorPrimaryText"
45+
app:titleTopSize="20"
46+
app:titleCenter="Center Title"
47+
app:titleCenterColor="@color/colorPrimaryText"
48+
app:titleCenterSize="24"
49+
app:titleBottom="Bottom Title"
50+
app:titleBottomColor="@color/colorPrimaryText"
51+
app:titleBottomSize="20"
52+
```
53+
54+
### Step 3
55+
56+
Absolutely,you can write some animation codes to the callbacks such as setOnCheckedChangeListener, onProgressChanged, etc in your Activity.
57+
58+
59+
```java
60+
WaveLoadingView mWaveLoadingView = (WaveLoadingView) findViewById(R.id.waveLoadingView);
61+
mWaveLoadingView.setShapeType(WaveLoadingView.ShapeType.CIRCLE);
62+
mWaveLoadingView.setTopTitle("Top Title");
63+
mWaveLoadingView.setCenterTitleColor(Color.GRAY);
64+
mWaveLoadingView.setBottomTitleSize(18);
65+
mWaveLoadingView.setProgress(80);
66+
mWaveLoadingView.setBorderWidth(10);
67+
mWaveLoadingView.setAmplitudeRatio(60);
68+
mWaveLoadingView.setWaveColor(Color.GRAY);
69+
mWaveLoadingView.setBorderColor(Color.GRAY);
70+
```
71+
72+
## Customization
73+
74+
Do what you what :)
75+
76+
* `app:borderWidth` (integer) Default to be 0
77+
* `app:borderColor` (color)
78+
* `app:progressValue` (integer) Set ProgressValue
79+
* `app:shapeType` (circle/square) Default to be circle
80+
* `app:waveColor` (color)
81+
* `app:waveAmplitude` (integer) Set Wave Amplitude (between 1 and 100)
82+
* `app:titleTopSize` (float)
83+
* `app:titleCenterSize` (float)
84+
* `app:titleBottomSize` (float)
85+
* `app:titleTopColor` (color)
86+
* `app:titleCenterColor` (color)
87+
* `app:titleBottomColor` (color)
88+
* `app:titleTop` (string) default to be ""
89+
* `app:titleCenter` (string)
90+
* `app:titleBottom ` (string)
91+
92+
**All attributes have their respective getters and setters to change them at runtime.**
93+
94+
## Demo
95+
96+
[Download]()
97+
98+
99+
100+
## Community
101+
102+
Looking for contributors, feel free to fork !
103+
104+
Tell me if you're using my library in your application, I'll share it in this README.
105+
106+
107+
108+
## Thanks
109+
110+
Inspired by
111+
112+
- [WaveView](https://github.com/gelitenight/WaveView) created by [gelitenight](https://github.com/gelitenight)
113+
- [CircularFillableLoaders](https://github.com/lopspower/CircularFillableLoaders) created by [lopspower](https://github.com/lopspower)
114+
115+
## Contact Me
116+
117+
Born in 1992, now a student of Southeast University, master of software engineerin. Loving technology, programming, reading and sports.
118+
119+
I will graduate in June 2017, expect the internship or full-time job in Android or iOS.
120+
121+
If you have any questions or want to make friends with me, please feel free to contact me : [imtangqi#gmail.com](mailto:[email protected] "Welcome to contact me")
122+
123+
124+
125+
## License
126+
127+
<pre>
128+
129+
Copyright 2014 Qi Tang
130+
131+
Licensed under the Apache License, Version 2.0 (the "License");
132+
you may not use this file except in compliance with the License.
133+
You may obtain a copy of the License at
134+
135+
http://www.apache.org/licenses/LICENSE-2.0
136+
137+
Unless required by applicable law or agreed to in writing, software
138+
distributed under the License is distributed on an "AS IS" BASIS,
139+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
140+
See the License for the specific language governing permissions and
141+
limitations under the License.
142+
143+
</pre>

build.gradle

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
3+
buildscript {
4+
repositories {
5+
jcenter()
6+
}
7+
dependencies {
8+
classpath 'com.android.tools.build:gradle:2.0.0-alpha2'
9+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.1'
10+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
11+
// NOTE: Do not place your application dependencies here; they belong
12+
// in the individual module build.gradle files
13+
}
14+
}
15+
16+
allprojects {
17+
repositories {
18+
jcenter()
19+
}
20+
}
21+
22+
task clean(type: Delete) {
23+
delete rootProject.buildDir
24+
}

0 commit comments

Comments
 (0)