Skip to content

Commit 2eccb1f

Browse files
Update README.md
1 parent 3e0e525 commit 2eccb1f

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# MTextField ![API](https://img.shields.io/badge/API-19%2B-brightgreen.svg?style=flat) [![Known Vulnerabilities](https://snyk.io/test/github/TutorialsAndroid/MTextField/badge.svg?style=flat-squaretargetFile=library%2Fbuild.gradle)](https://snyk.io/test/github/TutorialsAndroid/MTextField?targetFile=library%2Fbuild.gradle) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-MTextField-blue.svg?style=plastic)](https://android-arsenal.com/details/1/7627) [![License](https://img.shields.io/badge/License-Apache%202.0-red.svg)](https://opensource.org/licenses/Apache-2.0)
1+
# MTextField ![API](https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat) [![Known Vulnerabilities](https://snyk.io/test/github/TutorialsAndroid/MTextField/badge.svg?style=flat-squaretargetFile=library%2Fbuild.gradle)](https://snyk.io/test/github/TutorialsAndroid/MTextField?targetFile=library%2Fbuild.gradle) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-MTextField-blue.svg?style=plastic)](https://android-arsenal.com/details/1/7627) [![License](https://img.shields.io/badge/License-Apache%202.0-red.svg)](https://opensource.org/licenses/Apache-2.0)
22

33
A new Material Design text field that comes in a box, based on [Google Material Design guidelines]
44

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`
8+
`Version 16.4.19 is deprecated use latest version v4.0.19`
99

1010
## Sample Screen
1111

@@ -25,7 +25,7 @@ allprojects {
2525
```
2626
```groovy
2727
dependencies {
28-
   implementation 'com.github.TutorialsAndroid:MTextField:v3.0.19'
28+
   implementation 'com.github.TutorialsAndroid:MTextField:v4.0.19'
2929
}
3030
```
3131

@@ -49,22 +49,22 @@ dependencies {
4949

5050
#### <a id="basic"/> 1. Basic
5151

52-
Add `com.developer.kinda.TextFieldBoxes` that contains a `com.developer.kinda.ExtendedEditText` to your layout:
52+
Add `com.developer.mtextfield.TextFieldBoxes` that contains a `com.developer.mtextfield.ExtendedEditText` to your layout:
5353

5454
```xml
5555
...
56-
<com.developer.kinda.TextFieldBoxes
56+
<com.developer.mtextfield.TextFieldBoxes
5757
android:id="@+id/text_field_boxes"
5858
android:layout_width="match_parent"
5959
android:layout_height="wrap_content"
6060
app:labelText="Label">
6161

62-
<com.developer.kinda.ExtendedEditText
62+
<com.developer.mtextfield.ExtendedEditText
6363
android:id="@+id/extended_edit_text"
6464
android:layout_width="wrap_content"
6565
android:layout_height="wrap_content"/>
6666

67-
</com.developer.kinda.TextFieldBoxes>
67+
</com.developer.mtextfield.TextFieldBoxes>
6868
...
6969
```
7070

@@ -73,7 +73,7 @@ Add `com.developer.kinda.TextFieldBoxes` that contains a `com.developer.kinda.Ex
7373
`app:enabled` in xml or `setEnabled(boolean enabled)` in Java.
7474

7575
```xml
76-
<com.developer.kinda.TextFieldBoxes
76+
<com.developer.mtextfield.TextFieldBoxes
7777
...
7878
app:enabled="false"
7979
>
@@ -86,7 +86,7 @@ _**NOTE:** setting helper or error text to anything **not empty** will make the
8686
helper text: `app:helperText` in xml or `setHelperText(String helperText)` in Java.
8787

8888
```xml
89-
<com.developer.kinda.TextFieldBoxes
89+
<com.developer.mtextfield.TextFieldBoxes
9090
...
9191
app:helperText="Helper is here"
9292
>
@@ -111,14 +111,14 @@ Use `app:prefix` in xml or `setPrefix(String prefix)` in Java to set the unselec
111111
Use `app:suffix` in xml or `setSuffix(String suffix)` in Java to set the unselectable suffix text at the end of the field.
112112

113113
```xml
114-
<com.developer.kinda.ExtendedEditText
114+
<com.developer.mtextfield.ExtendedEditText
115115
...
116116
app:prefix="$ "
117117
>
118118
```
119119

120120
```xml
121-
<com.developer.kinda.ExtendedEditText
121+
<com.developer.mtextfield.ExtendedEditText
122122
...
123123
app:suffix="\@gmail.com"
124124
>
@@ -137,15 +137,15 @@ The color of the bottom line will turn to `errorColor` (red by default) when exc
137137
*NOTE: Space and line feed will NOT count.*
138138

139139
```xml
140-
<com.developer.kinda.TextFieldBoxes
140+
<com.developer.mtextfield.TextFieldBoxes
141141
...
142142
app:maxCharacters="10"
143143
app:minCharacters="5"
144144
>
145145
```
146146

147147
```xml
148-
<com.developer.kinda.TextFieldBoxes
148+
<com.developer.mtextfield.TextFieldBoxes
149149
...
150150
app:maxCharacters="5"
151151
>
@@ -159,7 +159,7 @@ You can use `setIsResponsiveIconColor(boolean isrResponsiveIconColor)` in Java c
159159
_**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`.**_
160160

161161
```xml
162-
<com.developer.kinda.TextFieldBoxes
162+
<com.developer.mtextfield.TextFieldBoxes
163163
...
164164
app:iconSignifier="@drawable/ic_vpn_key_black_24dp"
165165
>
@@ -170,7 +170,7 @@ _**NOTE that if `true`, the icon's color will always be `HighlightColor` (the sa
170170
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.
171171

172172
```xml
173-
<com.developer.kinda.TextFieldBoxes
173+
<com.developer.mtextfield.TextFieldBoxes
174174
...
175175
app:endIcon="@drawable/ic_mic_black_24dp"
176176
>
@@ -195,7 +195,7 @@ Use `app:hasClearButton` in xml or `setHasClearButton(boolean hasClearButton)` t
195195
If `true`, a clear button will be shown at the end when there are characters (**ANY** character) entered in the field.
196196

197197
```xml
198-
<com.developer.kinda.TextFieldBoxes
198+
<com.developer.mtextfield.TextFieldBoxes
199199
...
200200
app:hasClearButton="true"
201201
>
@@ -214,7 +214,7 @@ If `true`, a clear button will be shown at the end when there are characters (**
214214
*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.*
215215

216216
```xml
217-
<com.developer.kinda.TextFieldBoxes
217+
<com.developer.mtextfield.TextFieldBoxes
218218
...
219219
app:primaryColor="#1B5E20"
220220
app:errorColor="#ddaa00"
@@ -233,7 +233,7 @@ If `true`, a clear button will be shown at the end when there are characters (**
233233

234234
then set this as the theme for your TextFieldBoxes:
235235
```xml
236-
<com.kinda.developer.TextFieldBoxes
236+
<com.developer.mtextfield.TextFieldBoxes
237237
...
238238
android:theme="@style/TextFieldBoxes"
239239
>
@@ -246,7 +246,7 @@ You can make the layout compact by using a dense verticle spacing to improve use
246246
Use `app:useDenseSpacing` in xml or `setUseDenseSpacing(boolean useDenseSpacing)` to set whether the field uses a dense spacing between its elements.
247247

248248
```xml
249-
<com.kinda.developer.TextFieldBoxes
249+
<com.developer.mtextfield.TextFieldBoxes
250250
...
251251
app:useDenseSpacing="true"
252252
>
@@ -259,7 +259,7 @@ Sometimes you may want the label and the hint to show different messages, but ne
259259
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.
260260

261261
```xml
262-
<com.kinda.developer.TextFieldBoxes
262+
<com.developer.mtextfield.TextFieldBoxes
263263
...
264264
app:alwaysShowHint="true"
265265
>
@@ -296,7 +296,7 @@ By default, the error state of the field is validated each time the text changes
296296
Setting `app:manualValidateError` to `true` will make the field validate error only when `validate()` is called.
297297

298298
```xml
299-
<com.kinda.developer.TextFieldBoxes
299+
<com.developer.mtextfield.TextFieldBoxes
300300
...
301301
app:manualValidateError="true"
302302
>

0 commit comments

Comments
 (0)