Giter Site home page Giter Site logo

searchview's Introduction

SearchView

Persistent SearchView Library in Material Design. Now it supports layout like section My apps in Google Play Store. https://www.google.com/design/spec/patterns/search.html.

Material colors in the project: https://gist.github.com/lapism/3b417142300d9dbde3b4

Sample application on: Get it on Google Play

Usage

Add the dependencies to your gradle file:

dependencies {
        compile 'com.lapism:searchview:1.3.9'
        }

![Screenshot 1] (https://github.com/lapism/SearchView/blob/master/images/image_1.png) ![Screenshot 2] (https://github.com/lapism/SearchView/blob/master/images/image_2.png) ![Screenshot 3] (https://github.com/lapism/SearchView/blob/master/images/image_3.png) ![Screenshot 4] (https://github.com/lapism/SearchView/blob/master/images/image_4.png)

In code (Check the Sample project!):

@Override
public boolean onOptionsItemSelected(MenuItem item) {
    switch (item.getItemId()) {
        case R.id.action_search: {
            mSearchView.showSearch();
            return true;
        }
        default:
            return super.onOptionsItemSelected(item);
    }
}

In xml (Check the Sample project!):

<com.lapism.searchview.SearchView
    android:id="@+id/search_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />
        
You can find examples of layouts in the Sample project !!!     

Styling SearchView:

app:search_style="color"
app:search_style="classic"

app:search_theme="dark"
app:search_theme="light"

app:search_divider="true"
app:search_divider="false"

searchview's People

Contributors

bruce3x avatar ultraon avatar

Watchers

James Cloos avatar ahmad efendi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.