public void setMenuItem(MenuItem menuItem) {
        this.mMenuItem = menuItem;
        mMenuItem.setOnMenuItemClickListener(item -> {
            showSearch();
            return true;
        });
    }
Call this method and pass the menu item so this class can handle click events for the Menu Item.

@param menuItem
android/third_party/search/src/main/java/com/miguelcatalan/materialsearchview/MaterialSearchView.java