You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.
If FloatingActionMenu add from source code (not xml), than onFinishInflate not called
So mMenuButton OnClickListener not set
https://developer.android.com/reference/android/view/View.html#onFinishInflate()
I suggest that Move OnClickListenerSetter to createMenuButton() method
createMenuButton() {
mMenuButton.setOnClickListener(new OnClickListener() {
@OverRide
public void onClick(View v) {
toggle(mIsAnimated);
}
});
}
instead of
createLabels {
...
if (fab == mMenuButton) {
mMenuButton.setOnClickListener(new OnClickListener() {
@OverRide
public void onClick(View v) {
toggle(mIsAnimated);
}
});
}
...
}
The text was updated successfully, but these errors were encountered: