Giter VIP home page Giter VIP logo

searchview's Introduction

SearchView

Next version 3.0 will be released in April or May 2016 with changes and fixes.

If you want to be prepared for next release then test version

0.1.2

is uploaded to jCenter. It has some new features, but be aware that version has a lot of changes and still has bugs !!! Otherwise use version 2.2 (below this text).


Because I have done firstly this library as a private project, I would like to know if someone of you use my library in your application. If yes, please send me a name of your app and link to Play Store and I will promote your app in Readme.


Persistent SearchView Library like Play Store.

Check sample project very thoroughly !!!

Features: Material Design, Toolbar / Menu item version, History, Styling.

Google Material Design Pattern: https://www.google.com/design/spec/patterns/search.html

Version history here: https://bintray.com/lapism/maven/searchview/view

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:2.2'
        }

![Screenshot 1] (https://github.com/lapism/SearchView/blob/master/images/image_1.png)![Screenshot2] (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)![Screenshot 5] (https://github.com/lapism/SearchView/blob/master/images/image_5.png)![Screenshot 6] (https://github.com/lapism/SearchView/blob/master/images/image_6.png)

Code:

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case R.id.action_search: {
                mSearchView.show(true/false); // animate, ONLY FOR MENU ITEM
                return true;
            }
            default:
                return super.onOptionsItemSelected(item);
        }
    }

XML:

<com.lapism.searchview.view.SearchView
    android:id="@+id/searchView"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

Styling SearchView:

app:search_version = "toolbar / menu_item"
app:search_style = "toolbar_classic / menu_item_classic / menu_item_color"
app:search_theme = "light / dark"
app:search_divider = "true / false"
app:search_hint = "Hint text"
app:search_hint_size = "16sp"
app:search_voice = "true / false"
app:search_voice_text = "Voice text"
app:search_animation_duration = "360"
app:search_shadow_color = "#80000000"

Apps using this library:

Service Notes

searchview's People

Contributors

bruce3x avatar ultraon avatar seligijus avatar mathbl avatar anandpurushottam avatar gperez88 avatar shailevy avatar

Stargazers

骑蜗牛环世界 avatar

Watchers

James Cloos avatar 骑蜗牛环世界 avatar

Forkers

lwysgit

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.