Skip to content

Commit

Permalink
[Feature] Update GitHub username.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed May 16, 2019
1 parent 26a3f2b commit 2b39099
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Material Design `ProgressBar` with consistent appearance on Android 4.0+.

<a href="https://play.google.com/store/apps/details?id=me.zhanghai.android.materialprogressbar.sample" target="_blank"><img alt="Google Play" height="90" src="https://play.google.com/intl/en_US/badges/images/generic/en_badge_web_generic.png"/></a>

[Sample APK](//github.com/DreaminginCodeZH/MaterialProgressBar/releases/download/v1.6.1/sample-release.apk)
[Sample APK](//github.com/zhanghai/MaterialProgressBar/releases/download/v1.6.1/sample-release.apk)

Android 4.4.4

Expand Down Expand Up @@ -74,7 +74,7 @@ Available custom attributes:

8 tint-related attributes such as `app:mpb_progressTint` and `app:mpb_progressTintMode` are also supported so that they can control the tinting of progress drawables. The default tint color is `?colorControlActivated`, and the default tint mode is `src_in`.

For a detailed example, you can refer to the [sample app's layout](//github.com/DreaminginCodeZH/MaterialProgressBar/blob/master/sample/src/main/res/layout/main_activity.xml), where you can find examples such as removing progress padding or background.
For a detailed example, you can refer to the [sample app's layout](//github.com/zhanghai/MaterialProgressBar/blob/master/sample/src/main/res/layout/main_activity.xml), where you can find examples such as removing progress padding or background.

### Using Drawable

Expand Down Expand Up @@ -108,9 +108,9 @@ Don't forget to create and set the drawable as above.

You can also customize the behavior of these drawables by calling `setShowBackground()` and `setUseIntrinsicPadding()`. Tint-related methods `setTint()`, `setTintList()` and `setTintMode()` are also backported so that you can use them directly, but remember to take these drawables as their actual type or `TintableDrawable` because VM won't be able to find these methods on `Drawable` for legacy platforms.

If you want to support API level < 18, you'll need to workaround a canvas limitation as in [here](https://github.com/DreaminginCodeZH/MaterialProgressBar/blob/0eee874b6fbd109eda2be01b7887647e589dcd9d/library/src/main/java/me/zhanghai/android/materialprogressbar/MaterialProgressBar.java#L122); Using `MaterialProgressBar` does this automatically.
If you want to support API level < 18, you'll need to workaround a canvas limitation as in [here](https://github.com/zhanghai/MaterialProgressBar/blob/0eee874b6fbd109eda2be01b7887647e589dcd9d/library/src/main/java/me/zhanghai/android/materialprogressbar/MaterialProgressBar.java#L122); Using `MaterialProgressBar` does this automatically.

For a detailed example, you can refer to the `onCreate()` method of the old sample's [`MainActivity`](//github.com/DreaminginCodeZH/MaterialProgressBar/blob/7529ea854a04207fcbf768aa574110e49c511867/sample/src/main/java/me/zhanghai/android/materialprogressbar/sample/MainActivity.java) and its layout [main_activity.xml](//github.com/DreaminginCodeZH/MaterialProgressBar/blob/7529ea854a04207fcbf768aa574110e49c511867/sample/src/main/res/layout/main_activity.xml).
For a detailed example, you can refer to the `onCreate()` method of the old sample's [`MainActivity`](//github.com/zhanghai/MaterialProgressBar/blob/7529ea854a04207fcbf768aa574110e49c511867/sample/src/main/java/me/zhanghai/android/materialprogressbar/sample/MainActivity.java) and its layout [main_activity.xml](//github.com/zhanghai/MaterialProgressBar/blob/7529ea854a04207fcbf768aa574110e49c511867/sample/src/main/res/layout/main_activity.xml).

## ProGuard

Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ VERSION_CODE=19
GROUP=me.zhanghai.android.materialprogressbar

POM_DESCRIPTION=A Material Design ProgressBar with consistent appearance
POM_URL=https://github.com/DreaminginCodeZH/MaterialProgressBar
POM_SCM_URL=https://github.com/DreaminginCodeZH/MaterialProgressBar
POM_SCM_CONNECTION=scm:[email protected]:DreaminginCodeZH/MaterialProgressBar.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:DreaminginCodeZH/MaterialProgressBar.git
POM_URL=https://github.com/zhanghai/MaterialProgressBar
POM_SCM_URL=https://github.com/zhanghai/MaterialProgressBar
POM_SCM_CONNECTION=scm:[email protected]:zhanghai/MaterialProgressBar.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:zhanghai/MaterialProgressBar.git
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
<string name="about_name">MaterialProgressBar</string>
<string name="about_version_format">Version %1$s</string>
<string name="about_credit">Zhang Hai 2015–2016</string>
<string name="about_github"><a href="https://github.com/DreaminginCodeZH/MaterialProgressBar">View on GitHub</a></string>
<string name="about_github"><a href="https://github.com/zhanghai/MaterialProgressBar">View on GitHub</a></string>
</resources>

0 comments on commit 2b39099

Please sign in to comment.