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