I am using the InputTextLayout in xml design. I want to change the stroke color. How can i achieve this?
            Asked
            
        
        
            Active
            
        
            Viewed 193 times
        
    1
            
            
         
    
    
        Gabriele Mariotti
        
- 320,139
- 94
- 887
- 841
 
    
    
        Rishikesh Rahi
        
- 11
- 1
- 
                    will you want to change the border color of the textinput layout? – Mahesh Keshvala Feb 25 '19 at 10:29
- 
                    If you mean bottom line color, it's accent color of your theme. Check this out : https://stackoverflow.com/a/31723120/244611 – onur taskin Feb 25 '19 at 13:35
1 Answers
0
            
            
        Use the app:boxStrokeColor attribute
<com.google.android.material.textfield.TextInputLayout
      app:boxStrokeColor="@color/...."
      ...>
You can use a color or a selector.
 
    
    
        Gabriele Mariotti
        
- 320,139
- 94
- 887
- 841