In design library source we can find this line:
<declare-styleable name="TextInputLayout">
<attr format="reference" name="hintTextAppearance"/>
<attr name="android:hint"/>
<attr format="boolean" name="errorEnabled"/>
<attr format="reference" name="errorTextAppearance"/>
<attr format="boolean" name="counterEnabled"/>
<attr format="integer" name="counterMaxLength"/>
<attr format="reference" name="counterTextAppearance"/>
<attr format="reference" name="counterOverflowTextAppearance"/>
<attr name="android:textColorHint"/>
<attr format="boolean" name="hintAnimationEnabled"/>
</declare-styleable>
I want to change the color of the error text through errorTextAppearance attribut
I know how to customize it through app:{atribut-name} in the TextInputLayout xml declaration but how can I get to customize one of this attribut from within my theme definition ?
styles.xml:
in your layout:
Also you can add other items from
Widget.Design.TextInputLayoutinTheme.AppName.TextInputLayout