Material-components-android: Can't change TextInputLayout stroke color

Created on 26 Oct 2018  路  4Comments  路  Source: material-components/material-components-android

trying to change the stroke color for box outline

Most helpful comment

app:boxStrokeColor actually changes the color of the stroke when it's focused. It'd make more sense for it to change the color of the stroke on its default state and have a new attribute called app:boxStrokeColorFocused to do what app:boxStrokeColor does.

All 4 comments

This should be possible. Can you please provide your code?

still problem.
< color name="mtrl_textinput_default_box_stroke_color" tools:override="true">#fff</color>
this changed color but i want to change in one activity not full app.

my app's one activity's background is white and other is blue.

so how to change this?

app:boxStrokeColor actually changes the color of the stroke when it's focused. It'd make more sense for it to change the color of the stroke on its default state and have a new attribute called app:boxStrokeColorFocused to do what app:boxStrokeColor does.

Was this page helpful?
0 / 5 - 0 ratings