{"repo":"mars885/persistent-search-view","free":true,"listed":false,"github":"https://github.com/mars885/persistent-search-view","clone":"git clone https://github.com/mars885/persistent-search-view.git","description":"An Android library designed to simplify the process of implementing search-related functionality.","language":"Java","stars":409,"topics":["android","android-library","android-searchview","searchview","search"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"PersistentSearchView An android library designed to simplify the process of implementing search-related functionality. Contents Demo Getting Started Basic Implementation Basic Recent Suggestions Implementation Basic Regular Suggestions Implementation Advanced Use Difference between recent and regular suggestions Contribution Hall of Fame License Demo (YouTube) Getting Started 1. Make sure that you've added the mavenCentral() repository to your top-level build.gradle file. 2. Add the library dependency to your module-level build.gradle file. 3. If your targetSdk is 30 and you want to use the voice search feature, add these lines to your app's AndroidManifest.xml : 4. Proceed with the implementation of your own search view. Basic Implementation Implementation of a PersistentSearchView with basic functionality involves 2 main steps - declaring a widget inside the XML file of your choice and configuring it in one of the Java/Kotlin classes. Let's implement a PersistentSearchView with basic functionality by following the steps listed above: 1. Declaring a widget inside the XML file. XML (click to expand) 2. Configuring the widget in one of the Java/Kotlin classes. Kotlin (click to expand) Java (click to expand) Basic Recent Suggestions Implementation Implementation of a PersistentSearchView with recent suggestions is pretty much the same as Basic Implementation with one exception: the view configuration. In this implementation you'll need to provide a bit more configuration for th","default_branch":null,"files":null,"tree":[],"storefront":"/r/mars885","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mars885/persistent-search-view/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}