androidx.appcompat.widget.searchview vs searchView
If you're developing your app for API level 11 and higher only,
you should instead use the framework android.widget.SearchView class.
android developer