Search code examples
androidsearchview

Can i use search view for API level 8


I was trying to use search View in my application but it showed an error i.e View require API level 11(current minimum is 8). Is there any method through which i can use this search view by keeping min API level to 8 only?

If there then provide a small code snippet. Thanks


Solution

  • As you can see in the documentation, the SearchView is added in API level 11. If you want to use it below that, use the Support Library: https://developer.android.com/reference/android/support/v7/widget/SearchView.html

    See also this post.