I have a ListView and the idea is that when the user types than the only strings presented to
the user will begin with that the user wrote.
If every Android device would have had a physical keyboared I could of achieved this with this simple code :
ListView lv = getListView();
lv.setTextFilterEnabled(true);
but as you probably know some devices like the Samsung galaxi S don’t have a physical keyboared.
What I did is create a simple layout file with only an EditText and I used the addHeaderView method so I now have an EditText (the user can type in it) above the list.
I want to use addTextChangedListener so I can react to what the user types.
The question is how to change the display so it will only show the strings I want (I don’t have a problem finding those strings, the problem is how to update the current dispay)
Or if there is another solution to overcome the fact that some devices don’t have a physical keyboared it’s also fine.
I am sure you want to implement something like: ListView should be updated according to the value typed by user, if this is the case then here is an example: Android ListView with Searchbox Sort items