Skip to content

Commit

Permalink
Update version to 1.0.2
Browse files Browse the repository at this point in the history
 - Change stroke width to dimen
 - Add fill color for customization
 - Improve drawing line & arc
  • Loading branch information
hearsilent committed Mar 1, 2017
1 parent ff19cd5 commit bdd7b51
Show file tree
Hide file tree
Showing 11 changed files with 176 additions and 96 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2016, HearSilent
Copyright 2017, HearSilent

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,38 @@ TextView with Round Pogress.

## Screenshot
<img src="https://raw.githubusercontent.com/hearsilent/RoundProgressTextView/master/screenshots/screenrecord.gif" height="500">
<img src="https://raw.githubusercontent.com/hearsilent/RoundProgressTextView/master/screenshots/layout-2016-02-29-172603.png" height="500">
<img src="https://raw.githubusercontent.com/hearsilent/RoundProgressTextView/master/screenshots/screenshot.png" height="500">

# Usage

If you want change progress value programmatically call:
```java
setProgress(int progress)
setProgress(int progress, int duration)
```
Else if you want change progress but not in UI thread, then call:
```java
setProgressNotInUiThread(int progress)
setProgressNotInUiThread(int progress, int duration)
```


# Customization

You can customize to what you want.
```java
```xml
<hearsilent.roundprogresstextview.RoundProgressTextView
android:id="@+id/roundProgressTextView"
android:layout_width="200sp"
android:layout_height="40sp"
android:layout_centerInParent="true"
android:gravity="center"
android:text="HearSilent"
android:textSize="17sp"
app:max="100"
app:progress="35"
app:progress_color="#1e88e5"
app:progress_stoke_width="2.5"
app:stoke_width="1"/>
app:progress_fill_color="#de1e88e5"
app:progress_stoke_width="2.5dp"
app:stoke_width="1dp"/>
```

## Compatibility
Expand All @@ -45,7 +48,7 @@ I'd be really happy if you sent me links to your projects where you use my compo

## License

Copyright 2016, HearSilent
Copyright 2017, HearSilent

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
compileSdkVersion 25
buildToolsVersion "25.0.2"

defaultConfig {
applicationId "hearsilent.roundprogresstextview"
minSdkVersion 11
targetSdkVersion 24
versionCode 1
versionName "1.0.1"
targetSdkVersion 25
versionCode 102
versionName "1.0.2"
}
buildTypes {
release {
Expand All @@ -22,5 +22,5 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.1.1'
compile 'com.android.support:appcompat-v7:25.2.0'
}
Loading

0 comments on commit bdd7b51

Please sign in to comment.