开发者

How to filter a listview with and edit box - Android

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 ed开发者_Python百科it box, I have tried finding a solution but none of them have worked for me.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜