FloatingActionButton icon indicating copy to clipboard operation
FloatingActionButton copied to clipboard

Label is not shown

Open namikazebadri opened this issue 9 years ago • 8 comments

i have this in my xml

<com.github.clans.fab.FloatingActionMenu android:id="@+id/fabMenu" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_marginRight="16dp" android:layout_marginBottom="16dp" android:layout_marginLeft="10dp" android:layout_marginTop="10dp" fab:menu_labels_style="@style/MenuLabelsStyle" fab:menu_labels_showAnimation="@anim/jump_from_down" fab:menu_labels_hideAnimation="@anim/jump_to_down" fab:menu_animationDelayPerItem="0" app:fab_colorRipple="#99FFFFFF" app:fab_showShadow="true" app:fab_shadowColor="#66000000" fab:menu_labels_maxLines="1" fab:menu_labels_ellipsize="end" fab:menu_colorRipple="#99FFFFFF"> <com.github.clans.fab.FloatingActionButton android:id="@+id/fabStartChat" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/fab_start_chat" fab:fab_label="Menu item 1" style="@style/MenuButtonsStyle" /> <com.github.clans.fab.FloatingActionButton android:id="@+id/fabAddContact" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/fab_add_contact" fab:fab_label="Menu item 2" style="@style/MenuButtonsStyle" /> <com.github.clans.fab.FloatingActionButton android:id="@+id/fabCreateStatus" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/fab_create_status" fab:menu_fab_label="Menu item 3" style="@style/MenuButtonsStyle" /> </com.github.clans.fab.FloatingActionMenu> but why label of the FloatingActionButton is not shown?,

namikazebadri avatar Sep 29 '16 06:09 namikazebadri

Yes label not display.

pnjolapara avatar Dec 14 '16 12:12 pnjolapara

Try this, hope it helps I had the same issue

android:layout_width="match_parent" android:layout_height="match_parent"

nisd93 avatar Apr 20 '17 13:04 nisd93

@nisd93 it works! thank u!

elanpang avatar Jun 09 '17 19:06 elanpang

@nisd93 Not work for Me

iman100 avatar Aug 12 '17 13:08 iman100

Not work for Me also

nurzaly avatar May 06 '18 14:05 nurzaly

Try this. Change FAB(Floating Action Button)'s fab:fab_label to app:fab_label . And use app:menu_labels_style. not fab:menu_labels_style. It works for me.

Zi-Yun avatar Jul 18 '18 01:07 Zi-Yun

change fab:fab_lable to app:fab_lable solved my issue

iamadityaaz avatar Mar 26 '19 03:03 iamadityaaz

@iamadityaaz , thanku! it worked.

dipeshb1 avatar Jul 06 '19 12:07 dipeshb1