英文:
Android Studio: Autocomplete EditText input from massive data
问题
我想在Android Studio(Java)中创建一个EditText输入字段,用于在用户输入时自动补齐城市名称(我的情况下是带有用于API调用的唯一ID的城市名称)。我从一个网站获得了一个带有名称和相应ID的JSON文件。有谁可以帮我,实现这个自动补齐字段的最佳方法是什么?该文件包含约210,000个条目。
英文:
I want to create a EditText input field in Android Studio (Java) that autocompletes the Users input (City names in my case, with a unique ID for API call). From a website i got a JSON file with the name and the corresponding ID. Can anyone help me what is the best way to implement this autocomplete field? The file contains about 210 000 entries.
专注分享java语言的经验与见解,让所有开发者获益!

评论