Skip to content

Commit 06b631e

Browse files
committed
Release v1.0.14
- Improve touch event - Remove duplicate arrow on Android version 4.1 - Improve error text display - Disable default select for spinner no hint - Allow current selected item to re-selectable - Refactor margin to padding for arrow dimension - Update position of item start from 0 for item and -1 for hint - Add clearSelection() method to clear selection - Improvement for update style at one place - Improve single error display speed base on text size and length
1 parent 8ef62e5 commit 06b631e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The best Android spinner library for your android application with more customiz
117117

118118
```gradle
119119
dependencies {
120-
implementation 'com.github.chivorns:smartmaterialspinner:1.0.13'
120+
implementation 'com.github.chivorns:smartmaterialspinner:1.0.14'
121121
}
122122
```
123123

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ allprojects {
3232
options.addBooleanOption('Xdoclint:none', true)
3333
}
3434

35-
gradle.projectsEvaluated {
35+
/*gradle.projectsEvaluated {
3636
tasks.withType(JavaCompile) {
3737
options.compilerArgs << "-Xlint:deprecation"
3838
options.compilerArgs << "-Xlint:unchecked"
3939
}
40-
}
40+
}*/
4141
}
4242

4343
task clean(type: Delete) {

smartmaterialspinner/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ext {
55
LIBRARY_NAME = 'SmartMaterialSpinner'
66
PUBLISH_GROUP_ID = 'com.github.chivorns'
77
PUBLISH_ARTIFACT_ID = LIBRARY_NAME.toLowerCase()
8-
PUBLISH_VERSION = '1.0.13'
8+
PUBLISH_VERSION = '1.0.14'
99

1010
// Bintray
1111
BINTRAY_REPO = 'maven'
@@ -32,7 +32,7 @@ android {
3232
defaultConfig {
3333
minSdkVersion 14
3434
targetSdkVersion 28
35-
versionCode 13
35+
versionCode 14
3636
versionName "$PUBLISH_VERSION"
3737

3838
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

smartmaterialspinner/src/main/java/com/chivorn/smartmaterialspinner/SmartMaterialSpinner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ private void startErrorScrollingAnimator() {
448448
errorLabelAnimator = ObjectAnimator.ofInt(this, "errorLabelPosX", 0, textWidth + getWidth() / 2);
449449
errorLabelAnimator.setStartDelay(1000);
450450
errorLabelAnimator.setInterpolator(new LinearInterpolator());
451-
errorLabelAnimator.setDuration(500 * errorText.length() - errorText.length());
451+
errorLabelAnimator.setDuration((long) (230 * errorText.length() + errorTextSize * 100));
452452
errorLabelAnimator.addUpdateListener(this);
453453
errorLabelAnimator.setRepeatCount(ValueAnimator.INFINITE);
454454
} else {

0 commit comments

Comments
 (0)