zendesk / android-floating-action-button

Floating Action Button for Android based on Material Design specification
Apache License 2.0
6.38k stars 1.46k forks source link

Vector Drawable Icons #357

Open dovahkiin98 opened 6 years ago

dovahkiin98 commented 6 years ago

I'm trying to put vector drawables for FloatingActionButton in fab_icon, it throws an exception while inflating, resource not found.

jdvp commented 5 years ago

Do you have any more detail on this issue? I am able to set app:fab_icon using vector drawables with no problem in my personal project

or-dvir commented 4 years ago

same here.

<com.getbase.floatingactionbutton.FloatingActionButton
            android:id="@+id/fragmentAllLists_fab_regular"
            style="@style/fab_sub"
            app:fab_icon="@drawable/ic_list_regular_white" //this is a vector drawable
            app:fab_title="@string/regular"/>

produces AAPT: error: resource drawable/ic_list_regular_white (aka my.pacjage.name:drawable/ic_list_regular_white) not found.