File tree 3 files changed +26
-8
lines changed
3 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,16 @@ An Android EditText with automatic currency formatting.
6
6
7
7
## Releases:
8
8
9
- #### Current release: 1.0.0 .
9
+ #### Current release: 1.0.1 .
10
10
11
11
You can see all the library releases [ here] ( https://github.com/marcoscgdev/CurrencyEditText/releases ) .
12
12
13
13
---
14
14
15
15
## Screenshots
16
- <kbd ><img src =" https://raw.githubusercontent.com/marcoscgdev/CurrencyEditText/master/Screenshot_1617663066.png " width =" 350 " ></kbd >  ;  ;  ;  ; <kbd ><img src =" https://raw.githubusercontent.com/marcoscgdev/CurrencyEditText/master/Screenshot_1617663115.png " width =" 350 " ></kbd >
16
+ <kbd ><img src =" https://raw.githubusercontent.com/marcoscgdev/CurrencyEditText/master/Screenshot_1617663066.png " width =" 250 " ></kbd >  ;  ;  ;  ; <kbd ><img src =" https://raw.githubusercontent.com/marcoscgdev/CurrencyEditText/master/Screenshot_1617663115.png " width =" 250 " ></kbd >
17
17
18
- Download the sample apk [ here] ( https://github.com/marcoscgdev/CurrencyEditText/releases/download/1.0.0 /app-debug.apk ) .
18
+ Download the sample apk [ here] ( https://github.com/marcoscgdev/CurrencyEditText/releases/download/1.0.1 /app-debug.apk ) .
19
19
20
20
---
21
21
@@ -37,7 +37,7 @@ allprojects {
37
37
Now add the dependency to your app build.gradle file:
38
38
39
39
``` groovy
40
- implementation 'com.github.marcoscgdev:CurrencyEditText:1.0.0 '
40
+ implementation 'com.github.marcoscgdev:CurrencyEditText:1.0.1 '
41
41
```
42
42
43
43
### Using the widget
@@ -55,6 +55,18 @@ implementation 'com.github.marcoscgdev:CurrencyEditText:1.0.0'
55
55
val value = currencyEditText.getNumericValue()
56
56
```
57
57
58
+ ### Using a custom locale
59
+
60
+ ``` kotlin
61
+ currencyEditText.setLocale(Locale .UK )
62
+ ```
63
+
64
+ ### Setting max number length
65
+
66
+ ``` kotlin
67
+ currencyEditText.setMaxLength(6 )
68
+ ```
69
+
58
70
---
59
71
> See the * sample project* to clarify any queries you may have.
60
72
Original file line number Diff line number Diff line change @@ -11,24 +11,28 @@ android {
11
11
applicationId " com.marcoscg.currencyedittextsample"
12
12
minSdkVersion 21
13
13
targetSdkVersion 30
14
- versionCode 1
15
- versionName " 1.0"
14
+ versionCode 2
15
+ versionName " 1.0.1 "
16
16
17
17
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
18
18
}
19
+
19
20
buildFeatures {
20
21
viewBinding true
21
22
}
23
+
22
24
buildTypes {
23
25
release {
24
26
minifyEnabled false
25
27
proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
26
28
}
27
29
}
30
+
28
31
compileOptions {
29
32
sourceCompatibility JavaVersion . VERSION_1_8
30
33
targetCompatibility JavaVersion . VERSION_1_8
31
34
}
35
+
32
36
kotlinOptions {
33
37
jvmTarget = ' 1.8'
34
38
}
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ android {
10
10
defaultConfig {
11
11
minSdkVersion 21
12
12
targetSdkVersion 30
13
- versionCode 1
14
- versionName " 1.0"
13
+ versionCode 2
14
+ versionName " 1.0.1 "
15
15
16
16
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
17
17
consumerProguardFiles " consumer-rules.pro"
@@ -23,10 +23,12 @@ android {
23
23
proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
24
24
}
25
25
}
26
+
26
27
compileOptions {
27
28
sourceCompatibility JavaVersion . VERSION_1_8
28
29
targetCompatibility JavaVersion . VERSION_1_8
29
30
}
31
+
30
32
kotlinOptions {
31
33
jvmTarget = ' 1.8'
32
34
}
You can’t perform that action at this time.
0 commit comments