Android EditText.setError() yields invisible error text

后端 未结 5 1228
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-08 21:17

I have a very simple EditText, as follows:



        
5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 21:33

    Use native parent theme for appropriate API level in your own customized style! "@android:style/theme.name".

    Distinguish themes by Configuration qualifier:

    value/style.xml - > parent="@android:style/Theme.Light"
    value-v11/style.xml -> parent="@android:style/Theme.Holo.Light"
    value-v14/style.xml -> parent="@android:style/Theme.DeviceDefault.Light"
    

    http://code.google.com/p/android/issues/detail?id=22920

提交回复
热议问题