6

I am confused which version of SearchView I should use. The documentation for androidx.appcompat.widget.SearchView clearly states

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

However I can't quite imagine that this is true or a good idea, as e.g. android.widget.SearchView from API level 11 might be different than e.g. the one from API level 29. So, anyone knows why the official documentation recommends to use android.widget.SearchView instead of androidx.appcompat.widget.SearchView?

4
  • 5
    I prefer the support version. The support version receives more frequent updates than the built in one. The documentation was the same in the old support libraries. It seems that this sentence was written a lot of years ago. Commented Jul 16, 2020 at 22:39
  • thank you, that's also what I assumed. Commented Jul 17, 2020 at 21:00
  • which is the support version here? please reply Commented Dec 26, 2020 at 9:03
  • 3
    @VijayJangid The ones in the androidx namespace are the newer ones / support versions. Commented Dec 26, 2020 at 11:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.