Java Code Examples for android.support.design.widget.NavigationView#OnNavigationItemSelectedListener

The following examples show how to use android.support.design.widget.NavigationView#OnNavigationItemSelectedListener . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DesignDSL.java    From anvil with MIT License 4 votes vote down vote up
public static Void navigationItemSelectedListener(NavigationView.OnNavigationItemSelectedListener arg) {
  return BaseDSL.attr("navigationItemSelectedListener", arg);
}
 
Example 2
Source File: CoursesActivity.java    From ZfsoftCampusAssit with Apache License 2.0 4 votes vote down vote up
@Override
protected NavigationView.OnNavigationItemSelectedListener getNavigationItemSelectedListener() {
    return item -> CoursesActivity.this.menuItemChecked(item.getItemId());
}
 
Example 3
Source File: BaseDrawerLayoutActivity.java    From ZfsoftCampusAssit with Apache License 2.0 2 votes vote down vote up
/**
 * Fill in NavigationView.OnNavigationItemSelectedListener
 *
 * @return NavigationView.OnNavigationItemSelectedListener
 */
protected abstract NavigationView.OnNavigationItemSelectedListener getNavigationItemSelectedListener();