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.
If you're developing your app for API level 11 and higher only, you should instead use the framework android.widget.SearchView class.