Skip to content
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

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

Open
vpratfr opened this issue Jul 26, 2017 · 0 comments
Open

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

vpratfr opened this issue Jul 26, 2017 · 0 comments

Comments

@vpratfr
Copy link

vpratfr commented Jul 26, 2017

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant