LOOSER
LOOSER

Reputation: 215

How To Apply Search Operation in arraylist on word basis?

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

Answers (3)

Sankar
Sankar

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

Ram kiran Pachigolla
Ram kiran Pachigolla

Reputation: 21191

check this .

Here you can initialize your arraylist to the listview_array.

Upvotes: 0

Related Questions