All Projects β†’ lnicolet β†’ Hiddensearchwithrecyclerview

lnicolet / Hiddensearchwithrecyclerview

Licence: mit
Simple library to have a hidden/shown search bar

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Hiddensearchwithrecyclerview

Ionic Selectable
An Ionic-based versatile and highly customizable component that serves as a replacement to Ionic Select, and allows to search items, create items, customize the layout with templates and much more.
Stars: ✭ 459 (+108.64%)
Mutual labels:  search, searchbar
ci4-album
πŸ”₯ CodeIgniter 4 example Album module uses Domain Driven Design Architecture with Tactical Pattern
Stars: ✭ 67 (-69.55%)
Mutual labels:  search, layout
Modernsearchbar
The famous iOS search bar with auto completion feature implemented.
Stars: ✭ 167 (-24.09%)
Mutual labels:  search, searchbar
Rskcollectionviewretractablefirstitemlayout
A light-weight UICollectionViewFlowLayout subclass that allows the first item to be retractable.
Stars: ✭ 281 (+27.73%)
Mutual labels:  search, searchbar
Ynsearch
πŸ” Awesome fully customize search view like Pinterest written in Swift 5.0 + Realm support!
Stars: ✭ 1,131 (+414.09%)
Mutual labels:  search, searchbar
Search Ui
Search UI. Libraries for the fast development of modern, engaging search experiences.
Stars: ✭ 1,294 (+488.18%)
Mutual labels:  search, searchbar
Materialsearchbar
Material Design Search Bar for Android
Stars: ✭ 2,008 (+812.73%)
Mutual labels:  search, searchbar
Arranged
Open source replacement of UIStackView for iOS 8 (100% layouts supported)
Stars: ✭ 202 (-8.18%)
Mutual labels:  layout
Scout
RESTful search server written in Python, powered by SQLite.
Stars: ✭ 213 (-3.18%)
Mutual labels:  search
Pageable
Create full page scrolling web pages. No jQuery.
Stars: ✭ 199 (-9.55%)
Mutual labels:  scrolling
Priority Nav Scroller
Priority Nav Scroller is a plugin for the priority+ navigation pattern.
Stars: ✭ 198 (-10%)
Mutual labels:  scrolling
Layouts
Grab-and-go layouts for React
Stars: ✭ 202 (-8.18%)
Mutual labels:  layout
Structured Filter
jQuery UI widget for structured queries like "Contacts where Firstname starts with A and Birthday before 1/1/2000 and State in (CA, NY, FL)"...
Stars: ✭ 213 (-3.18%)
Mutual labels:  searchbar
Gravity View
Introducing Gravity View: Because swiping is so yesterday!
Stars: ✭ 200 (-9.09%)
Mutual labels:  scrolling
Fuzzysort
Fast SublimeText-like fuzzy search for JavaScript.
Stars: ✭ 2,569 (+1067.73%)
Mutual labels:  search
Android 3d Layout
Wow effect, transform your layout into 3D views
Stars: ✭ 199 (-9.55%)
Mutual labels:  layout
Search Engine Parser
Lightweight package to query popular search engines and scrape for result titles, links and descriptions
Stars: ✭ 216 (-1.82%)
Mutual labels:  search
Material Ui Search Bar
Material design search bar
Stars: ✭ 215 (-2.27%)
Mutual labels:  search
Algoliasearch Netlify
Official Algolia Plugin for Netlify. Index your website to Algolia when deploying your project to Netlify with the Algolia Crawler
Stars: ✭ 208 (-5.45%)
Mutual labels:  search
Shsearchbar
The search bar that doesn't suck.
Stars: ✭ 206 (-6.36%)
Mutual labels:  search

Codacy Badge Build Status License: MIT Download Android Arsenal

Scroll Down To Search Recycler View

An easy way to search in your recycler view without having an always-on display search view.

default sample

How does it work?

Ever wanted a recycler view with a search bar? That's a simple library that lets you wrap your recyclerView into my custom layout which provides a hidden searchview which you can show by scrolling up/down the recycler.

Include

To include this library in your Android project you have to use gradle.

compile 'com.nicolettilu:hiddensearchwithrecyclerview:0.0.5'

Setup

Here's how it works:

<com.nicolettilu.hiddensearchwithrecyclerview.HiddenSearchWithRecyclerView
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <androidx.recyclerview.RecyclerView
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
</com.nicolettilu.hiddensearchwithrecyclerview.HiddenSearchWithRecyclerView>

You need to wrap your RecyclerView with the custom layout the library provides. At the moment the library provides this configurations:

<attr name="filterWhileTyping" format="boolean"/> <!-- default value: true -->
<attr name="scrollToTopBeforeShow" format="boolean" /> <!-- default value: false -->
<attr name="scrollToBottomBeforeHide" format="boolean" /> <!-- default value: false -->
<attr name="visibleAtInit" format="boolean" /> <!-- default value: false -->
<attr name="hideAtScroll" format="boolean" /> <!-- default value: true -->

You can customize thos attributes in the XML file:

<com.nicolettilu.hiddensearchwithrecyclerview.HiddenSearchWithRecyclerView
        android:id="@+id/hidden_search_with_recycler"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:scrollToBottomBeforeHide="true"
        app:scrollToTopBeforeShow="true"
        app:filterWhileTyping="false"
        app:visibleAtInit="true">
        <!-- your RecyclerView here -->
</com.nicolettilu.hiddensearchwithrecyclerview.HiddenSearchWithRecyclerView>

And in code as well:

val hiddenSearchWithInRecycler = findViewById(R.id.hidden_search_with_recycler) as HiddenSearchWithRecyclerView

hiddenSearchWithInRecycler.hideAtScroll = true
hiddenSearchWithInRecycler.visibleAtInit = false
hiddenSearchWithInRecycler.scrollToBottomBeforeHide = false
hiddenSearchWithInRecycler.scrollToTopBeforeShow = false
hiddenSearchWithInRecycler.filterWhileTyping = true

Here as some example of the results:

Default example Scroll at top/bottom before hide/show SearchView SearchView shown at init example
default sample scroll before hide sample show at init sample

 

The MIT License (MIT)

Copyright Β© 2018 Luca Nicoletti

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the β€œSoftware”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED β€œAS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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].