Skip to content

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

@vpratfr

Description

@vpratfr

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions