SearchView

Additional

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

Show card

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:1.0.0-alpha08'
}

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="wrap_content" />

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="wrap_content" />

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-alpha08

  • Dependency is released on Bintray
  • Improved animations

1.0.0-alpha07

  • Bugfixes

1.0.0-alpha06

  • Bugfixes

1.0.0-alpha05

  • First upload to repository

Author

License

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