Interface MenuView


@Internal public interface MenuView
Minimal interface for a menu view. initialize(MenuBuilder) must be called for the menu to be functional.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Minimal interface for a menu item view.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the default animations to be used for this menu when entering/exiting.
    void
    Initializes the menu to the given menu.
  • Method Details

    • initialize

      void initialize(MenuBuilder menu)
      Initializes the menu to the given menu. This should be called after the view is inflated.
      Parameters:
      menu - The menu that this MenuView should display.
    • getWindowAnimations

      int getWindowAnimations()
      Returns the default animations to be used for this menu when entering/exiting.
      Returns:
      A resource ID for the default animations to be used for this menu.