MaterialBanner
MaterialBanner copied to clipboard
Support Vector Drawable on XML layout
If you try to use some vector drawable in XML layout the banner cause a crash on older devices (issue #5).
I have tested with Android 4.2 (API 17) and the sample app. On clicking Banner from layout the app crashing.
This PR fix them by loading the drawable by ID and the existing context compat logic.