doing a list view with a live search

i guess it is something that allot of people need and probably everyone does eventually,

but i wanted to see maybe something like that already exist ? and they can share the code ?

or maybe corona has their example of doing that ?

what i want to do is show a list on a screen and on top do a search to act as a live filter to the list below… that it will update the list below…

(like how the contacts work on your phone for example)

for EXAMPLE let’s say i have the list

Abc

Abd

Abe

Bcd

Bab

Bcf

and i start typing “ab”

so it will only show 

Abc

Ade

Bab

is there something like that to corona lua ?

 i guess you could make that yourself, having the first letters is easy, having the letters be in the middle of the string that you search is a bit more tricky … but it will be allot easier if someone has already done a screen like that and can share it ?

You will have to build this yourself, but no worry, this is quite straightforward as you will need to use a tableview and native.newTextField.

Create a tableview and fill its content based on the string entered by the user. You need to create a text listener and inside the “editing” phase you can refresh your table based on the edit field.

To match the string of the user with your list, simply use string.find and you should be all set.

Nicolas

Something like this?

https://coronalabs.com/blog/2015/05/12/tutorial-responsive-real-time-searching/

http://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2015/05/responsiveSearches/code.zip

https://www.youtube.com/watch?v=UrokkpI8ptU&feature=youtu.be

You will have to build this yourself, but no worry, this is quite straightforward as you will need to use a tableview and native.newTextField.

Create a tableview and fill its content based on the string entered by the user. You need to create a text listener and inside the “editing” phase you can refresh your table based on the edit field.

To match the string of the user with your list, simply use string.find and you should be all set.

Nicolas

Something like this?

https://coronalabs.com/blog/2015/05/12/tutorial-responsive-real-time-searching/

http://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2015/05/responsiveSearches/code.zip

https://www.youtube.com/watch?v=UrokkpI8ptU&feature=youtu.be