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
Version 13.0.0 messes up the layout of the CardInputWidget when using a theme inheriting from MaterialComponents while having a dependency on MaterialComponents 1.1.0-rc01. My guess that this was caused by the changes in #2029.
Using the stable MaterialComponents 1.0.0 version works correctly. I think this is because the full material theming support is included only in 1.1.0.
I can think of two possible solutions:
Make this widget work nicely with Material Themes
Override the material theme and use a consistent default stripe style so that app specific material theme is not used in the widget.
12.7.0
13.0.0
Code to reproduce
Add implementation "com.google.android.material:material:1.1.0-rc01 to the dependencies of the example app.
Change the example app theme to inherit from MaterialComponents.Light: <style name="AppTheme" parent="Theme.MaterialComponents.Light">.
Run the app and open the Create a Card Token example
Android version
Tested on 8.0, but probably on every version
SDK version
13.0.0
The text was updated successfully, but these errors were encountered:
`com.google.android.material:material:1.1.0-rc01` breaks
`CardInputWidget` styling. Fix this by explicitly setting
a style that extends `Widget.Design.TextInputLayout`.
Fixes#2053
`com.google.android.material:material:1.1.0-rc01` breaks
`TextInputLayout` styling. Fix this by explicitly setting
a style that extends `Widget.Design.TextInputLayout`.
Fixes#2053
Summary
Version
13.0.0
messes up the layout of theCardInputWidget
when using a theme inheriting fromMaterialComponents
while having a dependency on MaterialComponents1.1.0-rc01
. My guess that this was caused by the changes in #2029.Using the stable MaterialComponents 1.0.0 version works correctly. I think this is because the full material theming support is included only in 1.1.0.
I can think of two possible solutions:
Code to reproduce
implementation "com.google.android.material:material:1.1.0-rc01
to the dependencies of the example app.MaterialComponents.Light
:<style name="AppTheme" parent="Theme.MaterialComponents.Light">
.Create a Card Token
exampleAndroid version
Tested on 8.0, but probably on every version
SDK version
13.0.0
The text was updated successfully, but these errors were encountered: