SearchView

Additional

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

Announcement

Search

  • Material Design Search component for Android
  • Last Google Material Design
  • Styling
  • Kotlin

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

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

Donations

Please support me!

Usage

minSdkVersion 21 targetSdkVersion 29

Add the dependency to your gradle file:

dependencies {
    implementation 'com.lapism:search:2.0.1@aar'
}

SearchView

val materialSearchView = findViewById<MaterialSearchView>(R.id.materialSearchView)

XML

        <com.lapism.search.widget.MaterialSearchView
            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="none" value="1000" />
            <enum name="menu" value="1001" />
            <enum name="arrow" value="1002" />
            <enum name="search" value="1003" />
        </attr>

Changelog

2.0.1

  • fixed focus animation
  • small improvements

2.0.0

  • NOT COMPATIBLE WITH 1.0 !!!
  • SearchMenu item removed
  • SearchView renamed to MaterialSearchView
  • changed NavigationIconSupport properties
  • NavigationIconSupport properties moved to SearchLayout
  • fixed bugs
  • improved open and hide animation
  • new public methods

1.0.0

  • first release

Author

License

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