Search code examples
androidandroid-design-libraryandroiddesignsupportandroid-textinputlayouttextinputlayout

TextinputLayout color


Is there any chance we could change the color of the bottom line of the TextinputLayout without twiking the theme (neither using the (android/app):theme attribut on the view).

Can't we just do it through a style attribut on the TextInputLayout or it's *EditText son ?


Solution

  • Styles and themes are completely different. The only way to change a color pulled from a theme (such as is the case with colorAccent and TextInputLayout) is to apply a theme, either to the view with android:theme or to the entire Activity.