Skip to content

Commit

Permalink
Version 0.0.7
Browse files Browse the repository at this point in the history
* Added api 10 compatibility
* Fixed bug in ProgressGenerator class
  • Loading branch information
dmytrodanylyk committed May 25, 2014
1 parent 88ee29c commit 8f27378
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 26 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
## 0.0.7
* Added api 10 compatibility
* Fixed bug in ProgressGenerator class

## 0.0.6
Bug fixes

## 0.0.5
* Fixed repository name type from `android-process-buton` to `android-process-button`
* Fixed repository name type from `android-process-buton` to `android-process-button`

## 0.0.4
**Attributes**
Expand All @@ -14,7 +21,7 @@ Added attribute to control button corner roundness:
* `cornerRadius`


**ProcessButton**
**ProcessButton**

Now button state depends on progress:

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Android Buttons With Built-in Progress Meters.

Latest version **0.0.6**
Latest version **0.0.7**

![](screenshots/sample1_small1.gif)
![](screenshots/sample1_small2.gif)
Expand All @@ -19,7 +19,7 @@ The lib is available on Maven Central, you can find it with [Gradle, please]

```
dependencies {
compile 'com.github.dmytrodanylyk.android-process-button:library:0.0.6'
compile 'com.github.dmytrodanylyk.android-process-button:library:0.0.7'
}
```

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

VERSION_NAME=0.0.6
VERSION_CODE=6
VERSION_NAME=0.0.7
VERSION_CODE=7
GROUP=com.github.dmytrodanylyk.android-process-button

POM_DESCRIPTION=Android button which can indicate progress.
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ android {
buildToolsVersion "19.0.3"

defaultConfig {
minSdkVersion 14
minSdkVersion 10
targetSdkVersion 19
versionCode Integer.parseInt(project.VERSION_CODE)
versionName project.VERSION_NAME
Expand All @@ -30,4 +30,4 @@ dependencies {
}

// Used to push in maven
apply from: '../maven_push.gradle'
apply from: '../maven_push.gradle'
10 changes: 5 additions & 5 deletions library/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="blue_pressed">@android:color/holo_blue_dark</color>
<color name="blue_normal">@android:color/holo_blue_light</color>
<color name="green_complete">@android:color/holo_green_light</color>
<color name="purple_progress">@android:color/holo_purple</color>
<color name="red_error">@android:color/holo_red_light</color>
<color name="blue_pressed">#ff0099cc</color>
<color name="blue_normal">#ff33b5e5</color>
<color name="green_complete">#ff99cc00</color>
<color name="purple_progress">#ffaa66cc</color>
<color name="red_error">#ffff4444</color>
</resources>
4 changes: 2 additions & 2 deletions maven_push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ afterEvaluate { project ->
pom.artifactId = POM_ARTIFACT_ID

repository(url: sonatypeRepositoryUrl) {
authentication(userName: nexusUsername, password: nexusPassword)
//authentication(userName: nexusUsername, password: nexusPassword)
}

pom.project {
Expand Down Expand Up @@ -79,4 +79,4 @@ afterEvaluate { project ->
archives androidSourcesJar
archives androidJavadocsJar
}
}
}
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ android {
buildToolsVersion '19.0.3'

defaultConfig {
minSdkVersion 14
minSdkVersion 10
targetSdkVersion 19
versionCode Integer.parseInt(project.VERSION_CODE)
versionName project.VERSION_NAME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void start(final ProcessButton button) {
public void run() {
mProgress += 10;
button.setProgress(mProgress);
if (mProgress <= 110) {
if (mProgress < 100) {
handler.postDelayed(this, generateDelay());
} else {
mListener.onComplete();
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/layout/ac_message.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<com.dd.processbutton.iml.SubmitProcessButton
android:id="@+id/btnSend"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="48dp"
android:minWidth="100dp"
android:text="@string/Send"
android:textColor="@android:color/white"
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/layout/ac_sign_in.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<com.dd.processbutton.iml.ActionProcessButton
android:id="@+id/btnSignIn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="48dp"
android:layout_marginBottom="16dp"
android:text="@string/Sign_in"
android:textColor="@android:color/white"
Expand Down
12 changes: 6 additions & 6 deletions sample/src/main/res/layout/ac_states.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<com.dd.processbutton.iml.SubmitProcessButton
android:id="@+id/btnSubmit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:text="@string/Upload"
android:textColor="@android:color/white"
Expand All @@ -31,7 +31,7 @@
<com.dd.processbutton.iml.GenerateProcessButton
android:id="@+id/btnGenerate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:text="@string/Upload"
android:textColor="@android:color/white"
Expand All @@ -43,28 +43,28 @@
<Button
android:id="@+id/btnProgressError"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:text="Error State setProgress(-1)" />

<Button
android:id="@+id/btnProgressNormal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="8dp"
android:text="Normal State setProgress(0)" />

<Button
android:id="@+id/btnProgressLoading"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="8dp"
android:text="Progress State setProgress(50)" />

<Button
android:id="@+id/btnProgressComplete"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="48dp"
android:layout_marginTop="8dp"
android:text="Complete State setProgress(100)" />

Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/layout/ac_upload.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<com.dd.processbutton.iml.GenerateProcessButton
android:id="@+id/btnUpload"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="48dp"
android:text="@string/Upload"
android:textColor="@android:color/white"
android:textSize="18sp"
Expand Down

0 comments on commit 8f27378

Please sign in to comment.