private MenuItem createNewMenuItem ( int group , int id , int categoryOrder , int ordering , CharSequence title , int defaultShowAsAction ) { return new MenuItem ( group , id , categoryOrder , title ) ; }
Layoutlib overrides this method to return its custom implementation of MenuItem