Code example for MenuInflater

0
	public Menu getMenu() {
		return mMenu;
	} 
 
	public MenuInflater getMenuInflater() {
		return new MenuInflater(mContext);
	} 
 
	public void inflate(final int menuRes) {
		new MenuInflater(mContext).inflate(menuRes, mMenu);
	} 
 
	@Override 
	public void onDismiss() { 
		if (!mDidAction && mDismissListener != null) {
			mDismissListener.onDismiss(this);
		} 
	} 
 
	@Override 
	public void onItemClick(final AdapterView<?> adapter, final View view, final int position, final long id) {