1

I am using Material Design Components and want to change the default style of a TextInputLayout, meaning my changes shall apply to all instances of the TextInputLayout without me having to explicitely define a style="@style/my_style" on each of them.

If and how is that possible?

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270

1 Answers1

1

You can use the textInputStyle attribute in your app theme.

<style name="AppTheme" parent="Theme.MaterialComponents.DayNight"> 
   <item name="textInputStyle">@style/myCustomStyle</item>
</style>
Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841