MaterialBanner icon indicating copy to clipboard operation
MaterialBanner copied to clipboard

Support Vector Drawable on XML layout

Open Fabi755 opened this issue 6 years ago • 0 comments

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.

Fabi755 avatar Jun 17 '19 20:06 Fabi755