private void executeSearchTitleClick(final SimpleDialogTitleViewBinding titleView) {
        if (titleView.dialogTitle.getVisibility() == View.VISIBLE) {
            titleView.dialogTitle.setVisibility(View.GONE);
            titleView.dialogSearchIcon.setImageResource(R.drawable.ic_menu_cancel);
            titleView.dialogSearch.setVisibility(View.VISIBLE);
            // force keyboard
            Keyboard.show(getContext(), titleView.dialogSearch);
        } else {
            titleView.dialogTitle.setVisibility(View.VISIBLE);
            titleView.dialogSearchIcon.setImageResource(R.drawable.ic_menu_search);
            titleView.dialogSearch.setVisibility(View.GONE);
            titleView.dialogSearch.setText("");
        }
    }
Sets an action to execute when neutral button is clicked
main/src/main/java/cgeo/geocaching/ui/dialog/SimpleDialog.java