Closed broakenmedia closed 3 years ago
Is it possible to provide a custom style to the input?
Presumably this is primarily down to: https://github.com/material-components/material-components-android/issues/120
However the lack of customisation on the edittext means i am unable to workaround for the time being. Particularly lack of ability to set edittext width/height/style/padding/font size etc.
You can customize the style via a custom theme (see customizations > theme in the Wiki)
Can you check whether the issue occures for both, androidx and appcompat based library versions and whether both, SimpleInputDialog and/or SimpleFormDialog are effected?
You can customize the style via a custom theme (see customizations > theme in the Wiki)
Did this work for you?
I run in the same issue after updating material components to 1.2.1 in my project. I think the underlying issue is https://github.com/material-components/material-components-android/issues/1674
My workaround is to build dialogs with the following theme passed in:
<style name="SimpleDialog" parent="ThemeOverlay.MaterialComponents.Dialog.Alert">
<item name="textInputStyle">@style/SimpleDialogTextInputStyle</item>
</style>
<style name="SimpleDialogTextInputStyle" parent="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu">
<item name="endIconMode">none</item>
</style>