FloatingActionButton
FloatingActionButton copied to clipboard
Label is not shown
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?,
Yes label not display.
Try this, hope it helps I had the same issue
android:layout_width="match_parent" android:layout_height="match_parent"
@nisd93 it works! thank u!
@nisd93 Not work for Me
Not work for Me also
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.
change fab:fab_lable to app:fab_lable solved my issue
@iamadityaaz , thanku! it worked.