public interface AppMenuPropertiesDelegate
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getFooterResourceId() |
int |
getHeaderResourceId() |
void |
onFooterViewInflated(AppMenu appMenu,
View view)
A notification that the footer view has finished inflating.
|
void |
onHeaderViewInflated(AppMenu appMenu,
View view)
A notification that the header view has finished inflating.
|
void |
onMenuItemClicked(MenuItem item)
Handles menu click events.
|
void |
prepareMenu(Menu menu)
Allows the delegate to show and hide items before the App Menu is shown.
|
boolean |
shouldShowAppMenu() |
boolean |
shouldShowFooter(int maxMenuHeight)
Determines whether the footer should be shown based on the maximum available menu height.
|
boolean |
shouldShowHeader(int maxMenuHeight)
Determines whether the header should be shown based on the maximum available menu height.
|
boolean shouldShowAppMenu()
void prepareMenu(@NonNull
Menu menu)
menu - Menu that will be used as the source for the App Menu pop up.boolean shouldShowHeader(int maxMenuHeight)
maxMenuHeight - The maximum available height for the menu to draw.int getHeaderResourceId()
void onHeaderViewInflated(@NonNull
AppMenu appMenu,
@NonNull
View view)
view - The view that was inflated.appMenu - The menu the view is inside of.boolean shouldShowFooter(int maxMenuHeight)
maxMenuHeight - The maximum available height for the menu to draw.getFooterResourceId(), should be shown.int getFooterResourceId()
void onFooterViewInflated(@NonNull
AppMenu appMenu,
@NonNull
View view)
view - The view that was inflated.appMenu - The menu the view is inside of.void onMenuItemClicked(@NonNull
MenuItem item)
item - The clicked menuItem