I have this FAB view in my fragment:
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:layout_margin="@dimen/fab_margin" />
But when I programmatically set the text via:
mFab.setText("Hello");
It does not set the FAB's text to "Hello". How do I fix this?