문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top