Skip to content

Mathbl/SearchView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SearchView

NEXT BIG VERSION IN DEVELOPMENT. But it will not be any time soon :-P.

Persistent SearchView Library in Material Design. 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"

About

Persistent SearchView Library in Material Design.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 100.0%