Most visited

Recently visited

NavigationView.OnNavigationItemSelectedListener

public static interface NavigationView.OnNavigationItemSelectedListener

android.support.design.widget.NavigationView.OnNavigationItemSelectedListener


监听器用于处理导航项目上的事件。

Summary

Public methods

abstract boolean onNavigationItemSelected(MenuItem item)

当选择导航菜单中的项目时调用。

Public methods

onNavigationItemSelected

boolean onNavigationItemSelected (MenuItem item)

当选择导航菜单中的项目时调用。

Parameters
item MenuItem: The selected item
Returns
boolean true to display the item as the selected item

Hooray!