Android 8.0 Oreo crash on focusing TextInputEditText

前端 未结 8 1642
借酒劲吻你
借酒劲吻你 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:15

    @Luke Simpson is right. You can use it in themes.XML like:-

    @style/AppEditTextStyle
    
    and then put
    
    

    in V26/app_styles.xml

    But, I had to put empty tag also in app_styles.xml in the default folder. Otherwise, all the properties of Edit text were getting overriding by this and my edit text was not working properly. And when you put importantForAutoFill property for v26 and you want autofill to work in 8.1, you can simply put

    
    

    So, autofill property works in 8.1. It will be disabled just for 8.0 as the crash is hapenning in 8.0 and it has already been fixed in 8.1.

提交回复
热议问题