Skip to content

Commit 8f27378

Browse files
committed
Version 0.0.7
* Added api 10 compatibility * Fixed bug in ProgressGenerator class
1 parent 88ee29c commit 8f27378

File tree

12 files changed

+33
-26
lines changed

12 files changed

+33
-26
lines changed

CHANGELOG.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
## 0.0.7
2+
* Added api 10 compatibility
3+
* Fixed bug in ProgressGenerator class
4+
5+
## 0.0.6
6+
Bug fixes
7+
18
## 0.0.5
2-
* Fixed repository name type from `android-process-buton` to `android-process-button`
9+
* Fixed repository name type from `android-process-buton` to `android-process-button`
310

411
## 0.0.4
512
**Attributes**
@@ -14,7 +21,7 @@ Added attribute to control button corner roundness:
1421
* `cornerRadius`
1522

1623

17-
**ProcessButton**
24+
**ProcessButton**
1825

1926
Now button state depends on progress:
2027

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Android Buttons With Built-in Progress Meters.
44

5-
Latest version **0.0.6**
5+
Latest version **0.0.7**
66

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

2020
```
2121
dependencies {
22-
compile 'com.github.dmytrodanylyk.android-process-button:library:0.0.6'
22+
compile 'com.github.dmytrodanylyk.android-process-button:library:0.0.7'
2323
}
2424
```
2525

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
1919

20-
VERSION_NAME=0.0.6
21-
VERSION_CODE=6
20+
VERSION_NAME=0.0.7
21+
VERSION_CODE=7
2222
GROUP=com.github.dmytrodanylyk.android-process-button
2323

2424
POM_DESCRIPTION=Android button which can indicate progress.

library/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ android {
1818
buildToolsVersion "19.0.3"
1919

2020
defaultConfig {
21-
minSdkVersion 14
21+
minSdkVersion 10
2222
targetSdkVersion 19
2323
versionCode Integer.parseInt(project.VERSION_CODE)
2424
versionName project.VERSION_NAME
@@ -30,4 +30,4 @@ dependencies {
3030
}
3131

3232
// Used to push in maven
33-
apply from: '../maven_push.gradle'
33+
apply from: '../maven_push.gradle'
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<color name="blue_pressed">@android:color/holo_blue_dark</color>
4-
<color name="blue_normal">@android:color/holo_blue_light</color>
5-
<color name="green_complete">@android:color/holo_green_light</color>
6-
<color name="purple_progress">@android:color/holo_purple</color>
7-
<color name="red_error">@android:color/holo_red_light</color>
3+
<color name="blue_pressed">#ff0099cc</color>
4+
<color name="blue_normal">#ff33b5e5</color>
5+
<color name="green_complete">#ff99cc00</color>
6+
<color name="purple_progress">#ffaa66cc</color>
7+
<color name="red_error">#ffff4444</color>
88
</resources>

maven_push.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ afterEvaluate { project ->
1919
pom.artifactId = POM_ARTIFACT_ID
2020

2121
repository(url: sonatypeRepositoryUrl) {
22-
authentication(userName: nexusUsername, password: nexusPassword)
22+
//authentication(userName: nexusUsername, password: nexusPassword)
2323
}
2424

2525
pom.project {
@@ -79,4 +79,4 @@ afterEvaluate { project ->
7979
archives androidSourcesJar
8080
archives androidJavadocsJar
8181
}
82-
}
82+
}

sample/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ android {
1717
buildToolsVersion '19.0.3'
1818

1919
defaultConfig {
20-
minSdkVersion 14
20+
minSdkVersion 10
2121
targetSdkVersion 19
2222
versionCode Integer.parseInt(project.VERSION_CODE)
2323
versionName project.VERSION_NAME

sample/src/main/java/com/dd/sample/utils/ProgressGenerator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void start(final ProcessButton button) {
2727
public void run() {
2828
mProgress += 10;
2929
button.setProgress(mProgress);
30-
if (mProgress <= 110) {
30+
if (mProgress < 100) {
3131
handler.postDelayed(this, generateDelay());
3232
} else {
3333
mListener.onComplete();

sample/src/main/res/layout/ac_message.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<com.dd.processbutton.iml.SubmitProcessButton
1818
android:id="@+id/btnSend"
1919
android:layout_width="wrap_content"
20-
android:layout_height="wrap_content"
20+
android:layout_height="48dp"
2121
android:minWidth="100dp"
2222
android:text="@string/Send"
2323
android:textColor="@android:color/white"

sample/src/main/res/layout/ac_sign_in.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<com.dd.processbutton.iml.ActionProcessButton
3131
android:id="@+id/btnSignIn"
3232
android:layout_width="match_parent"
33-
android:layout_height="wrap_content"
33+
android:layout_height="48dp"
3434
android:layout_marginBottom="16dp"
3535
android:text="@string/Sign_in"
3636
android:textColor="@android:color/white"

sample/src/main/res/layout/ac_states.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<com.dd.processbutton.iml.SubmitProcessButton
2020
android:id="@+id/btnSubmit"
2121
android:layout_width="match_parent"
22-
android:layout_height="wrap_content"
22+
android:layout_height="48dp"
2323
android:layout_marginTop="16dp"
2424
android:text="@string/Upload"
2525
android:textColor="@android:color/white"
@@ -31,7 +31,7 @@
3131
<com.dd.processbutton.iml.GenerateProcessButton
3232
android:id="@+id/btnGenerate"
3333
android:layout_width="match_parent"
34-
android:layout_height="wrap_content"
34+
android:layout_height="48dp"
3535
android:layout_marginTop="16dp"
3636
android:text="@string/Upload"
3737
android:textColor="@android:color/white"
@@ -43,28 +43,28 @@
4343
<Button
4444
android:id="@+id/btnProgressError"
4545
android:layout_width="match_parent"
46-
android:layout_height="wrap_content"
46+
android:layout_height="48dp"
4747
android:layout_marginTop="16dp"
4848
android:text="Error State setProgress(-1)" />
4949

5050
<Button
5151
android:id="@+id/btnProgressNormal"
5252
android:layout_width="match_parent"
53-
android:layout_height="wrap_content"
53+
android:layout_height="48dp"
5454
android:layout_marginTop="8dp"
5555
android:text="Normal State setProgress(0)" />
5656

5757
<Button
5858
android:id="@+id/btnProgressLoading"
5959
android:layout_width="match_parent"
60-
android:layout_height="wrap_content"
60+
android:layout_height="48dp"
6161
android:layout_marginTop="8dp"
6262
android:text="Progress State setProgress(50)" />
6363

6464
<Button
6565
android:id="@+id/btnProgressComplete"
6666
android:layout_width="match_parent"
67-
android:layout_height="wrap_content"
67+
android:layout_height="48dp"
6868
android:layout_marginTop="8dp"
6969
android:text="Complete State setProgress(100)" />
7070

sample/src/main/res/layout/ac_upload.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<com.dd.processbutton.iml.GenerateProcessButton
1919
android:id="@+id/btnUpload"
2020
android:layout_width="match_parent"
21-
android:layout_height="wrap_content"
21+
android:layout_height="48dp"
2222
android:text="@string/Upload"
2323
android:textColor="@android:color/white"
2424
android:textSize="18sp"

0 commit comments

Comments
 (0)