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
Use removeGlobalOnLayoutListener for API 15+ #12
Comments
If you tweak this: You can drop the API to 14+ |
What is the issue with the getColor method? |
The |
Actually Context.getColor() was added in API 23 and as you can see, we only call that above for older versions we fallback on code which is compatible with API 1. |
ah, you are right! my mind skipped over the whole if statement :) |
Now the minimum API is 14. |
Have you considered using
removeGlobalOnLayoutListener
here:https://github.com/team-supercharge/ShimmerLayout/blob/master/shimmerlayout/src/main/java/io/supercharge/shimmerlayout/ShimmerLayout.java#L98
This way, you can drop the minimum version of Android required to API 15 (v4.0.3). Although not a major jump, this makes this library available a few more devices.
The text was updated successfully, but these errors were encountered: