NavigationBarMenu

Provides a MenuBuilder that can be used to build a menu that can be placed inside navigation bar view such as the bottom navigation menu or the navigation rail view. This implementation of the menu builder prevents the addition of submenus to the primary destinations.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @NonNull viewClass: Class<out Any>, maxItemCount: Int, subMenuSupported: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
val NO_MAX_ITEM_LIMIT: Int = 2147483647
Constant to indicate there is no limit to the number of Navigation Bar items

Functions

Link copied to clipboard
open fun addInternal(group: Int, id: Int, categoryOrder: Int, title: CharSequence): MenuItem
Link copied to clipboard
open fun addSubMenu(group: Int, id: Int, categoryOrder: Int, @NonNull title: CharSequence): SubMenu