Android Studio:从大量数据中自动完成EditText输入

huangapple 未分类评论44阅读模式
英文:

Android Studio: Autocomplete EditText input from massive data

问题

我想在Android Studio(Java)中创建一个EditText输入字段,用于在用户输入时自动补齐城市名称(我的情况下是带有用于API调用的唯一ID的城市名称)。我从一个网站获得了一个带有名称相应IDJSON文件。有谁可以帮我,实现这个自动补齐字段的最佳方法是什么?该文件包含约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.

huangapple
  • 本文由 发表于 2020年4月5日 18:08:35
  • 转载请务必保留本文链接:https://java.coder-hub.com/61040959.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定