Code example for MenuInflater

0
	 *         from XML into the menu returned by {@link #getMenu()}. 
	 *  
	 * @see #getMenu() 
	 */ 
	public MenuInflater getMenuInflater() {
		return new MenuInflater(mContext);
	} 
 
	/** 
	 * Inflate a menu resource into this PopupMenu. This is equivalent to 
	 * calling popupMenu.getMenuInflater().inflate(menuRes, 
	 * popupMenu.getMenu()). 
	 *  
	 * @param menuRes 
	 *            Menu resource to inflate 
	 */ 
	public void inflate(int menuRes) {
		getMenuInflater().inflate(menuRes, mMenu);
	}