void RemoveTabBarHeightListener(BottomNavigationView bottomNavView) { if (null != tabBarLayoutChangeListener) { bottomNavView?.RemoveOnLayoutChangeListener(tabBarLayoutChangeListener); tabBarLayoutChangeListener.HeightChanged -= HandleTabBarHeightChanged; tabBarLayoutChangeListener.Dispose(); tabBarLayoutChangeListener = null; } }