-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout broke with new material components #74
Comments
I made a sample app to try this: https://github.com/quinnjn/android-card-form-issue-74 Using the latest stable, and alpha versions of |
Hi @quinnjn , PR done. |
@quinnjn Apparently it's because of the theme. It works as expected with appcompat themes, but not material components themes. In your sample, the app theme is set to Theme.AppCompat.Light.DarkActionBar and the problem occurs when the theme is set to theme like |
Can be fixed by overriding <style name="bt_text_input_layout" parent="@style/Widget.Design.TextInputLayout">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_marginTop">12dp</item>
<item name="android:accessibilityLiveRegion" tools:targetApi="kitkat">polite</item>
</style> |
Can confirm this problem exists, and renders the form useless frankly. Tried the fix me mentioned above and it works. |
I couldnt overwrite to change the text color inside of textfield.mine remains in white color |
General information
Issue description
Using the new material components, the 2 new variants of EditText layout is a little broke.
![card_form_FilledBox](https://user-images.githubusercontent.com/5374362/57382876-20b70d80-7184-11e9-8438-6dfbe2ea0651.png)
![card_form_OutlinedBox](https://user-images.githubusercontent.com/5374362/57382883-23b1fe00-7184-11e9-9f24-da85f4136766.png)
The text was updated successfully, but these errors were encountered: