How to dynamically update a ListView on Android

Viewed 91509

On Android, how can I a ListView that filters based on user input, where the items shown are updated dynamically based on the TextView value?

I'm looking for something like this:

-------------------------
| Text View             |
-------------------------
| List item             |
| List item             |
| List item             |
| List item             |
|                       |
|                       |
|                       |
|                       |
-------------------------
3 Answers

running the programm will cause a force close.

I swaped the line:

android:id="@+building_list/search_box"

with

android:id="@+id/search_box"

could that be the problem? What is the '@+building_list' for?

Related