FloatingActionButton icon indicating copy to clipboard operation
FloatingActionButton copied to clipboard

Can't set set icon for the FloatingActionButton using Vector Drawable?

Open EdgeAI-Lab opened this issue 7 years ago • 4 comments

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!

EdgeAI-Lab avatar Aug 21 '17 08:08 EdgeAI-Lab

@FanHongchuang add like this..it works android:src="@drawable/ic_arrow"

harshad008 avatar Aug 24 '17 09:08 harshad008

android:src="@drawable/ic_arrow" this does not solve the problem. In 4.4 and below Android versions it causes a crash.

zenkhas avatar Sep 26 '17 07:09 zenkhas

Is this issue fixed? Vector Drawables are not visible using app:srcCompat.

ibrahimbroachwala avatar Feb 24 '18 15:02 ibrahimbroachwala

@ibrahimbroachwala here is the answer: here

sadegh-q avatar May 29 '18 11:05 sadegh-q