SearchView

Additional

Language
Kotlin
Version
N/A
Created
Sep 29, 2015
Updated
Sep 18, 2019
Owner
Martin Lapiš (lapism)
Contributor
Martin Lapiš (lapism)
1
Activity
Badge
Generate
Download
Source code
APK file

Promotion

Search

Material Design Search component for Android

  • Last Material Design
  • Persistent search
  • Expandable search
  • Styling
  • AndroidX
  • Kotlin

Material Design pattern:https://material.io/design/navigation/search.html

Versions history:https://bintray.com/lapism/search/search

Donations

Please support me!

Usage

minSdkVersion 21 targetSdkVersion 29

Add the dependency to your gradle file:

dependencies {
    implementation 'com.lapism.search:search: ASAP'
}

SearchView

val searchView = findViewById<SearchView>(R.id.searchView)

XML

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

XML attributes

        <attr name="search_navigation_icon_support" format="enum">
            <enum name="hamburger" value="100" />
            <enum name="arrow" value="101" />
            <enum name="animation" value="102" />
        </attr>

SearchMenuItem

val searchMenuItem = findViewById<SearchMenuItem>(R.id.searchMenuItem)

XML

        <com.lapism.search.widget.SearchMenuItem
            android:id="@+id/searchMenuItem"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>

XML attributes

        <attr name="search_navigation_icon_support" format="enum">
            <enum name="hamburger" value="100" />
            <enum name="arrow" value="101" />
            <enum name="animation" value="102" />
        </attr>

Changelog

1.0.0-alpha05

  • First release

Author

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.