Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

FloatingActionMenu onFinishInflate not called #473

Description

@pomus

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);
}
});
}
...
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions