Skip to content

Commit 3e0e525

Browse files
Bug Fixes
2 parents a9aa67d + 80ed360 commit 3e0e525

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

README.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ A new Material Design text field that comes in a box, based on [Google Material
55
**Library available on JitPack.io**
66

77
[![](https://jitpack.io/v/TutorialsAndroid/MTextField.svg)](https://jitpack.io/#TutorialsAndroid/MTextField)
8+
`Version 16.4.19 is deprecated use latest version v3.0.19`
89

910
## Sample Screen
1011

@@ -24,7 +25,7 @@ allprojects {
2425
```
2526
```groovy
2627
dependencies {
27-
   implementation 'com.github.TutorialsAndroid:MTextField:16.4.19'
28+
   implementation 'com.github.TutorialsAndroid:MTextField:v3.0.19'
2829
}
2930
```
3031

@@ -48,22 +49,22 @@ dependencies {
4849

4950
#### <a id="basic"/> 1. Basic
5051

51-
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:
5253

5354
```xml
5455
...
55-
<com.kinda.mtextfield.TextFieldBoxes
56+
<com.developer.kinda.TextFieldBoxes
5657
android:id="@+id/text_field_boxes"
5758
android:layout_width="match_parent"
5859
android:layout_height="wrap_content"
5960
app:labelText="Label">
6061

61-
<com.kinda.mtextfield.ExtendedEditText
62+
<com.developer.kinda.ExtendedEditText
6263
android:id="@+id/extended_edit_text"
6364
android:layout_width="wrap_content"
6465
android:layout_height="wrap_content"/>
6566

66-
</com.kinda.mtextfield.TextFieldBoxes>
67+
</com.developer.kinda.TextFieldBoxes>
6768
...
6869
```
6970

@@ -72,7 +73,7 @@ Add `com.kinda.mtextfield.TextFieldBoxes` that contains a `com.kinda.mtextfield.
7273
`app:enabled` in xml or `setEnabled(boolean enabled)` in Java.
7374

7475
```xml
75-
<com.kinda.mtextfield.TextFieldBoxes
76+
<com.developer.kinda.TextFieldBoxes
7677
...
7778
app:enabled="false"
7879
>
@@ -85,7 +86,7 @@ _**NOTE:** setting helper or error text to anything **not empty** will make the
8586
helper text: `app:helperText` in xml or `setHelperText(String helperText)` in Java.
8687

8788
```xml
88-
<com.kinda.mtextfield.TextFieldBoxes
89+
<com.developer.kinda.TextFieldBoxes
8990
...
9091
app:helperText="Helper is here"
9192
>
@@ -110,14 +111,14 @@ Use `app:prefix` in xml or `setPrefix(String prefix)` in Java to set the unselec
110111
Use `app:suffix` in xml or `setSuffix(String suffix)` in Java to set the unselectable suffix text at the end of the field.
111112

112113
```xml
113-
<com.kinda.mtextfield.ExtendedEditText
114+
<com.developer.kinda.ExtendedEditText
114115
...
115116
app:prefix="$ "
116117
>
117118
```
118119

119120
```xml
120-
<com.kinda.mtextfield.ExtendedEditText
121+
<com.developer.kinda.ExtendedEditText
121122
...
122123
app:suffix="\@gmail.com"
123124
>
@@ -136,15 +137,15 @@ The color of the bottom line will turn to `errorColor` (red by default) when exc
136137
*NOTE: Space and line feed will NOT count.*
137138

138139
```xml
139-
<com.kinda.mtextfield.TextFieldBoxes
140+
<com.developer.kinda.TextFieldBoxes
140141
...
141142
app:maxCharacters="10"
142143
app:minCharacters="5"
143144
>
144145
```
145146

146147
```xml
147-
<com.kinda.mtextfield.TextFieldBoxes
148+
<com.developer.kinda.TextFieldBoxes
148149
...
149150
app:maxCharacters="5"
150151
>
@@ -158,7 +159,7 @@ You can use `setIsResponsiveIconColor(boolean isrResponsiveIconColor)` in Java c
158159
_**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`.**_
159160

160161
```xml
161-
<com.kinda.mtextfield.TextFieldBoxes
162+
<com.developer.kinda.TextFieldBoxes
162163
...
163164
app:iconSignifier="@drawable/ic_vpn_key_black_24dp"
164165
>
@@ -169,7 +170,7 @@ _**NOTE that if `true`, the icon's color will always be `HighlightColor` (the sa
169170
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.
170171

171172
```xml
172-
<com.kinda.mtextfield.TextFieldBoxes
173+
<com.developer.kinda.TextFieldBoxes
173174
...
174175
app:endIcon="@drawable/ic_mic_black_24dp"
175176
>
@@ -194,7 +195,7 @@ Use `app:hasClearButton` in xml or `setHasClearButton(boolean hasClearButton)` t
194195
If `true`, a clear button will be shown at the end when there are characters (**ANY** character) entered in the field.
195196

196197
```xml
197-
<com.kinda.mtextfield.TextFieldBoxes
198+
<com.developer.kinda.TextFieldBoxes
198199
...
199200
app:hasClearButton="true"
200201
>
@@ -208,16 +209,16 @@ If `true`, a clear button will be shown at the end when there are characters (**
208209

209210
*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.
210211

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.
212213

213214
*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.*
214215

215216
```xml
216-
<com.kinda.mtextfield.TextFieldBoxes
217+
<com.developer.kinda.TextFieldBoxes
217218
...
218219
app:primaryColor="#1B5E20"
219220
app:errorColor="#ddaa00"
220-
app:helperTextColor="#795548"
221+
app:textHelperColor="#795548"
221222
app:panelBackgroundColor="#ffe8e8"
222223
>
223224
```
@@ -232,7 +233,7 @@ If `true`, a clear button will be shown at the end when there are characters (**
232233

233234
then set this as the theme for your TextFieldBoxes:
234235
```xml
235-
<com.kinda.mtextfield.TextFieldBoxes
236+
<com.kinda.developer.TextFieldBoxes
236237
...
237238
android:theme="@style/TextFieldBoxes"
238239
>
@@ -245,7 +246,7 @@ You can make the layout compact by using a dense verticle spacing to improve use
245246
Use `app:useDenseSpacing` in xml or `setUseDenseSpacing(boolean useDenseSpacing)` to set whether the field uses a dense spacing between its elements.
246247

247248
```xml
248-
<com.kinda.mtextfield.TextFieldBoxes
249+
<com.kinda.developer.TextFieldBoxes
249250
...
250251
app:useDenseSpacing="true"
251252
>
@@ -258,7 +259,7 @@ Sometimes you may want the label and the hint to show different messages, but ne
258259
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.
259260

260261
```xml
261-
<com.kinda.mtextfield.TextFieldBoxes
262+
<com.kinda.developer.TextFieldBoxes
262263
...
263264
app:alwaysShowHint="true"
264265
>
@@ -295,7 +296,7 @@ By default, the error state of the field is validated each time the text changes
295296
Setting `app:manualValidateError` to `true` will make the field validate error only when `validate()` is called.
296297

297298
```xml
298-
<com.kinda.mtextfield.TextFieldBoxes
299+
<com.kinda.developer.TextFieldBoxes
299300
...
300301
app:manualValidateError="true"
301302
>
@@ -337,8 +338,8 @@ textFieldBoxes.validate()
337338

338339
| Attribute | Description | Default |
339340
| --- | --- | --- |
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` |
342343
| `app:errorColor` | The color that is used to indicate error (e.g. exceeding max characters, `setError()`) | `A400 red` |
343344
| `app:primaryColor` | The color for the underline, the floating label text and the icon signifier **when HAVING FOCUS** | Current theme `colorPrimary` |
344345
| `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

Comments
 (0)