Android 8.0 Oreo crash on focusing TextInputEditText

前端 未结 8 1629
借酒劲吻你
借酒劲吻你 2020-12-12 14:28

After updating some of our devices to android 8.0 , upon focusing on a TextInputEditText field inside of a TextInputLayout, the app crashes with th

8条回答
  •  無奈伤痛
    2020-12-12 15:20

    I used the v26/themes.xml to override the EditText style autofill only for Oreo 8.0.0:

    
    

    Note that I had to apply the style inline for each EditText in my layout xml for it to take effect. I tried to apply this change globally in my app theme but it didn't work for some reason.

    // HAD TO DO THIS IN LAYOUT XML FOR EACH EDIT TEXT
    
    
    
    // THIS DIDN'T TAKE EFFECT IN THEMES XML (HAS BEEN ADDED TO MANIFEST)
    
    

提交回复
热议问题