Skip to content

Commit 80ed360

Browse files
Update README.md
1 parent 80f2d64 commit 80ed360

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,22 @@ dependencies {
4949

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

52-
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:
5353

5454
```xml
5555
...
56-
<com.kinda.mtextfield.TextFieldBoxes
56+
<com.developer.kinda.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.kinda.mtextfield.ExtendedEditText
62+
<com.developer.kinda.ExtendedEditText
6363
android:id="@+id/extended_edit_text"
6464
android:layout_width="wrap_content"
6565
android:layout_height="wrap_content"/>
6666

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

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

7575
```xml
76-
<com.kinda.mtextfield.TextFieldBoxes
76+
<com.developer.kinda.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.kinda.mtextfield.TextFieldBoxes
89+
<com.developer.kinda.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.kinda.mtextfield.ExtendedEditText
114+
<com.developer.kinda.ExtendedEditText
115115
...
116116
app:prefix="$ "
117117
>
118118
```
119119

120120
```xml
121-
<com.kinda.mtextfield.ExtendedEditText
121+
<com.developer.kinda.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.kinda.mtextfield.TextFieldBoxes
140+
<com.developer.kinda.TextFieldBoxes
141141
...
142142
app:maxCharacters="10"
143143
app:minCharacters="5"
144144
>
145145
```
146146

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

210210
*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.
211211

212-
*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.
213213

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.kinda.mtextfield.TextFieldBoxes
217+
<com.developer.kinda.TextFieldBoxes
218218
...
219219
app:primaryColor="#1B5E20"
220220
app:errorColor="#ddaa00"
221-
app:helperTextColor="#795548"
221+
app:textHelperColor="#795548"
222222
app:panelBackgroundColor="#ffe8e8"
223223
>
224224
```
@@ -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.mtextfield.TextFieldBoxes
236+
<com.kinda.developer.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.mtextfield.TextFieldBoxes
249+
<com.kinda.developer.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.mtextfield.TextFieldBoxes
262+
<com.kinda.developer.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.mtextfield.TextFieldBoxes
299+
<com.kinda.developer.TextFieldBoxes
300300
...
301301
app:manualValidateError="true"
302302
>
@@ -338,8 +338,8 @@ textFieldBoxes.validate()
338338

339339
| Attribute | Description | Default |
340340
| --- | --- | --- |
341-
| `app:helperTextColor` | Helper text color | Current theme `textColorTertiary` |
342-
| `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` |
343343
| `app:errorColor` | The color that is used to indicate error (e.g. exceeding max characters, `setError()`) | `A400 red` |
344344
| `app:primaryColor` | The color for the underline, the floating label text and the icon signifier **when HAVING FOCUS** | Current theme `colorPrimary` |
345345
| `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)