material/src/main/java/com/rey/material/util/ToolbarManager.java
public void createMenu(int menuId){
        mToolbar.inflateMenu(menuId);
        mMenuDataChanged = true;
        if(mAppCompatDelegate == null)
            onPrepareMenu();
    }
/**
     * This funcction should be called in onCreateOptionsMenu of Activity or Fragment to inflate a new menu.
     * @param menuId
     */
This funcction should be called in onCreateOptionsMenu of Activity or Fragment to inflate a new menu.
@param menuId
This funcction should be called in onCreateOptionsMenu of Activity or Fragment to inflate a new menu . @param menuId
public void createMenu(int menuId){
        mToolbar.inflateMenu(menuId);
        mMenuDataChanged = true;
        if(mAppCompatDelegate == null)
            onPrepareMenu();
    }
public void createMenu ( int menuId ) { mToolbar . inflateMenu ( menuId ) ; mMenuDataChanged = true ; if ( mAppCompatDelegate == null ) onPrepareMenu ( ) ; }
This funcction should be called in onCreateOptionsMenu of Activity or Fragment to inflate a new menu.
This funcction should be called in onCreateOptionsMenu of Activity or Fragment to inflate a new menu .