SearchView

SearchView from Material Design

Лицензия

Лицензия

Категории

Категории

Search Прикладные библиотеки
Группа

Группа

com.klinkerapps
Идентификатор

Идентификатор

searchview
Последняя версия

Последняя версия

2.2.5
Дата

Дата

Тип

Тип

aar
Описание

Описание

SearchView
SearchView from Material Design
Ссылка на сайт

Ссылка на сайт

https://github.com/klinker24/SearchView
Система контроля версий

Система контроля версий

https://github.com/klinker24/SearchView

Скачать searchview

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.klinkerapps/searchview/ -->
<dependency>
    <groupId>com.klinkerapps</groupId>
    <artifactId>searchview</artifactId>
    <version>2.2.5</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.klinkerapps/searchview/
implementation 'com.klinkerapps:searchview:2.2.5'
// https://jarcasting.com/artifacts/com.klinkerapps/searchview/
implementation ("com.klinkerapps:searchview:2.2.5")
'com.klinkerapps:searchview:aar:2.2.5'
<dependency org="com.klinkerapps" name="searchview" rev="2.2.5">
  <artifact name="searchview" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.klinkerapps', module='searchview', version='2.2.5')
)
libraryDependencies += "com.klinkerapps" % "searchview" % "2.2.5"
[com.klinkerapps/searchview "2.2.5"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.android.support » recyclerview-v7 jar 23.2.0
com.android.support » cardview-v7 jar 23.2.0

Модули Проекта

Данный проект не имеет модулей.

SearchView & CheckableView

Persistent SearchView Library like Play Store. For examples check sample project.

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.klinkerapps:searchview:2.2.5'
}

![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" />
        
<com.lapism.check.CheckableView
    android:id="@+id/checkableView"
    android:layout_width="@dimen/fab"
    android:layout_height="@dimen/fab" />

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"

Styling CheckableView:

app:check_checked = "true / false"
app:check_type = "text / image"
app:check_text = "T"
app:check_text_size = "37sp"
app:check_text_color = "@android:color/white"
app:check_image_checked = "@drawable/image"
app:check_image_unchecked = "@drawable/image"
app:check_background_color_checked = "@android:color/holo_orange_dark"
app:check_background_color_unchecked = "@android:color/holo_orange_dark"

Версии библиотеки

Версия
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1