yavski / fab-speed-dial

FAB flinging out actionable menu items using the Speed dial metaphor
Apache License 2.0
477 stars 122 forks source link

Issue when setting a vector drawable as the fab icon #72

Open vpratfr opened 7 years ago

vpratfr commented 7 years ago

Occurs at line 191

this.fabDrawable = typedArray.getDrawable(styleable.FabSpeedDial_fabDrawable);

org.xmlpull.v1.XmlPullParserException: Binary XML file line #1: invalid drawable tag vector

This happens when running on API < 21

I guess you should use the app compat functions to set the FAB drawable and to load drawables:

AppCompatResources.getDrawable(context, R.drawable.ic_close)