You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add `com.kinda.mtextfield.TextFieldBoxes` that contains a `com.kinda.mtextfield.ExtendedEditText` to your layout:
52
+
Add `com.developer.kinda.TextFieldBoxes` that contains a `com.developer.kinda.ExtendedEditText` to your layout:
52
53
53
54
```xml
54
55
...
55
-
<com.kinda.mtextfield.TextFieldBoxes
56
+
<com.developer.kinda.TextFieldBoxes
56
57
android:id="@+id/text_field_boxes"
57
58
android:layout_width="match_parent"
58
59
android:layout_height="wrap_content"
59
60
app:labelText="Label">
60
61
61
-
<com.kinda.mtextfield.ExtendedEditText
62
+
<com.developer.kinda.ExtendedEditText
62
63
android:id="@+id/extended_edit_text"
63
64
android:layout_width="wrap_content"
64
65
android:layout_height="wrap_content"/>
65
66
66
-
</com.kinda.mtextfield.TextFieldBoxes>
67
+
</com.developer.kinda.TextFieldBoxes>
67
68
...
68
69
```
69
70
@@ -72,7 +73,7 @@ Add `com.kinda.mtextfield.TextFieldBoxes` that contains a `com.kinda.mtextfield.
72
73
`app:enabled` in xml or `setEnabled(boolean enabled)` in Java.
73
74
74
75
```xml
75
-
<com.kinda.mtextfield.TextFieldBoxes
76
+
<com.developer.kinda.TextFieldBoxes
76
77
...
77
78
app:enabled="false"
78
79
>
@@ -85,7 +86,7 @@ _**NOTE:** setting helper or error text to anything **not empty** will make the
85
86
helper text: `app:helperText` in xml or `setHelperText(String helperText)` in Java.
86
87
87
88
```xml
88
-
<com.kinda.mtextfield.TextFieldBoxes
89
+
<com.developer.kinda.TextFieldBoxes
89
90
...
90
91
app:helperText="Helper is here"
91
92
>
@@ -110,14 +111,14 @@ Use `app:prefix` in xml or `setPrefix(String prefix)` in Java to set the unselec
110
111
Use `app:suffix` in xml or `setSuffix(String suffix)` in Java to set the unselectable suffix text at the end of the field.
111
112
112
113
```xml
113
-
<com.kinda.mtextfield.ExtendedEditText
114
+
<com.developer.kinda.ExtendedEditText
114
115
...
115
116
app:prefix="$ "
116
117
>
117
118
```
118
119
119
120
```xml
120
-
<com.kinda.mtextfield.ExtendedEditText
121
+
<com.developer.kinda.ExtendedEditText
121
122
...
122
123
app:suffix="\@gmail.com"
123
124
>
@@ -136,15 +137,15 @@ The color of the bottom line will turn to `errorColor` (red by default) when exc
136
137
*NOTE: Space and line feed will NOT count.*
137
138
138
139
```xml
139
-
<com.kinda.mtextfield.TextFieldBoxes
140
+
<com.developer.kinda.TextFieldBoxes
140
141
...
141
142
app:maxCharacters="10"
142
143
app:minCharacters="5"
143
144
>
144
145
```
145
146
146
147
```xml
147
-
<com.kinda.mtextfield.TextFieldBoxes
148
+
<com.developer.kinda.TextFieldBoxes
148
149
...
149
150
app:maxCharacters="5"
150
151
>
@@ -158,7 +159,7 @@ You can use `setIsResponsiveIconColor(boolean isrResponsiveIconColor)` in Java c
158
159
_**NOTE that if `true`, the icon's color will always be `HighlightColor` (the same as the bottomLine) that will turn gray when losing focus. If `false`, the icon will always be in `primaryColor`.**_
@@ -169,7 +170,7 @@ _**NOTE that if `true`, the icon's color will always be `HighlightColor` (the sa
169
170
Use `app:endIcon` in xml or `setEndIcon(Int resourceID)` to set the icon of the ImageButton that is shown at the end of the field if you want there to be one.
170
171
171
172
```xml
172
-
<com.kinda.mtextfield.TextFieldBoxes
173
+
<com.developer.kinda.TextFieldBoxes
173
174
...
174
175
app:endIcon="@drawable/ic_mic_black_24dp"
175
176
>
@@ -194,7 +195,7 @@ Use `app:hasClearButton` in xml or `setHasClearButton(boolean hasClearButton)` t
194
195
If `true`, a clear button will be shown at the end when there are characters (**ANY** character) entered in the field.
195
196
196
197
```xml
197
-
<com.kinda.mtextfield.TextFieldBoxes
198
+
<com.developer.kinda.TextFieldBoxes
198
199
...
199
200
app:hasClearButton="true"
200
201
>
@@ -208,16 +209,16 @@ If `true`, a clear button will be shown at the end when there are characters (**
208
209
209
210
*Error Color* will be used for the color that indicates error (e.g. exceeding max characters, `setError()`). You can use `app:errorColor` in xml or `setErrorColor(int colorRes)` in Java. `A400 red` by default.
210
211
211
-
*Helper Text Color* will be used for the color of the helper text. You can use `app:helperTextColor` in xml or `setHelperTextColor(int colorRes)` in Java. `54% black` by default.
212
+
*Helper Text Color* will be used for the color of the helper text. You can use `app:textHelperColor` in xml or `setHelperTextColor(int colorRes)` in Java. `54% black` by default.
212
213
213
214
*Panel Background Color* will be used for the color of panel at the back. You can use `app:panelBackgroundColor` in xml or `setPanelBackgroundColor(int colorRes)` in Java. `6% black` by default. *NOTE that the default color, as in the guideline, is the black (`#000000`) color with the transparency of 6%, so when you're customizing and want it to still be transparent you have to set a color with transparency.*
214
215
215
216
```xml
216
-
<com.kinda.mtextfield.TextFieldBoxes
217
+
<com.developer.kinda.TextFieldBoxes
217
218
...
218
219
app:primaryColor="#1B5E20"
219
220
app:errorColor="#ddaa00"
220
-
app:helperTextColor="#795548"
221
+
app:textHelperColor="#795548"
221
222
app:panelBackgroundColor="#ffe8e8"
222
223
>
223
224
```
@@ -232,7 +233,7 @@ If `true`, a clear button will be shown at the end when there are characters (**
232
233
233
234
then set this as the theme for your TextFieldBoxes:
234
235
```xml
235
-
<com.kinda.mtextfield.TextFieldBoxes
236
+
<com.kinda.developer.TextFieldBoxes
236
237
...
237
238
android:theme="@style/TextFieldBoxes"
238
239
>
@@ -245,7 +246,7 @@ You can make the layout compact by using a dense verticle spacing to improve use
245
246
Use `app:useDenseSpacing` in xml or `setUseDenseSpacing(boolean useDenseSpacing)` to set whether the field uses a dense spacing between its elements.
246
247
247
248
```xml
248
-
<com.kinda.mtextfield.TextFieldBoxes
249
+
<com.kinda.developer.TextFieldBoxes
249
250
...
250
251
app:useDenseSpacing="true"
251
252
>
@@ -258,7 +259,7 @@ Sometimes you may want the label and the hint to show different messages, but ne
258
259
Use `app:alwaysShowHint` in xml or `setAlwaysShowHint(boolean alwaysShowHint)` to set whether the label is fixed at top when there's a hint in the EditText.
259
260
260
261
```xml
261
-
<com.kinda.mtextfield.TextFieldBoxes
262
+
<com.kinda.developer.TextFieldBoxes
262
263
...
263
264
app:alwaysShowHint="true"
264
265
>
@@ -295,7 +296,7 @@ By default, the error state of the field is validated each time the text changes
295
296
Setting `app:manualValidateError` to `true` will make the field validate error only when `validate()` is called.
296
297
297
298
```xml
298
-
<com.kinda.mtextfield.TextFieldBoxes
299
+
<com.kinda.developer.TextFieldBoxes
299
300
...
300
301
app:manualValidateError="true"
301
302
>
@@ -337,8 +338,8 @@ textFieldBoxes.validate()
337
338
338
339
| Attribute | Description | Default |
339
340
| --- | --- | --- |
340
-
|`app:helperTextColor`| Helper text color | Current theme `textColorTertiary`|
341
-
|`app:counterTextColor`| Counter text color | Current theme `textColorTertiary`|
341
+
|`app:textHelperColor`| Helper text color | Current theme `textColorTertiary`|
342
+
|`app:textCounterColor`| Counter text color | Current theme `textColorTertiary`|
342
343
|`app:errorColor`| The color that is used to indicate error (e.g. exceeding max characters, `setError()`) |`A400 red`|
343
344
|`app:primaryColor`| The color for the underline, the floating label text and the icon signifier **when HAVING FOCUS**| Current theme `colorPrimary`|
344
345
|`app:secondaryColor`| The color for the underline, the floating label text and the icon signifier **when NOT HAVING FOCUS**| Current theme `textColorTertiary`|
0 commit comments