NavigationViewActions


public final class NavigationViewActions


View actions for interacting with NavigationView

Summary

Public methods

static ViewAction
navigateTo(int menuItemId)

Returns a ViewAction that navigates to a menu item in NavigationView using a menu item resource id.

Public methods

public static ViewAction navigateTo(int menuItemId)

Returns a ViewAction that navigates to a menu item in NavigationView using a menu item resource id.

View constraints:

  • View must be a child of a DrawerLayout
  • View must be of type NavigationView
  • View must be visible on screen
  • View must be displayed on screen
Parameters
int menuItemId

the resource id of the menu item

Returns
ViewAction

a ViewAction that navigates on a menu item