Android Search Dialog Library
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
.idea gradle updated Nov 6, 2017
app gradle updated Nov 6, 2017
gradle/wrapper gradle updated Nov 6, 2017
searchdialog closed the issue #1 Nov 14, 2017
.gitignore
.hgignore Initial commit Nov 6, 2017
README.md Update README.md Nov 8, 2017
build.gradle git ignore updated Nov 6, 2017
gradle.properties gradle updated Nov 6, 2017
gradlew gradle updated Nov 6, 2017
gradlew.bat gradle updated Nov 6, 2017
instapk.properties closed the issue #1 Nov 14, 2017
settings.gradle

README.md

Android Arsenal

SearchDialog

Android Search Dialog Library

Setup

1. Provide the gradle dependency

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Add the gradle dependency to your app module build.gradle file:

	dependencies {
	         compile 'com.github.ajithvgiri:SearchDialog:v1.0'
	}

2. Initialization of the SearchDialog

model contains id and title

      List<SearchListItem> searchListItems = new ArrayList<>();
      SearchableDialog  searchableDialog = new SearchableDialog(this, searchListItems, "Title");

3. Show the SearchDialog

        searchableDialog.show();

4. Get Selected Item from the SearchDialog

        searchableDialog.setOnItemSelected(new OnSearchItemSelected() {
           @Override
           public void onClick(int position, SearchListItem searchListItem) {
               // searchListItem.getId(); returns id
               // searchListItem.getTitle(); returns title
           }
        });

5. Screen Shots

Search Dialog