Skip to content

Commit 3258087

Browse files
committed
Update to v0.3.1
1 parent 0911723 commit 3258087

4 files changed

Lines changed: 33 additions & 24 deletions

File tree

.idea/.name

Lines changed: 0 additions & 1 deletion
This file was deleted.

.idea/gradle.xml

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

README.md

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ Include the library as a local library project or add the dependency in your bui
2121

2222
```groovy
2323
dependencies {
24-
compile 'me.itangqi.waveloadingview:library:0.3.0'
25-
// I have uploaded v0.3.0 on 2016-06-07, if it doesn't take effect or your
26-
// gradle cannot find it in maven central, you may try v0.2.3.
24+
compile 'me.itangqi.waveloadingview:library:0.3.1'
25+
// I have uploaded v0.3.1 on 2016-07-23, if it doesn't take effect or your
26+
// gradle cannot find it in maven central, you may try v0.3.0.
2727
}
2828
```
2929
Or
@@ -45,8 +45,10 @@ Include the WaveLoadingView widget in your layout. And you can customize it like
4545
app:wlv_shapeType="circle"
4646
app:wlv_round_rectangle="true"
4747
app:wlv_triangle_direction="north"
48+
app:wlv_titleCenterStrokeColor="@android:color/holo_blue_dark"
49+
app:wlv_titleCenterStrokeWidth="3dp"
4850
app:wlv_titleCenter="Center Title"
49-
app:wlv_titleCenterColor="@color/colorPrimaryText"
51+
app:wlv_titleCenterColor="@android:color/white"
5052
app:wlv_titleCenterSize="24sp"
5153
app:wlv_waveAmplitude="70"
5254
app:wlv_waveColor="@color/colorAccent"/>
@@ -58,16 +60,18 @@ You can write some animation codes to the callbacks such as setOnCheckedChangeLi
5860

5961

6062
```java
61-
WaveLoadingView mWaveLoadingView = (WaveLoadingView) findViewById(R.id.waveLoadingView);
62-
mWaveLoadingView.setShapeType(WaveLoadingView.ShapeType.CIRCLE);
63-
mWaveLoadingView.setTopTitle("Top Title");
64-
mWaveLoadingView.setCenterTitleColor(Color.GRAY);
65-
mWaveLoadingView.setBottomTitleSize(18);
66-
mWaveLoadingView.setProgressValue(80);
67-
mWaveLoadingView.setBorderWidth(10);
68-
mWaveLoadingView.setAmplitudeRatio(60);
69-
mWaveLoadingView.setWaveColor(Color.GRAY);
70-
mWaveLoadingView.setBorderColor(Color.GRAY);
63+
WaveLoadingView mWaveLoadingView = (WaveLoadingView) findViewById(R.id.waveLoadingView);
64+
mWaveLoadingView.setShapeType(WaveLoadingView.ShapeType.CIRCLE);
65+
mWaveLoadingView.setTopTitle("Top Title");
66+
mWaveLoadingView.setCenterTitleColor(Color.GRAY);
67+
mWaveLoadingView.setBottomTitleSize(18);
68+
mWaveLoadingView.setProgressValue(80);
69+
mWaveLoadingView.setBorderWidth(10);
70+
mWaveLoadingView.setAmplitudeRatio(60);
71+
mWaveLoadingView.setWaveColor(Color.GRAY);
72+
mWaveLoadingView.setBorderColor(Color.GRAY);
73+
mWaveLoadingView.setTopTitleStrokeColor(Color.BLUE);
74+
mWaveLoadingView.setTopTitleStrokeWidth(3);
7175
```
7276

7377
## Customization
@@ -93,14 +97,26 @@ Please feel free to :)
9397
| wlv_titleBottomSize | dimension | Bottom size, default is 18
9498
| wlv_titleTopColor | color | Top title color
9599
| wlv_titleCenterColor | color | Center title color
96-
| wlv_titleBottomColor | color | Bottom title color
100+
| wlv_titleBottomColor | color | Bottom title color
101+
| wlv_titleTopStrokeColor | color | Top title stroke color
102+
| wlv_titleCenterStrokeColor | color | Center title stroke color
103+
| wlv_titleBottomStrokeColor | color | Bottom title stroke color
104+
| wlv_titleTopStrokeWidth | dimension | Top title stroke width
105+
| wlv_titleCenterStrokeWidth | dimension | Center title stroke width
106+
| wlv_titleBottomStrokeWidth | dimension | Bottom title stroke width
97107

98108

99109
**All attributes have their respective getters and setters to change them at runtime.**
100110

101111

102112
## Change Log
103113

114+
### 0.3.1(2016-07-23)
115+
116+
#### Update:
117+
118+
- Added stroke feature to all titles. Strokes are disabled by default. [by shayanzoro](https://github.com/shayanzoro)
119+
104120
### 0.3.0 (2016-06-07)
105121

106122
#### Fixed bugs:

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven'
33
apply plugin: 'com.jfrog.bintray'
44

55
// This is the library version used when deploying the artifact.
6-
version = "0.3.0"
6+
version = "0.3.1"
77

88
android {
99
compileSdkVersion 23

0 commit comments

Comments
 (0)