I need to change color in TextInputLayout text, without changing primary color. I only want to change the color of the text typed in by the user, not the hint. I can't find any attribute to do that... what I tried is:
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight">
<!-- Color definitions -->
<item name="colorPrimary">@color/primaryColor</item>
<item name="colorPrimaryDark">@color/primaryDarkColor</item>
<item name="colorAccent">@color/secondaryColor</item>
<item name="colorControlHighlight">@color/secondaryLightColor</item>
<item name="colorButtonNormal">@color/secondaryColor</item>
<item name="colorControlActivated">@color/secondaryColor</item>
<item name="android:windowBackground">@color/colorWhite</item>
<item name="android:textColorPrimary">@color/primaryTextColor</item>
<item name="android:textColorSecondary">@color/secondaryTextColor</item>
<item name="textInputStyle">@style/inputStyle</item>
</style>
where the @style/inputStyle is:
<style name="inputStyle" parent="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
<item name="android:textColor">@color/secondaryTextColor</item>
</style>
But it doesn't seem to work. I noticed that if i change the colorPrimary the text color chamges, but as I said, I can't change it. What do I have to do?