Reputation: 215
I have object arraylist,I have to apply search operation on name basis.suppose there are 5 object in list which have names if I input in searchbox "a" then result should be "arun,ashok .." all which name start by a ,but if I input "ar" then only "arun" should be result .Please anyone help me how this type search aplly in arraylist.
Upvotes: 0
Views: 283
Reputation: 1691
Android is having AutoCompleteTextView. You have to bind your data to textview
Here is link http://developer.android.com/reference/android/widget/AutoCompleteTextView.html
Check this answer also it may help full
Upvotes: 1
Reputation: 21191
Here you can initialize your arraylist to the listview_array
.
Upvotes: 0
Reputation: 4389
Use AutoCompleteTextView http://developer.android.com/reference/android/widget/AutoCompleteTextView.html
Upvotes: 0