i suggest you start using Recycler view since it would be easier to do this functionality using it.
here is your starting point:
solved How to make a SearchView/filter on a custom ListView and add items in the underlying ArrayList using an EditText? [closed]