Question

I am making a Glossary of legal terms and I would like to be able to narrow the results in the list by typing in an edit box, I have tried finding a solution but none of them have worked for me.

Was it helpful?

Solution

On Android you don't need a editbox to make that happen. And it's not advised to do so.

Instead just implement Filterable for your Custom Adaptor, and once the user will type in something while views the list it will filter. The onscreen keyboard as usual comes up with holding Menu

Here is a tutorial that has code to implement Filterable

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top