An app uses the following MyThemeStyle for its theme:
<style name="MyThemeStyle" parent="@style/Theme.MaterialComponents">
<item name="hintTextAppearance">@style/HintText</item>
<item name="hintTextColor">@color/red</item>
</style>
<style name="HintText" parent="TextAppearance.AppCompat">
<item name="android:textColor">@color/red</item>
</style>
In AndroidManifest:
<application
android:theme="@style/MyThemeStyle">
This works for EditText, but has no effect on com.google.android.material.textfield.TextInputLayout.
Could anyone shed some light on this?
You can use: