All Projects β†’ danbrough β†’ Android-SearchView-Demo

danbrough / Android-SearchView-Demo

Licence: other
A demonstration application for android's SeachView.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Android-SearchView-Demo

searchview
πŸ” A beautiful searchview with animations.
Stars: ✭ 12 (-82.35%)
Mutual labels:  searchview
RealmSearchView
SearchView with result list powered by Realm
Stars: ✭ 23 (-66.18%)
Mutual labels:  searchview
Searchable-RecyclerView-Demo
An example app using a SearchView to filter items in a RecyclerView while taking full advantage of item animations!
Stars: ✭ 722 (+961.76%)
Mutual labels:  searchview
BooksApp
Book selling application with MVVM (Model, View, ViewModel), LiveData, DataBinding, Retrofit, Room Database, Navigation Component(NavGraph, BottomNav), ViewPager2 in TabLayout, SearchView, Vertical Adapter(BestSellers) and Horizontal Adapter(All Books) with ConcatAdapter for Main Screen, Firebase Auth, SearchView in Adapter, Picasso, Lottie, Ani…
Stars: ✭ 53 (-22.06%)
Mutual labels:  searchview

Android SearchView Demo

This is a small demonstration of how I managed to get the Android SearchView widget working nice. If you have been going mad trying to make the SearchView's autocomplete dropdown look nice with a dark action bar then this code will help.

This is a standalone app supporting android versions 14 -> 28 featuring:

  • Proper material theme styling of the search view
  • How to wire up the search view to a ContentProvider
  • How to use the SearchRecentSuggestionsProvider
  • How to programmatically close the SearchView when the back button is pressed
  • How to programmatically close the SearchView without weird highlighting of the actionBar

enter image description here enter image description here

There is also an example of implementing a custom suggestion layout

enter image description here

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].