项目作者: rohan2817

项目描述 :
A list dialog with option of filtering the list items
高级语言: Java
项目地址: git://github.com/rohan2817/FilterableListDialog.git
创建时间: 2017-09-26T08:58:21Z
项目社区:https://github.com/rohan2817/FilterableListDialog

开源协议:

下载


FilterableListDialog

An Android list dialog showing list of items, with an EditText to filter items given in the list.

Current Version
Minimum SDK

Usage

Gradle Dependency

  1. dependencies {
  2. compile 'me.rohanpeshkar.filterablelistdialog:filterablelistdialog:0.0.1'
  3. }

Using Dialog

Using list dialog is pretty simple, it needs a list of items to be shown in dialog. For now it needs to be ArrayList<String>.
Example Usage :

  1. FilterableListDialog.create(this, getListItems(),
  2. new FilterableListDialog.OnListItemSelectedListener() {
  3. @Override
  4. public void onItemSelected(String item) {
  5. //Use selected item as needed
  6. }
  7. }).show();

getListItems() will return list of items to be shown in dialog.

Warning: Please remember to call show() method as FilterableListDialog.create() will only return the instance and does not show the dialog.