FloatingActionButton
FloatingActionButton copied to clipboard
Can't set set icon for the FloatingActionButton using Vector Drawable?
I want to set icon for the FloatingActionButton using Vector Drawable
<com.github.clans.fab.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
fab:srcCompat="@drawable/ic_arrow"
fab:fab_size="normal"
fab:fab_label="Menu item 1" />
But it is invalid, please tell me how to do, thank you very much!
@FanHongchuang add like this..it works android:src="@drawable/ic_arrow"
android:src="@drawable/ic_arrow" this does not solve the problem. In 4.4 and below Android versions it causes a crash.
Is this issue fixed? Vector Drawables are not visible using app:srcCompat.
@ibrahimbroachwala here is the answer: here