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
Copy file name to clipboardExpand all lines: README.md
+16-17Lines changed: 16 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,15 @@ A new Material Design text field that comes in a box, based on Google Material D
19
19
20
20
## ***UPDATE NOTICE***
21
21
22
-
#### 1.3.4 Release
23
-
- fix issue #25.
22
+
#### 1.3.5 Release
23
+
- fix issue #31.
24
24
25
25
- add `giveFocus` param in `setError()` for setting whether the field will gain focus when set error on.
26
26
27
+
- add `secondaryColor` for setting the color of the underline, the floating label text and the icon signifier **when NOT HAVING** focus (opposite to `primaryColor`).
28
+
29
+
- add `counterColor` for setting the color of the counter text.
30
+
27
31
#### 1.3.0 Release
28
32
- the "EditText" part is now **seperated** from the TextFieldBoxes. TextFieldBoxes is now a **container** (just like a `TextInputLayout`) that should and should only contain **one**`ExtendedEditText` that inherents the `TextInputEditText`.
@@ -265,7 +269,9 @@ If `true`, a clear button will be shown at the end when there are characters (**
265
269
266
270
#### 9. Custom Colors
267
271
268
-
*Primary Color* will be used for the color of the underline and the floating label text. You can use `app:primaryColor` in xml or `setPrimaryColor(int colorRes)` in Java. Current theme `Primary Color` by default.
272
+
*Primary Color* will be used for the color of the underline, the floating label text and the icon signifier **when HAVING focus**. You can use `app:primaryColor` in xml or `setPrimaryColor(int colorRes)` in Java. Current theme `Primary Color` by default.
273
+
274
+
*Secondary Color* will be used for the color of the underline, the floating label text and the icon signifier **when NOT HAVING focus**. You can use `app:secondaryColor` in xml or `setSecondaryColor(int colorRes)` in Java. Current theme `textColorTertiary` by default.
269
275
270
276
*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.
271
277
@@ -351,8 +357,10 @@ TextFieldBoxes use the color attributes within the current theme and will automa
351
357
| Attribute | Description | Default |
352
358
| --- | --- | --- |
353
359
|`app:helperTextColor`| Helper text color | Current theme `textColorTertiary`|
360
+
|`app:counterTextColor`| Counter text color | Current theme `textColorTertiary`|
354
361
|`app:errorColor`| The color that is used to indicate error (e.g. exceeding max characters, `setError()`) |`A400 red`|
355
-
|`app:primaryColor`| The color for the underline and the floating label text | Current theme `colorPrimary`|
362
+
|`app:primaryColor`| The color for the underline, the floating label text and the icon signifier **when HAVING FOCUS**| Current theme `colorPrimary`|
363
+
|`app:secondaryColor`| The color for the underline, the floating label text and the icon signifier **when NOT HAVING FOCUS**| Current theme `textColorTertiary`|
356
364
|`app:panelBackgroundColor`| The color for the panel at the back | 6% Current theme `colorForeground`|
357
365
358
366
##### Icons
@@ -378,16 +386,7 @@ TextFieldBoxes use the color attributes within the current theme and will automa
378
386
|`app:hasClearButton`| Whether to show the clear button at the end of the EditText |`False`|
379
387
|`app:hasFocus`| Whether the EditText is having the focus |`False`|
0 commit comments