You can search the substring of a string also.
This is the advance search filter for android. The standard text view adapter only seems to search from the beginning of whole words so using this library can make it possible to search for parts of the arbitrary string we want.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.mohitjha727:Advanced-Search-Filter:0.0.1'
}
Now you can use this SearchableAdapter class instead of Arrayadapter class in your project
and can apply the same methods that you use with Arrayadapter class.
SearchableAdapter adapter =
new SearchableAdapter(Context, List<String>);
Licensed under the Apache License, Version 2.0