0

Color control is not working in color controls not working for TextInputLayout in com.google.android.material:material versions ABOVE 1.0.0.

I have this in my styles.xml:

<style name="BaseTextField">
    <item name="colorAccent">@color/pink</item>
    <item name="colorControlNormal">@color/alabaster</item>
    <item name="colorControlActivated">@color/pink</item>
    <item name="colorControlHighlight">@color/pink</item>
</style>

And in my layout:

<com.google.android.material.textfield.TextInputEditText
    ...
    ...
    android:theme="@style/BaseTextField"/>

It was working perfectly on version 1.0.0. But when upgrading to higher versions. The control controls doesn't work anymore. Has anyone experienced the same issue?

YellowJ
  • 271
  • 5
  • 18
  • what do you want to change? – Gabriele Mariotti Jan 06 '20 at 16:12
  • @GabrieleMariotti The underline color and the floating label color. Currently, it resorts to using the app theme's `colorPrimary`. – YellowJ Jan 08 '20 at 00:04
  • You can check these questions: [how to change color of TextinputLayout's label and edittext underline android](https://stackoverflow.com/a/57985955/2016562) and [How to change the floating label color of TextInputLayout](https://stackoverflow.com/a/57811487/2016562) – Gabriele Mariotti Jan 08 '20 at 07:21

0 Answers0