@@ -25,7 +25,7 @@ allprojects {
25
25
```
26
26
``` groovy
27
27
dependencies {
28
- compile 'com.github.HITGIF:TextFieldBoxes:-SNAPSHOT '
28
+ compile 'com.github.HITGIF:TextFieldBoxes:v1.0.0 '
29
29
}
30
30
```
31
31
@@ -42,7 +42,7 @@ dependencies {
42
42
<dependency >
43
43
<groupId >com.github.HITGIF</groupId >
44
44
<artifactId >TextFieldBoxes</artifactId >
45
- <version >-SNAPSHOT </version >
45
+ <version >v1.0.0 </version >
46
46
</dependency >
47
47
```
48
48
@@ -51,7 +51,7 @@ dependencies {
51
51
resolvers += " jitpack" at " https://jitpack.io"
52
52
```
53
53
``` scala
54
- libraryDependencies += " com.github.HITGIF" % " TextFieldBoxes" % " -SNAPSHOT "
54
+ libraryDependencies += " com.github.HITGIF" % " TextFieldBoxes" % " v1.0.0 "
55
55
```
56
56
57
57
@@ -60,7 +60,7 @@ libraryDependencies += "com.github.HITGIF" % "TextFieldBoxes" % "-SNAPSHOT"
60
60
: repositories [[" jitpack" " https://jitpack.io" ]]
61
61
```
62
62
``` scala
63
- : dependencies [[com.github.hitgif/ textfieldboxes " -SNAPSHOT " ]]
63
+ : dependencies [[com.github.hitgif/ textfieldboxes " v1.0.0 " ]]
64
64
```
65
65
66
66
@@ -167,7 +167,7 @@ app:helperTextColor="#795548" <!--Brown-->
167
167
168
168
#### 8. Customize EditText
169
169
170
- If you want to customize the ` EditText ` in the ` TextFieldBoxes ` (which is a inherited ` FrameLayout ` that contains a ` EditText ` for input), use the ` getEditText() ` methond in Java and do whatever you like (e.g. ` setOnKeyListener() ` , ` addTextChangedListener ` )
170
+ If you want to customize the ` EditText ` in the ` TextFieldBoxes ` (which is a inherited ` FrameLayout ` that contains a ` EditText ` for input), use the ` getEditText() ` methond in Java and do whatever you like (e.g. ` setOnKeyListener() ` , ` addTextChangedListener() ` )
171
171
172
172
``` java
173
173
final TextFieldBoxes textFieldBoxes = findViewById(R . id. text_field_boxes);
@@ -193,33 +193,46 @@ textFieldBoxes.getEditText().addTextChangedListener(new TextWatcher() {
193
193
![ ] ( /images/edittext.gif )
194
194
195
195
196
- ## Documentation
197
- ### All Attributes
196
+ ## All Attributes
198
197
199
- ` app:enabled ` Whether the text field is enabled. ` True ` by default.
198
+ #### Texts
200
199
201
200
` app:text ` EditText text.
202
201
203
202
` app:hint ` Hint text at the top.
204
203
205
204
` app:helperText ` Helper text at the bottom.
206
205
207
- ` app:singleLine ` Whether the EditText is single-lined. ` False ` by default.
206
+ #### Colors
208
207
209
- ` app:maxLines ` The number of maximum lines allowed in the text field. ` Integer.MAX_VALUE ` by default.
208
+ ` app:helperTextColor ` Helper text color.
209
+
210
+ ` app:errorColor ` The color that is used to indicate error (e.g. exceeding max characters, ` setError() ` ).
211
+
212
+ ` app:primaryColor ` The color for the underline and the hint text. Current theme ` Primary Color ` by default.
213
+
214
+ #### Characters counter
210
215
211
216
` app:maxCharacters ` Max characters count limit. ` 0 ` means no limit. ` 0 ` by default.
212
217
213
218
` app:minCharacters ` Min characters count limit. ` 0 ` means no limit. ` 0 ` by default.
214
219
215
- ` app:helperTextColor ` Helper text color.
220
+ #### Others
216
221
217
- ` app:errorColor ` The color that is used to indicate error (e.g. exceeding max characters, ` setError() ` ) .
222
+ ` app:enabled ` Whether the text field is enabled. ` True ` by default .
218
223
219
- ` app:primaryColor ` The color for the underline and the hint text. Current theme ` Primary Color ` by default.
224
+ ` app:singleLine ` Whether the EditText is single-lined. ` False ` by default.
225
+
226
+ ` app:maxLines ` The number of maximum lines allowed in the text field. ` Integer.MAX_VALUE ` by default.
220
227
221
228
` app:hasFocus ` Whether the EditText is having the focus. ` False ` by default.
222
229
230
+
231
+ ## Todo List
232
+ - Prefix & Suffix
233
+ - Icon signifier
234
+ - Dark theme
235
+
223
236
224
237
## License
225
238
0 commit comments