11 Commits

Author SHA1 Message Date
Anoop
60483b53e9 [TextInputEditText] meizu to manufacture utils
Resolves https://github.com/material-components/material-components-android/pull/884

GIT_ORIGIN_REV_ID=24aef1fe592b2ce08c8a9ad7e33e396cc4eb6dd0
Co-authored-by: pekingme <pekingme@gmail.com>
PiperOrigin-RevId: 288726292
2020-01-08 12:11:02 -08:00
leticiars
2084fd3f70 [Text Fields] Pan window so that keyboard doesn't hide helper/error views.
It doesn't pan if the user can already scroll (for example if it's in a scroll view).

PiperOrigin-RevId: 286424421
2019-12-19 15:47:57 -05:00
leticiars
6efedee757 Adding onInitializeAccessibilityNodeInfo override in TextInputEditText.
In APIs < 23 some things set in TextInputLayout's AccessibilityDelegate get overwritten, so announcements are not as expected.

PiperOrigin-RevId: 283396918
2019-12-03 17:04:54 -05:00
cketcham
440b6e7753 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 265057396
2019-08-29 10:30:58 -04:00
Antonin Fouques (CmoaToto)
7787a8257d use .equalsIgnoreCase(...) instead of .toLowerCase().equals(...)
GIT_ORIGIN_REV_ID=173665654ad165cee4c3da64af4fd60afa9a1f61

Resolves https://github.com/material-components/material-components-android/pull/411

PiperOrigin-RevId: 256404636
2019-07-03 15:19:19 -04:00
Antonin Fouques (CmoaToto)
ccb7fbe8b3 Simplify Meizu fix by forcing creation of a hintLayout
GIT_ORIGIN_REV_ID=5545bb3920a651e8a2e1f1a0586fbecdad7c55bb

Resolves https://github.com/material-components/material-components-android/pull/358

PiperOrigin-RevId: 248391866
2019-05-16 17:25:11 -04:00
cketcham
dc72aaeed4 Migrate Gradle build and sources to androidx
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
afohrman
bdb25ff7e3 Use android:padding attributes instead of boxPadding attributes for text field dimensions.
Move to use native android:padding attrs instead of custom boxPadding attributes for text fields. This is accomplished by creating box styles for TextInputEditText, and setting android:padding attributes in those.

The TextInputLayout box styles set the appropriate TextInputEditText style on its child by wrapping the TextInputEditText style in theme overlays. This is kind of neat, since it allows for the user not to have to set a style on both the TextInputLayout and TextInputEditText - the user does not even have to know about the TextInputEditText styles with this pattern. It should also help clear up some confusion over where to set the hint and other areas of haziness between TextInputLayout and TextInputEditText.

The default editTextStyle is set to the filled box style, to match the default TextInputLayout style.

This change removes the box padding attributes, and it also removes the dimension resources in favor of setting them in the style to improve readability.

This commit also changes TextInputEditText constructors to both use a theme attribute in the 3-arg constructor and call through to the TextInputEditText overloaded constructors rather than call the super's constructor from each. This allows the theme attribute set in the theme overlays to take effect.

PiperOrigin-RevId: 198051251
2018-05-30 17:35:13 -04:00
Material Design Team
3e20d0720f Hide TextInputLayout from accessibility services and instead mirror its attributes on its EditText.
PiperOrigin-RevId: 197509011
2018-05-22 13:59:17 -04:00
afohrman
6cb4f6eebe Fix typo in TextInputEditText documentation.
PiperOrigin-RevId: 193966868
2018-04-30 11:57:29 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00