Class for common logic between this MaterialButtonGroup and the OverflowLinearLayout overflow features.