Skip to content

Commit 3300692

Browse files
author
TutorialsAndroid
committed
UPDATED README.md
1 parent fc24d54 commit 3300692

File tree

1 file changed

+37
-24
lines changed

1 file changed

+37
-24
lines changed

Readme.md

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
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+
![](https://github.com/TutorialsAndroid/MTextField/blob/master/sample/src/main/res/mipmap-xxhdpi/ic_launcher.png)
2+
3+
# 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)
4+
5+
6+
[`Heatic Debate App Download Now`](https://play.google.com/store/apps/details?id=com.asm.heatic)
7+
28

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

511
**Library available on JitPack.io**
612

713
[![](https://jitpack.io/v/TutorialsAndroid/MTextField.svg)](https://jitpack.io/#TutorialsAndroid/MTextField)
14+
`Version 16.4.19 is deprecated use latest version v4.0.19`
15+
16+
`Latest version of this library is migrated to androidx`
17+
18+
## Hire-Me
19+
20+
<p align="center">Are you having trouble in your android projects then let me help you with it just Email me. I love my users, so feel free to visit http://asm.life
821

922
## Sample Screen
1023

@@ -24,7 +37,7 @@ allprojects {
2437
```
2538
```groovy
2639
dependencies {
27-
   implementation 'com.github.TutorialsAndroid:MTextField:16.4.19'
40+
   implementation 'com.github.TutorialsAndroid:MTextField:v4.0.19'
2841
}
2942
```
3043

@@ -48,22 +61,22 @@ dependencies {
4861

4962
#### <a id="basic"/> 1. Basic
5063

51-
Add `com.kinda.mtextfield.TextFieldBoxes` that contains a `com.kinda.mtextfield.ExtendedEditText` to your layout:
64+
Add `com.developer.mtextfield.TextFieldBoxes` that contains a `com.developer.mtextfield.ExtendedEditText` to your layout:
5265

5366
```xml
5467
...
55-
<com.kinda.mtextfield.TextFieldBoxes
68+
<com.developer.mtextfield.TextFieldBoxes
5669
android:id="@+id/text_field_boxes"
5770
android:layout_width="match_parent"
5871
android:layout_height="wrap_content"
5972
app:labelText="Label">
6073

61-
<com.kinda.mtextfield.ExtendedEditText
74+
<com.developer.mtextfield.ExtendedEditText
6275
android:id="@+id/extended_edit_text"
6376
android:layout_width="wrap_content"
6477
android:layout_height="wrap_content"/>
6578

66-
</com.kinda.mtextfield.TextFieldBoxes>
79+
</com.developer.mtextfield.TextFieldBoxes>
6780
...
6881
```
6982

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

7487
```xml
75-
<com.kinda.mtextfield.TextFieldBoxes
88+
<com.developer.mtextfield.TextFieldBoxes
7689
...
7790
app:enabled="false"
7891
>
@@ -85,7 +98,7 @@ _**NOTE:** setting helper or error text to anything **not empty** will make the
8598
helper text: `app:helperText` in xml or `setHelperText(String helperText)` in Java.
8699

87100
```xml
88-
<com.kinda.mtextfield.TextFieldBoxes
101+
<com.developer.mtextfield.TextFieldBoxes
89102
...
90103
app:helperText="Helper is here"
91104
>
@@ -110,14 +123,14 @@ Use `app:prefix` in xml or `setPrefix(String prefix)` in Java to set the unselec
110123
Use `app:suffix` in xml or `setSuffix(String suffix)` in Java to set the unselectable suffix text at the end of the field.
111124

112125
```xml
113-
<com.kinda.mtextfield.ExtendedEditText
126+
<com.developer.mtextfield.ExtendedEditText
114127
...
115128
app:prefix="$ "
116129
>
117130
```
118131

119132
```xml
120-
<com.kinda.mtextfield.ExtendedEditText
133+
<com.developer.mtextfield.ExtendedEditText
121134
...
122135
app:suffix="\@gmail.com"
123136
>
@@ -136,15 +149,15 @@ The color of the bottom line will turn to `errorColor` (red by default) when exc
136149
*NOTE: Space and line feed will NOT count.*
137150

138151
```xml
139-
<com.kinda.mtextfield.TextFieldBoxes
152+
<com.developer.mtextfield.TextFieldBoxes
140153
...
141154
app:maxCharacters="10"
142155
app:minCharacters="5"
143156
>
144157
```
145158

146159
```xml
147-
<com.kinda.mtextfield.TextFieldBoxes
160+
<com.developer.mtextfield.TextFieldBoxes
148161
...
149162
app:maxCharacters="5"
150163
>
@@ -158,7 +171,7 @@ You can use `setIsResponsiveIconColor(boolean isrResponsiveIconColor)` in Java c
158171
_**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`.**_
159172

160173
```xml
161-
<com.kinda.mtextfield.TextFieldBoxes
174+
<com.developer.mtextfield.TextFieldBoxes
162175
...
163176
app:iconSignifier="@drawable/ic_vpn_key_black_24dp"
164177
>
@@ -169,7 +182,7 @@ _**NOTE that if `true`, the icon's color will always be `HighlightColor` (the sa
169182
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.
170183

171184
```xml
172-
<com.kinda.mtextfield.TextFieldBoxes
185+
<com.developer.mtextfield.TextFieldBoxes
173186
...
174187
app:endIcon="@drawable/ic_mic_black_24dp"
175188
>
@@ -194,7 +207,7 @@ Use `app:hasClearButton` in xml or `setHasClearButton(boolean hasClearButton)` t
194207
If `true`, a clear button will be shown at the end when there are characters (**ANY** character) entered in the field.
195208

196209
```xml
197-
<com.kinda.mtextfield.TextFieldBoxes
210+
<com.developer.mtextfield.TextFieldBoxes
198211
...
199212
app:hasClearButton="true"
200213
>
@@ -208,16 +221,16 @@ If `true`, a clear button will be shown at the end when there are characters (**
208221

209222
*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.
210223

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.
224+
*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.
212225

213226
*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.*
214227

215228
```xml
216-
<com.kinda.mtextfield.TextFieldBoxes
229+
<com.developer.mtextfield.TextFieldBoxes
217230
...
218231
app:primaryColor="#1B5E20"
219232
app:errorColor="#ddaa00"
220-
app:helperTextColor="#795548"
233+
app:textHelperColor="#795548"
221234
app:panelBackgroundColor="#ffe8e8"
222235
>
223236
```
@@ -232,7 +245,7 @@ If `true`, a clear button will be shown at the end when there are characters (**
232245

233246
then set this as the theme for your TextFieldBoxes:
234247
```xml
235-
<com.kinda.mtextfield.TextFieldBoxes
248+
<com.developer.mtextfield.TextFieldBoxes
236249
...
237250
android:theme="@style/TextFieldBoxes"
238251
>
@@ -245,7 +258,7 @@ You can make the layout compact by using a dense verticle spacing to improve use
245258
Use `app:useDenseSpacing` in xml or `setUseDenseSpacing(boolean useDenseSpacing)` to set whether the field uses a dense spacing between its elements.
246259

247260
```xml
248-
<com.kinda.mtextfield.TextFieldBoxes
261+
<com.developer.mtextfield.TextFieldBoxes
249262
...
250263
app:useDenseSpacing="true"
251264
>
@@ -258,7 +271,7 @@ Sometimes you may want the label and the hint to show different messages, but ne
258271
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.
259272

260273
```xml
261-
<com.kinda.mtextfield.TextFieldBoxes
274+
<com.developer.mtextfield.TextFieldBoxes
262275
...
263276
app:alwaysShowHint="true"
264277
>
@@ -295,7 +308,7 @@ By default, the error state of the field is validated each time the text changes
295308
Setting `app:manualValidateError` to `true` will make the field validate error only when `validate()` is called.
296309

297310
```xml
298-
<com.kinda.mtextfield.TextFieldBoxes
311+
<com.developer.mtextfield.TextFieldBoxes
299312
...
300313
app:manualValidateError="true"
301314
>
@@ -337,8 +350,8 @@ textFieldBoxes.validate()
337350

338351
| Attribute | Description | Default |
339352
| --- | --- | --- |
340-
| `app:helperTextColor` | Helper text color | Current theme `textColorTertiary` |
341-
| `app:counterTextColor` | Counter text color | Current theme `textColorTertiary` |
353+
| `app:textHelperColor` | Helper text color | Current theme `textColorTertiary` |
354+
| `app:textCounterColor` | Counter text color | Current theme `textColorTertiary` |
342355
| `app:errorColor` | The color that is used to indicate error (e.g. exceeding max characters, `setError()`) | `A400 red` |
343356
| `app:primaryColor` | The color for the underline, the floating label text and the icon signifier **when HAVING FOCUS** | Current theme `colorPrimary` |
344357
| `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)