protected virtual bool OnItemSelected(IMenuItem item) { var id = item.ItemId; if (id == MoreTabId) { var items = CreateTabList(ShellItem); _bottomSheetDialog = BottomNavigationViewUtils.CreateMoreBottomSheet(OnMoreItemSelected, Context, items, _bottomView.MaxItemCount); _bottomSheetDialog.Show(); _bottomSheetDialog.DismissEvent += OnMoreSheetDismissed; } else { var shellSection = ShellItem.Items[id]; if (item.IsChecked) { OnTabReselected(shellSection); } else { return(ChangeSection(shellSection)); } } return(true); }
protected virtual void SetupMenu(IMenu menu, int maxBottomItems, ShellItem shellItem) { var currentIndex = shellItem.Items.IndexOf(ShellSection); var items = CreateTabList(shellItem); BottomNavigationViewUtils.SetupMenu( menu, maxBottomItems, items, currentIndex, _bottomView, Context); UpdateTabBarVisibility(); }
protected virtual Drawable CreateItemBackgroundDrawable() { return(BottomNavigationViewUtils.CreateItemBackgroundDrawable()); }