-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
llegalArgumentException when setting error message #122
Comments
same error |
I also have been getting this error for sometime. |
I am also facing same issue many times. on android os 8.1 |
Hi you can try with this lib: https://github.com/Chivorns/SmartMaterialSpinner |
Still having this issue |
This error can occur when setError() is called during a lifecycle Activity/Fragment , rather than a user action. For example if you call setError onStart, on Resume. Spinner can't draw and measure correctly. I solved this error by calling setError in handler.postDelayed() |
Hi @novas1r1 , have you tried https://github.com/Chivorns/SmartMaterialSpinner yet? |
I'm getting this exception if I set an error message in onCreate:
Maybe this is happening because the view wasn't completely laid out when calling setError().
A simple workaround is to delay the setError() by some milliseconds, but I don't know how reliable this is on older devices or if it will work everytime.
The text was updated successfully, but these errors were encountered: