public void setOnSearchViewListener(SearchViewListener listener) {
        mSearchViewListener = listener;
    }
Set this listener to listen to Search View open and close events

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